It is currently 01 Jan 2010, 07:56

Welcome
Welcome to the SDB Engine Forum!
You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join our community today</a>!


Post a new topicPost a reply Page 1 of 1   [ 7 posts ]
Author Message
 Post subject: String Box
PostPosted: 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 :D )

Greetings and good night
Micha

_________________
CD32 + SX1; AmiKit (WinUAE) + OS3.9


Top
 Profile  
 
 Post subject:
PostPosted: 30 May 2008, 22:22 
Site Admin
User avatar

Joined: 22 Mar 2007, 22:50
Posts: 112
Hello Clyde!
I agree with you about the Oasis :D , 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 :wink: )
    - 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 :D

Cya
Fabio


Top
 Profile  
 
 Post subject: Re: String Box
PostPosted: 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 :-D) that? Thanks!

_________________
CD32 + SX1; AmiKit (WinUAE) + OS3.9


Top
 Profile  
 
 Post subject: Re: String Box
PostPosted: 28 Oct 2008, 18:09 
Site Admin
User avatar

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
 Profile  
 
 Post subject: Re: String Box
PostPosted: 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
 Profile  
 
 Post subject: Re: String Box
PostPosted: 28 Oct 2008, 21:49 
Site Admin
User avatar

Joined: 22 Mar 2007, 22:50
Posts: 112
Fixed! :D


Top
 Profile  
 
 Post subject: Re: String Box
PostPosted: 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
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 7 posts ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron