FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour BUTTONBAR
Posts: 58
Joined: Fri Mar 10, 2006 08:13 PM
BUTTONBAR
Posted: Wed Aug 09, 2006 09:14 PM
Hi,

How do I do to change the image of the button?



Clemerson
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
BUTTONBAR
Posted: Thu Aug 10, 2006 04:40 AM

Clemerson,

oButtonBar:aControls[ 3 ]:FreeBitmaps()
oButtonBar:aControls[ 3 ]:LoadBitmaps( <cResName>,, [<cBmpFile>] )
oButtonBar:aControls[ 3 ]:Refresh()

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 114
Joined: Tue Feb 14, 2006 08:13 AM
BUTTONBAR
Posted: Thu Aug 10, 2006 04:51 PM
Antonio Linares wrote:Clemerson,

oButtonBar:aControls[ 3 ]:FreeBitmaps()
oButtonBar:aControls[ 3 ]:LoadBitmaps( <cResName>,, [<cBmpFile>] )
oButtonBar:aControls[ 3 ]:Refresh()


Antonio/Clemerson
A similar working approach is in Function Zoom() of RPREVIEW.PRG

Kind regards
Evans
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
BUTTONBAR
Posted: Thu Aug 10, 2006 05:28 PM

Clemerson,

It looks like you have a button you want in an up or down state. I believe you can define two bitmaps when you define the button, then use the oBtn:toogle() to change the state of the button, and the bitmap will change automatically. I haven't tried this (or at least I don't remember if I have) ;-).

Check the manual for the syntax for defining two bitmaps.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 58
Joined: Fri Mar 10, 2006 08:13 PM
BUTTONBAR
Posted: Thu Aug 10, 2006 05:32 PM

thank you ...

Clemerson

Continue the discussion