Get with action

Get with action

Postby Detlef Hoefner » Mon Oct 20, 2008 7:37 am

Hi all,

the new action clause for get objects is a very nice option.

How could i manage that the focus changes automatically to the next control after assigning a value from a picklist?

I tried
Code: Select all  Expand view
...;
      ACTION ( ::VarPut( cGetPicklist() ), ::Refresh(), oNextControl:SetFocus() )

But the focus remains on the get object.

Thanks for every idea.
Detlef
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Postby StefanHaupt » Mon Oct 20, 2008 7:41 am

Detlef,

try oGet:oJump := oNextControl
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Postby Detlef Hoefner » Mon Oct 20, 2008 7:58 am

StefanHaupt wrote:Detlef,

try oGet:oJump := oNextControl


Stefan,

unfortunatelly it doesn't work :(

But thanks for your hint.
Detlef
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Postby Enrico Maria Giordano » Mon Oct 20, 2008 8:02 am

And what about

oNextControl:PostMsg( WM_SETFOCUS )

?

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

Postby Detlef Hoefner » Mon Oct 20, 2008 8:14 am

Enrico,

many thanks, oNextControl:PostMsg( WM_SETFOCUS ) works fine.

Regards,
Detlef
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 84 guests