FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour SetKey with ALT key doesn't work
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: SetKey with ALT key doesn't work
Posted: Thu Jan 19, 2012 07:43 PM

Frank,

Have you recently changed your xHarbour version ? :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: SetKey with ALT key doesn't work
Posted: Fri Jan 20, 2012 07:01 AM

Antonio,

I'm using the version 'xHarbour.com Okt. 2011 (9382)' as you can see in my signature :!:

Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: SetKey with ALT key doesn't work
Posted: Fri Jan 20, 2012 08:12 AM

Frank,

FWH 11.06 was released in June and your xHarbour is October dated.

So you used different xHarbour versions with 11.06 and 11.12

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: SetKey with ALT key doesn't work
Posted: Fri Jan 20, 2012 08:52 AM

Antonio,

ok, working with FWH 11.12 and the Alt+C/Ctrl+Break function is broken, that's all

Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: SetKey with ALT key doesn't work
Posted: Fri Jan 20, 2012 08:57 AM

Frank,

Was it working fine with FWH 11.11 ?

Could you provide a small PRG to test ? Thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: SetKey with ALT key doesn't work
Posted: Fri Jan 20, 2012 09:07 AM
Antonio,

there was three versions:
fwh_1111_2011-11-26.exe
fwh_1111_2011-11-28.exe
fwh_1111_2011-12-13.exe

Which one shall I use for a test?

here my PRG for testing:
Code (fw): Select all Collapse
FUNCTION Main()

       LOCAL oDlg
       LOCAL oCheck1
       LOCAL oCheck2
       LOCAL lValue := .T.
       
       SetCancel( .T. )
       
       DEFINE DIALOG oDlg size 400, 400 TITLE "A Dialog Box"

       @  2,  2 CHECKBOX oCheck1 VAR lValue PROMPT "This is the first CHECKBOX" OF oDlg ;
          ON CHANGE SAA_Change_dCheck( oCheck1 )

       @  3,  2 CHECKBOX oCheck2 PROMPT "This is  a second CHECKBOX" OF oDlg

       @  5,  4 BUTTON "&Confirm" OF oDlg SIZE 40, 12 ACTION oDlg:End()

       ACTIVATE DIALOG oDlg

    RETURN NIL

    FUNCTION SAA_Change_dCheck( oTCheckBox )
       oTCheckBox:SetCheck( .F. )
       oTCheckBox:SetText( "New Text" )
    RETURN NIL
Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: SetKey with ALT key doesn't work
Posted: Fri Jan 20, 2012 09:42 AM

Frank,

Here it is working fine with the most recent FWH libs.

We are emailing them to you. We appreciate your feedback, thanks :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: SetKey with ALT key doesn't work
Posted: Fri Jan 20, 2012 10:10 AM
Antonio,

the app crashes:
Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: SetKey with ALT key doesn't work
Posted: Fri Jan 20, 2012 02:57 PM

Frank,

Please test it with Harbour and FWH, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: SetKey with ALT key doesn't work
Posted: Fri Jan 20, 2012 04:10 PM
Antonio,

getting 1222 link errors with Harbour 3.1 and MSVC 2010:
Code (fw): Select all Collapse
...
FiveH32.lib(TIMAGLST.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_HB_FUN_ILCREATE".
FiveH32.lib(TIMAGLST.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_HB_FUN_ILSETBKCOLOR".
FiveH32.lib(TIMAGLST.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_HB_FUN_ILADDMASKED".
FiveH32.lib(TIMAGLST.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_HB_FUN_ILADD".
FiveH32.lib(MSGRUN.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_HB_FUN_WAITMESSAGE".
FiveH32.lib(RFILE.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_HB_FUN_ISANSI".
FiveH32.lib(MDIFRAME.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_HB_FUN_GETFRAMEPROC".
FiveHC32.lib(BRUSHES.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_DibBits" in Funktion "_CreateMemBitmap2".
FiveHC32.lib(BRUSHES.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_StrToken" in Funktion "_HB_FUN_MENUDRAW2007".
FiveHC32.lib(BRUSHES.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_DrawGrayed" in Funktion "_HB_FUN_MENUDRAW2007".
FiveHC32.lib(BRUSHES.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_DrawMasked" in Funktion "_HB_FUN_MENUDRAW2007".
FiveHC32.lib(BRUSHES.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_bStrAt" in Funktion "_HB_FUN_MENUDRAW2007".
FiveHC32.lib(WNDMOVE.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_CursorArrow" in Funktion "_HB_FUN_WNDCOPY".
FiveHC32.lib(WNDMOVE.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_CursorWait" in Funktion "_HB_FUN_WNDCOPY".
FiveHC32.lib(WNDBOXES.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_DrawRBGripper" in Funktion "_HB_FUN_BARPAINT".
FiveHC32.lib(WNDBOXES.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__IsAppThemed" in Funktion "_HB_FUN_BARPAINT".
FiveHC32.lib(XBROWSEC.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_IsForePalette" in Funktion "_BmpDrawNoStretch".
FiveHC32.lib(XBROWSEC.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_MaskRegion" in Funktion "_BmpDrawNoStretch".
dlg_checkbox.exe : fatal error LNK1120: 476 nicht aufgelöste externe Verweise.
dlg_checkbox.exe - 1222 error(s), 1 warning(s)
Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: SetKey with ALT key doesn't work
Posted: Fri Jan 20, 2012 06:01 PM
Frank,

Are you using samples\buildh32.bat to build it ?

Here it is building fine and working fine on first try: I can send you the EXE so you can try it yourself

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: SetKey with ALT key doesn't work
Posted: Fri Jan 20, 2012 09:30 PM
Antonio,

working fine with the FWH1112 libs with UEStudio:


The unresolved externals appears only if using the libs you send me!
Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: SetKey with ALT key doesn't work
Posted: Mon Jan 30, 2012 09:55 AM
Antonio,

now Alt-C/Ctrl-Break is working again with Harbour/MSVC AND xHarbour.com!
Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: SetKey with ALT key doesn't work
Posted: Mon Jan 30, 2012 11:36 AM

Very good :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: SetKey with ALT key doesn't work
Posted: Tue Jan 31, 2012 04:11 PM
Frose:

This has worked for me:

Code (fw): Select all Collapse
SETKEY(ASC("Y"), {|| IIF(GetKeyState(VK_CONTROL),  EVAL( {|| MyFunction () } ), NIL) } )



Maybe Antonio can clarify if this construct can be used with the Alt key instead of the Control one. :-)