Hello,
A small question ?
How can I read which GET has the clause ?
I want to do make a jump to another screen but I need to restore the focus on the right GET.
Thanks in advance.
Get class and focus
Get class and focus
Regards,
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Re: Get class and focus
Hi,
Regards
Code: Select all
hFocus:= GetFocus()
..... // blah, blah, blah...
SetFocus(hFocus)
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Get class and focus
Michel,
nAt = AScan( oDlg:aControls, { | o | o:hWnd == GetFocus() } )
...
oDlg:aControls[ nAt ]:SetFocus()
nAt = AScan( oDlg:aControls, { | o | o:hWnd == GetFocus() } )
...
oDlg:aControls[ nAt ]:SetFocus()
-
- Posts: 55
- Joined: Fri Jul 08, 2011 6:43 am
Re: Get class and focus
Michel
Changing focus seems always to be dificult and unprecditable.
I have much better results with :
Changing focus seems always to be dificult and unprecditable.
I have much better results with :
Code: Select all
*****************************************************************************************
function xSetFocus( oObx )
**************************
// function from local.fivewin.english 4/1/2003 Kleyber Derick
local oTempo:=""
local lGet := oObx:ClassName $ "TGET TMULTIGET"
define timer oTempo interval 10 of oObx:oWnd ;
action (oObx:SetFocus(), IIF(lGet , oObx:SetPos(0) , ), oTempo:Deactivate() )
activate timer oTempo
return nil
Re: Get class and focus
Hello guys,
Thanks a lot for all you help.
I'll be trying out your suggestions.
Thanks a lot for all you help.
I'll be trying out your suggestions.
Regards,
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7