problem with focus in GET-class

problem with focus in GET-class

Postby driessen » Fri Feb 16, 2007 2:18 pm

Hello,

I notice a problem with the focus in the GET-class which didn't happen in FW16.

The code :

REDEFINE GET oGET1 VAR FIELD1 PICTURE "XXX"
....
REDEFINE GET oGET6 VAR FIELD6 PICTURE "999" VALID !EMPTY(FIELD7) .OR. ACTGEM()
REDEFINE GET oGET7 VAR FIELD7 PICTURE "XXX"

where :

ACTGEM() is a function which opens a new dialog box to select a value for FIELD7, but this function is only called when FIELD7 is empty (usually only when adding data). ACTGEM() always returns a .T.


In FW16, the focus is automatically on FIELD7 after having selected a value for FIELD7 through ACTGEM().

In FW32 however, the focus is on FIELD1 after having selected a value for FIELD7 through ACTGEM().

How can I maintain the focus on FIELD7 after having selected a value for FIELD7 through ACTGEM() ?

Thank you.

Michel
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: problem with focus in GET-class

Postby Richard Chidiak » Fri Feb 16, 2007 2:29 pm

Michel

OGET7:OJUMP := OGET7
OGET7:SETFOCUS(.T.)

Hth

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby driessen » Fri Feb 16, 2007 4:52 pm

Richard,

Thank you.

I'll try it out.

Michel
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: problem with focus in GET-class

Postby Enrico Maria Giordano » Fri Feb 16, 2007 6:17 pm

Richard Chidiak wrote:OGET7:SETFOCUS(.T.)


As far as I know, SetFocus() method doesn't take any parameters.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8600
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: problem with focus in GET-class

Postby Richard Chidiak » Sat Feb 17, 2007 7:32 am

Enico

You're right (as usual)

I wrote the sentence a bit quickly...

Best regards

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France


Return to FiveWin for Harbour/xHarbour

Who is online

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

cron