Page 1 of 1
BUTTONBAR
Posted: Wed Aug 09, 2006 9:14 pm
by clemerson
Hi,
How do I do to change the image of the button?
Clemerson
Posted: Thu Aug 10, 2006 4:40 am
by Antonio Linares
Clemerson,
oButtonBar:aControls[ 3 ]:FreeBitmaps()
oButtonBar:aControls[ 3 ]:LoadBitmaps( <cResName>,, [<cBmpFile>] )
oButtonBar:aControls[ 3 ]:Refresh()
Posted: Thu Aug 10, 2006 4:51 pm
by E. Bartzokas
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
Posted: Thu Aug 10, 2006 5:28 pm
by James Bott
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
Posted: Thu Aug 10, 2006 5:32 pm
by clemerson
thank you ...
Clemerson