FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to return in GET after button?
Posts: 67
Joined: Mon Dec 26, 2005 07:44 AM
How to return in GET after button?
Posted: Thu Mar 16, 2006 07:00 PM

Hi,

i want to return in a GET field after pressing a button (this button opens a modify record dialog from the button on the browse dialog).

This worked in an earlier version, but doesn't seem to do the trick anymore:

oGet:oJump:=oButton

Any thoughts?

Best regards,

John.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
How to return in GET after button?
Posted: Thu Mar 16, 2006 09:27 PM

John,

Don't you mean the opposite ?

oButton:oJump:=oGet

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 67
Joined: Mon Dec 26, 2005 07:44 AM
How to return in GET after button?
Posted: Fri Mar 17, 2006 06:13 PM

Hi Antonio,

actually neither one does work...

I have a browse on a dialog, together with a GET field (input search string), a Search button and an Edit button (to edit the searched/found record).

What i want to accomplish is that the focus/cursor returns to the GET field after any of the buttons has been clicked.

Perhaps there is a better solution?

Saludos,

John.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
How to return in GET after button?
Posted: Fri Mar 17, 2006 06:46 PM

John,

Have you tried doing oGet:SetFocus() ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 67
Joined: Mon Dec 26, 2005 07:44 AM
How to return in GET after button?
Posted: Sat Mar 18, 2006 07:22 AM

That seems to work, thanks Antonio!

Continue the discussion