FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Behaviour of GoNextCtrl
Posts: 207
Joined: Fri Oct 07, 2005 07:58 AM

Behaviour of GoNextCtrl

Posted: Fri Oct 16, 2009 11:10 AM

Hello!

While upgrading from FWH 06.02 to 09.01 I've noticed that behaviour of GoNextCtrl (TWindows) had changed. In previous version I could use it to go to the next GET or BUTTON control, but now it jumps to the next SAY control so I loose focus. Is there another method to use that jumps to the next "focusable" control (ignoring text controls, for example)?

Thanks, Roman

© I'm not patented!
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: Behaviour of GoNextCtrl

Posted: Fri Oct 16, 2009 11:49 AM

Roman,

Are you sure you have all the focusable controls numbered lower than the says? Perhaps all you need to do is renumber the sequence of the controls.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 207
Joined: Fri Oct 07, 2005 07:58 AM

Re: Behaviour of GoNextCtrl

Posted: Fri Oct 16, 2009 11:57 AM
James Bott wrote:Roman,
Are you sure you have all the focusable controls numbered lower than the says? Perhaps all you need to do is renumber the sequence of the controls.


No, SAY-s and GET-s are mixed. This was not a problem in FWH 6.2. But thanks for an idea ...

Roman
© I'm not patented!
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Behaviour of GoNextCtrl

Posted: Fri Oct 16, 2009 03:35 PM

Can you show a reduced and self-contained sample of the problem?

EMG

Posts: 1446
Joined: Mon Oct 10, 2005 02:38 PM

Re: Behaviour of GoNextCtrl

Posted: Fri Oct 16, 2009 09:22 PM
modicr wrote:
James Bott wrote:Roman,
Are you sure you have all the focusable controls numbered lower than the says? Perhaps all you need to do is renumber the sequence of the controls.


No, SAY-s and GET-s are mixed. This was not a problem in FWH 6.2. But thanks for an idea ...

Roman


In a MDICHILD or GROUPS? When?

Change and try this in WINDOW.PRG:
[code=/F]
METHOD GoNextCtrl( hCtrl ) CLASS TWindow

local hCtlNext := NextDlgTab( ::hWnd, hCtrl ), nAt

//if Upper( ::ClassName() ) != "TDIALOG"


if Upper( ::ClassName() ) != "TDIALOG" .and. ;
Upper( ::ClassName() ) != "TMDICHILD" .and. ;
Upper( ::ClassName() ) != "TGROUP" // C.Gelabert 13/03/2008

nAt = AScan( ::aControls, { | o | o:hWnd == hCtrl } )
...
[code]

Regards
Carlos G.

Un Saludo

Carlos G.



FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home

Posts: 207
Joined: Fri Oct 07, 2005 07:58 AM

Re: Behaviour of GoNextCtrl

Posted: Fri Oct 16, 2009 11:09 PM
Hello!

In a MDICHILD or GROUPS? When?


Yes, I have a Window (not Dialog) in MdiChild.

Code (fw): Select all Collapse
    if Upper( ::ClassName() ) != "TDIALOG" .and. ;
       Upper( ::ClassName() ) != "TMDICHILD" .and. ;
       Upper( ::ClassName() ) != "TGROUP"    // C.Gelabert 13/03/2008


Yippee, it works now! :-)

Thanks, Roman
© I'm not patented!

Continue the discussion