BUTTONBAR

BUTTONBAR

Postby clemerson » Wed Aug 09, 2006 9:14 pm

Hi,

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

Image

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

Postby Antonio Linares » Thu Aug 10, 2006 4:40 am

Clemerson,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby E. Bartzokas » Thu Aug 10, 2006 4: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
User avatar
E. Bartzokas
 
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

Postby James Bott » Thu Aug 10, 2006 5: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby clemerson » Thu Aug 10, 2006 5:32 pm

thank you ...

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 74 guests