Page 1 of 1
ButtonBar in Folders
Posted: Thu Dec 13, 2007 6:48 am
by nageswaragunupudi
I like to have two or more buttonbars ( tbar() ) in folders, so that the user can switch button bars by choosing the folder tab.
We can do with rebars and toolbars, but I like to do it with FWH buttonbars and folders.
Can this be done easily ?
Posted: Sun Dec 16, 2007 6:48 am
by Antonio Linares
NageswaraRao,
Please post a screenshot, thanks
Posted: Sun Dec 16, 2007 10:41 am
by nageswaragunupudi
This is a part of the screen shot from rebars.prg. This is done thro rebars and toolbar.
Instead I like to get similar functionality using FWH Buttonbar ( tbar() ) in FWH folders.
If can be done, this will have simpler functionality as officebar, without all that ornamentation and should be easier for development.
Posted: Sun Dec 16, 2007 11:07 am
by Antonio Linares
NageswaraRao,
Do you mean that you want to place a buttonbar on each dialog of a folder ?
If yes, then you can do it from the ON INIT clause of the main dialog:
Code: Select all
ACTIVATE DIALOG oDlg ;
ON INIT BuildBars( oFolder )
...
function BuildBars( oFolder )
local oBar
DEFINE BUTTONBAR oBar OF oFolder:aDialogs[ 1 ] 3D
DEFINE BUTTON OF oBar ...
...
return nil