How to return in GET after button?

How to return in GET after button?

Postby John » Thu Mar 16, 2006 7: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.
John
 
Posts: 67
Joined: Mon Dec 26, 2005 7:44 am
Location: The Netherlands

Postby Antonio Linares » Thu Mar 16, 2006 9:27 pm

John,

Don't you mean the opposite ?

oButton:oJump:=oGet
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41901
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby John » Fri Mar 17, 2006 6: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.
John
 
Posts: 67
Joined: Mon Dec 26, 2005 7:44 am
Location: The Netherlands

Postby Antonio Linares » Fri Mar 17, 2006 6:46 pm

John,

Have you tried doing oGet:SetFocus() ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41901
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby John » Sat Mar 18, 2006 7:22 am

That seems to work, thanks Antonio!
John
 
Posts: 67
Joined: Mon Dec 26, 2005 7:44 am
Location: The Netherlands


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 37 guests