Two Buttonbars

Two Buttonbars

Postby Colin Haig » Mon Feb 18, 2008 8:08 am

Hi All

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

Cheers

Colin
Colin Haig
 
Posts: 310
Joined: Mon Oct 10, 2005 5:10 am

Two ButtonBars

Postby Colin Haig » Mon Feb 18, 2008 8:09 am

Hi All

That should be "add" not had.

Cheers

Colin
Colin Haig
 
Posts: 310
Joined: Mon Oct 10, 2005 5:10 am

Postby Silvio » Mon Feb 18, 2008 8:43 am

U must use Multibar class
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Two ButtonBars

Postby Enrico Maria Giordano » Mon Feb 18, 2008 8:44 am

This is a working sample:

Code: Select all  Expand view
#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
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Two ButtonBars

Postby hua » 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
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Two ButtonBars

Postby Enrico Maria Giordano » Mon Feb 18, 2008 10:22 am

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby hua » Mon Feb 18, 2008 12:03 pm

Ah, the tried and tested method . Thanks for the reply anyway Enrico :)
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 75 guests