| Author |
Message |
|
Clyde
|
Post subject: String Box Posted: 30 May 2008, 21:23 |
|
Joined: 27 May 2008, 19:38 Posts: 67 Location: Dresden / Germany
|
Hi there,
there is a small bug with the string box, whichis unreproducible unfortunately.  Sometimes if I type text in one letter begins to write itself in the box until "infinity" and I don't hit that key anymore. In other words it looks like that I would hold the key down forever but in fact I don't do it.
Did you also encounter this issue? I hope that you know what I mean ... (BTW: this sentence reminds me of a song by OASIS, one of the best bands ever  )
Greetings and good night
Micha
_________________ CD32 + SX1; AmiKit (WinUAE) + OS3.9
|
|
| Top |
|
 |
|
Allanon
|
Post subject: Posted: 30 May 2008, 22:22 |
|
| Site Admin |
 |
Joined: 22 Mar 2007, 22:50 Posts: 112
|
Hello Clyde!
I agree with you about the Oasis  , i like them too
I've noticed this bug but sincerily I can't understand why sometimes it comes, I should look closer the input routine, btw in these day I'm rewriting a part of the StringBox code to achive the following goals:
- Instead of polling the keyboard continuosly the input will be handled by an event handler (more system friendly, and less CPU time used) - Gadgets can be selected/activated using the keyboard (Left/Right for navigation trough the available gadgets, Enter to activate like a left mouse button event) - You can interact with all other gadgets without hitting Enter to exit from the StringBox (like you have asked ) - New event for the StringBox when the user type a character, something like OnKeyPress
With this new routines the bug you have noticed will disappear for sure, at least I hope it
Cya
Fabio
|
|
| Top |
|
 |
|
Clyde
|
Post subject: Re: String Box Posted: 28 Oct 2008, 16:03 |
|
Joined: 27 May 2008, 19:38 Posts: 67 Location: Dresden / Germany
|
Hi Fabio, a user at the Amiga Resistance (Tipsi) seems to found another bug, which I can confirm: The MaxLen parameter doesn't work here (ScuiLib 0.5). We tried to set MaxLen = 6, but you can enter much more than 6 characters. Same thing for MaxLen = 1, = 20, ... Can you confirm (and solve  ) that? Thanks!
_________________ CD32 + SX1; AmiKit (WinUAE) + OS3.9
|
|
| Top |
|
 |
|
Allanon
|
Post subject: Re: String Box Posted: 28 Oct 2008, 18:09 |
|
| Site Admin |
 |
Joined: 22 Mar 2007, 22:50 Posts: 112
|
|
Can you post here or trought mail the source code? In the examples I have all works fine... strange...
|
|
| Top |
|
 |
|
Clyde
|
Post subject: Re: String Box Posted: 28 Oct 2008, 18:16 |
|
Joined: 27 May 2008, 19:38 Posts: 67 Location: Dresden / Germany
|
Sure, no problem: Code: scui.NewObject( #IFOCLASS_STRINGBOX, "Feld-X", { x = 26, y = 191 }, { x = 69, y = 17 }, nil, { Values = { "" }, Lines = 1, InputType = #GETKEY_NUMERIC, MaxLen = 6 }, { OnChange = p_FeldXWechsel } )
_________________ CD32 + SX1; AmiKit (WinUAE) + OS3.9
|
|
| Top |
|
 |
|
Allanon
|
Post subject: Re: String Box Posted: 28 Oct 2008, 21:49 |
|
| Site Admin |
 |
Joined: 22 Mar 2007, 22:50 Posts: 112
|
Fixed! 
|
|
| Top |
|
 |
|
Clyde
|
Post subject: Re: String Box Posted: 29 Oct 2008, 09:24 |
|
Joined: 27 May 2008, 19:38 Posts: 67 Location: Dresden / Germany
|
Great, thanks! 
_________________ CD32 + SX1; AmiKit (WinUAE) + OS3.9
|
|
| Top |
|
 |