FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour BUTTON question
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
BUTTON question
Posted: Fri Mar 24, 2006 12:30 AM

Hi Everybody,

I am trying (without success) to manipulate a button.

I want to have a counter on the button and update it every time it is pressed.

This is an example:

@ 1,1 BUTTON oBtnLap PROMPT "LAP + ("+alltrim(str(nLapCounter))+")" SIZE 50,25 of oDlg1 FONT oFontSmall UPDATE Action (nLapCounter++, TONE(440,1),oDlg1:Update())

Can someone please help.

Thanks,
Jeff

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
BUTTON question
Posted: Fri Mar 24, 2006 07:32 AM

Mr.Jeff

Here is the solution.

@ 1,1 BUTTON oBtnLap PROMPT "LAP + ("+alltrim(str(nLapCounter))+")" SIZE 50,25 of oDlg1 FONT oFontSmall UPDATE Action (nLapCounter++, TONE(440,1),oBtnLap:SetText("LAP ("+alltrim(str(nCounter))+")")oBtnLap:Refresh())

Regards,

  • Ramesh Babu P
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
BUTTON question
Posted: Fri Mar 24, 2006 03:42 PM

Thanks Ramesh

Works perfectly :)

Jeff

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)

Continue the discussion