FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to change the prompt of a button
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
How to change the prompt of a button
Posted: Wed Aug 27, 2008 04:28 PM
Hello,

I have defined a button like this :

REDEFINE BUTTON ChrBtn1 ID 692 OF kWnd1 PROMPT ChrButton1 UPDATE


Can anyone tell me how I change the prompt ChrButton1 ?

I tried
ChrBtn1:Refresh

and
kWnd1:Update()

but these didn't work.

Thanks a lot in advance.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Changing prompt
Posted: Wed Aug 27, 2008 04:53 PM
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 :-)
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.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
How to change the prompt of a button
Posted: Wed Aug 27, 2008 06:35 PM

Michel,

ChrBtn1:SetText( cNewText )

or do as Uwe tells you, using cCaption.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
How to change the prompt of a button
Posted: Wed Aug 27, 2008 08:23 PM

Thanks a lot, guys for your help.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Continue the discussion