GET auto action

GET auto action

Postby TimStone » Wed Jan 24, 2018 8:57 pm

This is a bit tricky. A GET has both a VALID and an ACTION. The ACTION statement permits a lookup, and the valid then takes the value, checks the info in a file, and populates other fields.

To make the VALID work, there is a .T. at the end of events. For example VALID ( Step1(), Step2(), Step3(), .T. )

Of course it all works fine. So here is the problem:

I perform a lookup with the ACTION statement, and the value is returned to the GET field. The VALID executes and other fields are populated. HOWEVER, the cursor remains in the GET field. My clients sometimes start typing before moving the cursor to the next field. This causes errors.

When I do a lookup, and after the VALID does it's work, I want to jump to the next field automatically. Is there a command I can use to do this, and where would it be placed ?
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: GET auto action

Postby cnavarro » Wed Jan 24, 2018 9:39 pm

Try with

Code: Select all  Expand view

oWnd:GoNextCtrl( oWnd:hWnd )
 


or

Code: Select all  Expand view

SendMessage(oGet1:hWnd, WM_KEYDOWN, VK_DOWN ) )
 


After ACTION of Button Get
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: GET auto action

Postby TimStone » Wed Jan 24, 2018 10:05 pm

I should have shared:

The GET is on a Folder dialog, inside a dialog, inside the main window.

That method is not working ...
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: GET auto action

Postby cnavarro » Wed Jan 24, 2018 10:38 pm

TimStone wrote:I should have shared:

The GET is on a Folder dialog, inside a dialog, inside the main window.

That method is not working ...


Is with, try

Code: Select all  Expand view

ACTION ( MyAction(), PostMessage( oGet:hWnd, WM_KEYDOWN, VK_RETURN ) )
 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: GET auto action

Postby TimStone » Wed Jan 24, 2018 10:46 pm

That worked. Thank you.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 98 guests