ESC, Tab, Sh tab... don´t work under TPage and memos (fixed)

ESC, Tab, Sh tab... don´t work under TPage and memos (fixed)

Postby Maurilio Viana » Thu Nov 10, 2005 11:47 pm

Antonio,

I use a dialogs with 3 pages (TPages class), in a page I use a memo get, when this memo get focused, the keys Tab, Shift Tab, ESC... don't work properly.
ESC = don't work
Tab and Shift Tab = include a tab space in the text before skip to next/prior control...

Regards,
Maurilio
User avatar
Maurilio Viana
 
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil

Postby Antonio Linares » Fri Nov 11, 2005 8:45 pm

Maurilio,

Please include these changes in source\classes\mget.prg Method KeyChar:

if nKey == VK_ESCAPE // Windows API already sends it to dialogs!!!
if ::oWnd:ChildLevel( TDialog() ) != 0 .and. ::oWnd:lModal
return nil
endif
if ::oWnd:ChildLevel( TDialog() ) != 0 .and. ::oWnd:oWnd != nil .and. ;
::oWnd:oWnd:ChildLevel( TPages() ) != 0
::oWnd:oWnd:oWnd:End()
endif
endif

if nKey == VK_TAB
return Super:KeyChar( nKey, nFlags )
endif
regards, saludos

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


Return to Bugs report & fixes / Informe de errores y arreglos

Who is online

Users browsing this forum: No registered users and 2 guests