BUTTONBAR

Post Reply
User avatar
clemerson
Posts: 58
Joined: Fri Mar 10, 2006 8:13 pm
Location: Brazil
Contact:

BUTTONBAR

Post by clemerson »

Hi,

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

Image

Clemerson
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Clemerson,

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

Antonio Linares
www.fivetechsoft.com
User avatar
E. Bartzokas
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

Post 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
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post 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
User avatar
clemerson
Posts: 58
Joined: Fri Mar 10, 2006 8:13 pm
Location: Brazil
Contact:

Post by clemerson »

thank you ...

Clemerson
Post Reply