Tab, Shift Tab, ESC under a page (in memo)

Tab, Shift Tab, ESC under a page (in memo)

Postby Maurilio Viana » Wed Nov 09, 2005 12:05 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 10:13 am

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: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Maurilio Viana » Fri Nov 11, 2005 10:50 am

Did and working fine!

Thanks a lot, Antonio

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

Postby goosfancito » Mon Nov 14, 2005 5:44 am

Antonio, leyendo este y otros comentarios con respectos a otros prg, como el windows.prg para la parte de tooltips con corners redondos necesito proguntarte esto:

Para no tener que añadir tanto windows.prg y mget.prg en los proyectos, estos pueden re-compilarse asi no tengo que incluirlos?

Gracias.

Antonio Linares wrote: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
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 105 guests