DCGET and TABPAGES

This forum is for eXpress++ general support.
Post Reply
Message
Author
Maxz
Posts: 49
Joined: Sun Jan 09, 2022 12:11 pm

DCGET and TABPAGES

#1 Post by Maxz »

screenshot1.jpg
screenshot1.jpg (79.86 KiB) Viewed 4317 times
looking at this example, how do I continue the GET that is in tabpage1 after giving ENTER key on field 6 ?

when I confirm the value in field 6, the DCREAD ends because i use the ENTEREXIT clause on DCREAD GUI ...
The other GET of tabpage 1 (7,8,9,etc.) or tabpage 2/3/4 are not considered unless I position myself with the mouse manually
do I have to use some option like GROUP or TABGROUP on DCSAYGET ?

User avatar
rdonnay
Site Admin
Posts: 4745
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCGET and TABPAGES

#2 Post by rdonnay »

You can try using the LOSTFOCUS clause on get 6 to set focus to get 7. You will need an ID on Get 7.

SetAppFocus(DC_GetObject(GetList, 'GET_7'))
The eXpress train is coming - and it has more cars.

Maxz
Posts: 49
Joined: Sun Jan 09, 2022 12:11 pm

Re: DCGET and TABPAGES

#3 Post by Maxz »

LOSTFOCUS on GET #6 only works well if you give enter with the keyboard
if you try to move in another GET using mouse when you are positioned on GET #6, LOSTFOCUS runs first and wins over your mouse move

LOSTFOCUS should check that the user has actually given send with the keyboard


is it possible to check the ENTER_KEY event on the LOSTFOCUS clause?

User avatar
rdonnay
Site Admin
Posts: 4745
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCGET and TABPAGES

#4 Post by rdonnay »

LOSTFOCUS should check that the user has actually given send with the keyboard
The use the KEYBOARD clause instead of LOSTFOCUS
The eXpress train is coming - and it has more cars.

Maxz
Posts: 49
Joined: Sun Jan 09, 2022 12:11 pm

Re: DCGET and TABPAGES

#5 Post by Maxz »

dcsay get ....
KEYBLOCK {|n,x,o|IIF(n==xbeK_ENTER,myfunction(GetList),nil) }
//LOSTFOCUS {||DC_SetAppFocus(oTabPage1),DC_GetRefresh(GetList),SetAppFocus(oField7)}


function myfunction (GetList)
DC_SetAppFocus(oTabPage1)
DC_GetRefresh(GetList)
SetAppFocus(oField7)
return nil


it does not work properly because at the end of myfunction routine, the cursor is back on the first GET #1
where's my error ?

User avatar
rdonnay
Site Admin
Posts: 4745
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCGET and TABPAGES

#6 Post by rdonnay »

Try DCGETOPTIONS NOSUPERVISE
The eXpress train is coming - and it has more cars.

Maxz
Posts: 49
Joined: Sun Jan 09, 2022 12:11 pm

Re: DCGET and TABPAGES

#7 Post by Maxz »

this works properlyl

thanks Roger!

Post Reply