PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: Sebastiaan Fisscher on August 03, 2018, 04:43:46 AM

Title: Strange behaviour reading ctl value
Post by: Sebastiaan Fisscher on August 03, 2018, 04:43:46 AM
If you are in a WindX session on Unix and you run the following program:
0005 PRINT 'CS'
0006 BEGIN
0010 MULTI_LINE 131,@(13,2.3,6,1),FNT="Arial,.75,B"
0020 BUTTON 1,@(13,22,10,2)="F1"
0030 SET_FOCUS 131
0040 INPUT *
0050 PRINT CTL
0060 GOTO 0040

When you press the F1 key you get the following result:
- 131
- 1

When you run this program in a non-Unix environment it only gives back the ctl 1, which is what it should do.
Could this be looked into please?
Title: Re: Strange behaviour reading ctl value
Post by: Mike King on August 03, 2018, 09:29:39 AM
It sounds like the Multi line input has Signal on exit set, however I just ran this on my system here using PxPlus 2018 to a Suse Linux server and it only returned '1'.

What versions (host and WindX) are you running?

Title: Re: Strange behaviour reading ctl value
Post by: Patrick Willems on August 08, 2018, 03:38:46 AM
I did noticed this when upgrading from V9.10 to V15

In V9.10 i get one ctl value = 1
In V15 i get 2 ctl value , first 131 , second 1

Suse Linux , Windx
Title: Re: Strange behaviour reading ctl value
Post by: Mike King on August 08, 2018, 05:20:41 PM
Please update your WindX/PxPlus from our web site to get the 0002 build. 
There was an extra event caused by some Window OS changes in the 0001 build that didn't work quite right in all cases.
Title: Re: Strange behaviour reading ctl value
Post by: Sebastiaan Fisscher on August 09, 2018, 04:20:16 AM
Thank you for the reply! I will get it updated.