Please have a look at next FWH built-in RibbonBar
#include "fivewin.ch"
function Main()
local oRibbonBar, oGroup1, oGroup2, oGroup3, oGroup4, oBtn1, oBtn2, oBtn3, oBtn5
DEFINE WINDOW oWnd TITLE "FWH RibbonBar"
oRibbonBar := TRibbonBar():New( oWnd )
oWnd:oTop := oRibbonBar
oGroup1 := oRiBbonBar:AddGroup( 150, "Group 1" )
oGroup2 := oRiBbonBar:AddGroup( 150, "Group 2" )
oGroup3 := oRiBbonBar:AddGroup( 150, "Group 3" )
oGroup4 := oRiBbonBar:AddGroup( 150, "Group 4" )
oBtn1 := oGroup1:AddButton( 2, 2, 90, 60, "Test", { || nil },,, "keys.bmp" )
oBtn2 := oGroup2:AddButton( 2, 62 , 90, 60, "Test", { || nil }, 3,, "keys.bmp" )
oBtn3 := oGroup2:AddButton( 2, 2, 90, 60, "Test", { || nil },,, "keys.bmp", .T., .F. )
oBtn4 := oGroup2:AddButton( 2, 64, 90, 60, "Test", { || nil },, 3,, "keys.bmp", .T., .T. )
oBtn5 := oGroup3:AddButton( 2, 2, 90, 60, "", {|| nil },,, "lock.bmp" )
ACTIVATE WINDOW oWnd
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 72 guests