FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Buttons of ButtonBar syntax
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Buttons of ButtonBar syntax
Posted: Fri Jun 05, 2009 02:53 AM
Ok 2 questions:

1. Regular buttons of ButtonBars when disabled will automatically adjust the image to indicate the state unless the button bar use the 2007 clause; in which case an image to represent the disabled state must be supplied. Is this understanding correct?

2. Looking at the header file, I find DEFINE BUTTON of oBar accepts up to 4 image:
Code (fw): Select all Collapse
#xcommand DEFINE BUTTON [ <oBtn> ] ;
             [ <bar: OF, BUTTONBAR > <oBar> ] ;
             [ <resource: NAME, RESNAME, RESOURCE> <cResName1> ;
                [,<cResName2>[,<cResName3>][,<cResName4>] ] ] ;


I assume cResName1 indicate the image for normal state while the rest is for disabled, mouse over and something-which-I-don't-know. So the question is, which represents which?

TIA
FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Buttons of ButtonBar syntax
Posted: Fri Jun 05, 2009 04:24 AM
  1. Yes
  2. Resources / Bitmaps
    1. Normal
    2. Pressed
    3. Disabled
    4. Mouse Over
Regards



G. N. Rao.

Hyderabad, India
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: Buttons of ButtonBar syntax
Posted: Fri Jun 05, 2009 06:07 AM
Thanks Rao. I've edited http://wiki.fivetechsoft.com/doku.php?i ... mmands_bar a bit to reflect this.

Antonio,
Would it be possible, even if using ButtonBar 2007, if cResName3 is not supplied then TBtnBmp class would automatically use cResName1 and grey it out? Would be very helpful especially to those who have lots of buttons on the toolbar.

TIA
FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion