FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour GET auto action
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
GET auto action
Posted: Wed Jan 24, 2018 08: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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: GET auto action
Posted: Wed Jan 24, 2018 09:39 PM
Try with

Code (fw): Select all Collapse
oWnd:GoNextCtrl( oWnd:hWnd )


or

Code (fw): Select all Collapse
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
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: GET auto action
Posted: 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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: GET auto action
Posted: 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 (fw): Select all Collapse
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
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: GET auto action
Posted: 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

Continue the discussion