FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TSbutton problem?
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
TSbutton problem?
Posted: Sat Nov 19, 2005 03:07 PM

Dear All,

Have any one found this TSbutton problem as me? When I use Alt+s for "&Save" the problem is the valid on TGET is skiped. It means any function on TGET Valid do nothing. It is my big problem right now because I use a lot TSbutton in my program.

Example

include 'Fivewin.ch'

include 'Tsbutton.ch'

Static oDlg

Procedure Main
local oGet, oBtn, cVar
cVar := 0

DEFINE DIALOG oDlg FROM 0, 0 TO 10, 30 TITLE 'Test TSbutton'

@ 1, 1 GET oGet VAR cVar SIZE 30,12 PIXEL Valid (cVar>0)

@ 40,50 SBUTTON oBtn PROMPT '&Test' ;
SIZE 30, 20 ;
PIXEL ;
ACTION MsgInfo(' Test ')

ACTIVATE DIALOG oDlg CENTER

return

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
I can fix it already.
Posted: Sun Nov 20, 2005 04:17 PM

Dear All,

If who use this classes and have got the same problem with me. Pls change this line

METHOD GetDlgCode( nLastKey ) CLASS TSBUTTON
// Remark this two lines
* ::SendMsg( FM_CLICK )
// Add this line instead
PostMessage( ::oWnd:oCtlFocus:hWnd, FM_CLICK )
return If( ::lActive, DLGC_WANTALLKEYS, Nil )

Best regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
TSbutton problem?
Posted: Fri Nov 25, 2005 09:31 PM

Dear Dutch,
I am also another problem to Xp( fwh) 32 bit with this class
IF you recompiled all the samples of sbutton You can see my error
You must see the Function Child3() of Testbtn.prg
this is a mini reservation bus
the button make error on 32 bit but on 16 bit run ok
Can you help me ?

Best Regards, Saludos



Falconi Silvio

Continue the discussion