Page 1 of 1

btnbmp disable

Posted: Tue Jul 24, 2007 5:11 pm
by reinaldocrespo
Hi.

I'm having problems changing the aspect of tbtnbmp object when disable. I'm declaring it something like this:

Code: Select all

	REDEFINE BTNBMP ::oBtnRec ID 201 OF ::oDlg RESOURCE "voicerec_rec", "voicerec_recDis", "VoiceRec_RecDis" ;
		TOOLTIP "Record" NOBORDER UPDATE
Wheather ::oBtnRec is disabled or not, only the first bmp displays. How can I change the image shown on the btnbmp at run time?

Thank you,



Reinaldo.

Posted: Tue Jul 24, 2007 5:51 pm
by Antonio Linares
Reinaldo,

::oBtnRec:LoadBitmaps( "voicerec_recDis" )
::oBtnRec:Refresh()

Posted: Tue Jul 24, 2007 5:58 pm
by reinaldocrespo
Antonio;

Thank you very much.


Reinaldo.