FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ButtonBar in Folders
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
ButtonBar in Folders
Posted: Thu Dec 13, 2007 06:48 AM

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 ?

Regards



G. N. Rao.

Hyderabad, India
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ButtonBar in Folders
Posted: Sun Dec 16, 2007 06:48 AM

NageswaraRao,

Please post a screenshot, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
ButtonBar in Folders
Posted: Sun Dec 16, 2007 10:41 AM
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.
Regards



G. N. Rao.

Hyderabad, India
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ButtonBar in Folders
Posted: Sun Dec 16, 2007 11:07 AM
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:
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
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion