| Author |
Message |
|
Clyde
|
Post subject: String Box Posted: 28 May 2008, 08:23 |
|
Joined: 27 May 2008, 19:38 Posts: 67 Location: Dresden / Germany
|
Ok, now I had my first run of the newdemo.hws at my AmiKit system - it looks beautiful! Create to have this here at my Amiga now!
Will a quick check of some controls the following feature came into my mind: You have predefined text in the string boxes, e.g. "Only numbers here! 123 ...". Now it would be cool, if I can have the choice, whether this text stays in the box when I click on it in order to write my own text (this behaviour we see now) or whether the predefined text will be erased when I click the text box.
EDIT: Ah, I see that you have implemented an overwrite function with F1. That is good and helps. But my request is still valid.
Greetings
Micha (who is still fascinated  )
|
|
| Top |
|
 |
|
Allanon
|
Post subject: Posted: 28 May 2008, 10:51 |
|
| Site Admin |
 |
Joined: 22 Mar 2007, 22:50 Posts: 111
|
Thank you Micha, happy to see you like my work
This is quite simple to implement adding a new tag, something like:
ClearAtFirstEdit = True | False
|
|
| Top |
|
 |
|
Clyde
|
Post subject: Posted: 28 May 2008, 14:46 |
|
Joined: 27 May 2008, 19:38 Posts: 67 Location: Dresden / Germany
|
Allanon wrote: ClearAtFirstEdit = True | False
Yeah, that would be cool, if you could do that.
Thanks!
Ok, I am not sure where exactly to post this, but as it came to my attention when I was playing around with the string box I leave it here: I recognized, that the a button is disabled (not clickable), when I am in a string box, which means when I edit/enter text in the string box. It means, that I always have to hit "enter" after typing in the text to be able to activate a button. But it would be cool, if I could directly use the button (e.g. "Apply") in order to write the value to the variable instead of pressing "enter" before.
I hope that you know what I mean, my English is in high need of improvements ... :-/
Greetings
_________________ CD32 + SX1; AmiKit (WinUAE) + OS3.9
|
|
| Top |
|
 |
|
Allanon
|
Post subject: Posted: 28 May 2008, 18:58 |
|
| Site Admin |
 |
Joined: 22 Mar 2007, 22:50 Posts: 111
|
I'm not sure if I've understood well what you are asking...
If you are talking about the ability to press buttons during string editing, well, I'm working on it because hitting enter all the time to exit the string box is really hurting
If you are asking to change the state of a button when the string text changes, ie, to enable a button when the string is modified in real time it's possible implementing a new event for the string box, something like:
OnStringChange --> Call your function (so you can enable/disable/whatever you want)
This could be usefull, for example, to track in real time the string lenght and other stuff.
P.S.: don't worry about your english, my english is very weird! 
|
|
| Top |
|
 |
|
Clyde
|
Post subject: Posted: 28 May 2008, 22:56 |
|
Joined: 27 May 2008, 19:38 Posts: 67 Location: Dresden / Germany
|
Yeah, I meant the possibility to press a button while editing a string. Good to read, that you see it similar - it's really hurting.
But the latter thought is also interesting. I wouldn't mind if you implement that, too.
Good night
_________________ CD32 + SX1; AmiKit (WinUAE) + OS3.9
|
|
| Top |
|
 |
|
Clyde
|
Post subject: Posted: 12 Aug 2008, 21:31 |
|
Joined: 27 May 2008, 19:38 Posts: 67 Location: Dresden / Germany
|
Ok, my friend, I am looking now deeper into SCUI lib 0.5 ...  And now I have a little wish ...
For string boxes, when I use #GETKEY_ALPHABETIC as the input, would it be possible to add the space key as an alphabetic char? I want to write sentences/more than one word, separated by space, wenn I use this mode. I think (or at least I hope it) it makes sense.  At least it does for me.
So, an example: Now I can only right "DigOutYourSoul" but I would like to be able to write "Dig Our Your Soul" (without using "ALL" or "CUSTOM").
What do you think?
_________________ CD32 + SX1; AmiKit (WinUAE) + OS3.9
|
|
| Top |
|
 |
|
Allanon
|
Post subject: Posted: 18 Aug 2008, 19:19 |
|
| Site Admin |
 |
Joined: 22 Mar 2007, 22:50 Posts: 111
|
Hello Clyde!
Welcome back ^^
Of course I will add the space with the allowed characters in _ALPHABETIC subset, it should be there from the beggining, sorry mate!
I will fix ASAP and in 1 or 2 weeks I will release a new version, if you need a patched version with the space-thing fixed drop me msg and I will PM you the package
Sorry for the late answer 
|
|
| Top |
|
 |
|
Clyde
|
Post subject: Posted: 19 Aug 2008, 20:00 |
|
Joined: 27 May 2008, 19:38 Posts: 67 Location: Dresden / Germany
|
Hey Fabio,
thanks for the reply. So, it isn't urgent to have it now, in 1 or 2 weeks it is just fine.
Thanks a lot, mate!
PS: Did you already hear the new Oasis song "The shock of the lightning"? It premiered a couple of days ago on the (internet) radio. Typically Oasis, typically great song! 
_________________ CD32 + SX1; AmiKit (WinUAE) + OS3.9
|
|
| Top |
|
 |
|
Allanon
|
Post subject: Posted: 21 Aug 2008, 22:25 |
|
| Site Admin |
 |
Joined: 22 Mar 2007, 22:50 Posts: 111
|
I didn't hear yet that song but I will do for sure!

|
|
| Top |
|
 |
|
Clyde
|
Post subject: OnClick/OnEnter event Posted: 28 Oct 2008, 16:09 |
|
Joined: 27 May 2008, 19:38 Posts: 67 Location: Dresden / Germany
|
Hi Fabio, here is another request, suggested by Tipsi: Could you add an OnClick or OnEnter event for string boxes, so it is triggered, when a string box is activated/get the focus? This would enable us to show a little help text in a label (or later in tooltips or sth), when the user entered a string box. Thanks for considering!  Micha
_________________ CD32 + SX1; AmiKit (WinUAE) + OS3.9
|
|
| Top |
|
 |
|
Allanon
|
Post subject: Re: String Box Posted: 28 Oct 2008, 22:31 |
|
| Site Admin |
 |
Joined: 22 Mar 2007, 22:50 Posts: 111
|
OnClick support added!! About activating a string box you have to simulate the mouse actions with a special function named < scui.HandleObject>. When you click on a string box you do the following: 1: Set the focus when you go over the gadget with the mouse pointer 2: Click left mouse button 3: Release the mouse button With scui.HandleObject you have to send these three messages using the following code: Code: ; Suppose that the string box you want to activate is named "StringBox_1" Local StringBoxID = scui.GetIFOID("StringBox_1") scui.HandleObject({id = StringBoxID , action = "OnMouseOver"}) scui.HandleObject({id = StringBoxID , action = "OnMouseDown"}) scui.HandleObject({id = StringBoxID , action = "OnMouseUp"}) After you have executed this code the string box will be activated and ready to accept user input. Remember that if you have assigned a function to the OnClick event it will be executed. I've tested the above code setting a function to a gadget button, when I press the button the string box is activated, hope this is what you and Tipsi need! I'm sending the new corrected version, check your mail 
|
|
| Top |
|
 |
|
Clyde
|
Post subject: Re: String Box Posted: 29 Oct 2008, 09:25 |
|
Joined: 27 May 2008, 19:38 Posts: 67 Location: Dresden / Germany
|
|
Ah, ok, thanks for the code! We'll try that later!
_________________ CD32 + SX1; AmiKit (WinUAE) + OS3.9
|
|
| Top |
|
 |
|
Clyde
|
Post subject: Click will delete content Posted: 02 Nov 2008, 23:59 |
|
Joined: 27 May 2008, 19:38 Posts: 67 Location: Dresden / Germany
|
Let's assume I let a help text be displayed in a string box. So it would be cool if I could have an option that deletes the text as soon as I click in the box so I can start writing sth in it without deleting the help text before manually. Ok, I could use the new OnClick event (ScuiLib 0.6), but I am not sure whether it wouldn't be better to have it as a ScuiLib functionality like the "overwrite" mode ... Your decision ...  Good night, Micha
_________________ CD32 + SX1; AmiKit (WinUAE) + OS3.9
|
|
| Top |
|
 |
|
Allanon
|
Post subject: Re: String Box Posted: 03 Nov 2008, 09:17 |
|
| Site Admin |
 |
Joined: 22 Mar 2007, 22:50 Posts: 111
|
Look here, isn't it what you are looking for? The tag Clear1st, if assigned to a non-nil value, means that at 1st activation the string box will be cleared, let me know if you need a more complete example 
|
|
| Top |
|
 |
|
Clyde
|
Post subject: Re: String Box Posted: 03 Nov 2008, 19:17 |
|
Joined: 27 May 2008, 19:38 Posts: 67 Location: Dresden / Germany
|
Man, I am so stupid ...  Thanks for that! I just oversaw that ... 
_________________ CD32 + SX1; AmiKit (WinUAE) + OS3.9
|
|
| Top |
|
 |