FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Two Buttonbars
Posts: 310
Joined: Mon Oct 10, 2005 05:10 AM
Two Buttonbars
Posted: Mon Feb 18, 2008 08:08 AM

Hi All

How do I had a second buttonbar at the top of the window.

Cheers

Colin

Posts: 310
Joined: Mon Oct 10, 2005 05:10 AM
Two ButtonBars
Posted: Mon Feb 18, 2008 08:09 AM

Hi All

That should be "add" not had.

Cheers

Colin

Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Two Buttonbars
Posted: Mon Feb 18, 2008 08:43 AM

U must use Multibar class

Best Regards, Saludos



Falconi Silvio
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Two ButtonBars
Posted: Mon Feb 18, 2008 08:44 AM
This is a working sample:

#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oWnd

    LOCAL oBar, oBtn

    DEFINE WINDOW oWnd

    DEFINE BUTTONBAR OF oWnd 2007;
           SIZE 33, 33

    DEFINE BUTTON OF oWnd:oBar;
           FILE "C:\FWH\BITMAPS\OPEN.BMP";
           ACTION MSGINFO( "First bar Ok!" )

    @ 33, -1 BUTTONBAR oBar OF oWnd;
             SIZE 1602, 36;
             BUTTONSIZE 33, 33

    oBar:l2007 = .T.

    DEFINE BUTTON OF oBar;
           FILE "C:\FWH\BITMAPS\SAVE.BMP";
           ACTION MSGINFO( "Second bar Ok!" )

    ACTIVATE WINDOW oWnd

    RETURN NIL


EMG
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: Two ButtonBars
Posted: Mon Feb 18, 2008 10:05 AM
Enrico (or any others),
I normally find myself easily confuse when trying to manually code coordinates or sizes of controls. Could you explain how the figures in bold below come about? It'd be helpful for my understanding :-) .


@ 33, -1 BUTTONBAR oBar OF oWnd;
SIZE 1602, 36;
BUTTONSIZE 33, 33

TIA
FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Two ButtonBars
Posted: Mon Feb 18, 2008 10:22 AM

I found that coordinates just trying and looking at the result. :-)

EMG

Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Two Buttonbars
Posted: Mon Feb 18, 2008 12:03 PM

Ah, the tried and tested method . Thanks for the reply anyway Enrico :)

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion