How to change the prompt of a button

How to change the prompt of a button

Postby driessen » Wed Aug 27, 2008 4:28 pm

Hello,

I have defined a button like this :

Code: Select all  Expand view
REDEFINE BUTTON ChrBtn1 ID 692 OF kWnd1 PROMPT ChrButton1 UPDATE


Can anyone tell me how I change the prompt ChrButton1 ?

I tried
Code: Select all  Expand view
ChrBtn1:Refresh

and
Code: Select all  Expand view
kWnd1:Update()

but these didn't work.

Thanks a lot in advance.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Changing prompt

Postby ukoenig » Wed Aug 27, 2008 4:53 pm

Code: Select all  Expand view

REDEFINE BUTTONBMP oBtn ID 10 OF oDlg ;
ACTION ( oDlg:End() ) ;
BITMAP "Quit" PROMPT " Exit" TEXTRIGHT
oBtn:cToolTip =  { "Close" + CRLF + ;
   "the Dialog","Record-Selector-Test", 1, CLR_BLACK, 14089979 }

// Change the Button-prompt :  Exit => Test
// ---------------------------------------------------
oBtn:cCaption  = "Test"



Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Antonio Linares » Wed Aug 27, 2008 6:35 pm

Michel,

ChrBtn1:SetText( cNewText )

or do as Uwe tells you, using cCaption.
regards, saludos

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

Postby driessen » Wed Aug 27, 2008 8:23 pm

Thanks a lot, guys for your help.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 85 guests