Jump to content
Sign in to follow this  
WBoy2

Bug? Edit Field lost Input with Tab Key

Recommended Posts

WBoy2

Hello,

I use a form with 3 Edit Fields and for buttons created like this

$oInput_1 = GUICtrlCreateEdit("", 20, 100, 160, 20, $ES_AUTOVSCROLL+$WS_TABSTOP)

$oButton_1 = GUICtrlCreateButton("Save", 20, 240, 160)

The functionality is follow:

I fill the Edit Fileds with my keyboard e.g. "123", click the next field and so on.

With the Save button I write the 3 Inputs to a file looks like

$oFile = FileOpen("Data.txt", 1)

$strLine = GUICtrlEditGetLine($oInput_1, 1)

FileWriteLine($oFile, $strLine)

... to all 3 Values

FileClose($oFile)

If I start the script I read the 3 values and move the result to the Edit Fields.

IT WORKS VERY WELL !!!

But:

If I leave the Edit Fields with the TAB Key the value on the screen is the same e.g."123".

But if I press the Save button after the 3 Edit Fields are full filled, in the file is only a square sign for each line.

Has the following line does not work right?

$strLine = GUICtrlEditGetLine($oInput_1, 1)

I read the file with an hex editor and the result is

0x01 0x0D 0x0A 0x01 0x0D 0x0A 0x01 0x0D 0x0A

If I close the script and start it again in the Edit fields are only a square is shown.

If I use the left mouse click to select the next Edit Field it works.

The other buttons are not importend.

Can you help me?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×