Buttons of ButtonBar syntax

Buttons of ButtonBar syntax

Postby hua » Fri Jun 05, 2009 2: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: Select all  Expand view

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

Re: Buttons of ButtonBar syntax

Postby nageswaragunupudi » Fri Jun 05, 2009 4:24 am

1. Yes
2. Resources / Bitmaps
1. Normal
2. Pressed
3. Disabled
4. Mouse Over
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Buttons of ButtonBar syntax

Postby hua » Fri Jun 05, 2009 6: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
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 91 guests