We have a Block, Replace Selection command in the Actions of the Edit Box. But i miss an action to select parts or the whole text. Would be neat :)
Printable View
We have a Block, Replace Selection command in the Actions of the Edit Box. But i miss an action to select parts or the whole text. Would be neat :)
Use the Rich Text Object. It has "select whole text" and "select text"
Yeah, but it is no Edit Box ...
If you must use the edit box then use control X or the Key object
create an event to grab focus then Ctrl + A or... if it's text you want to store just create an event to set global string to Edit box.
Thanks for the tip. But that's not what i am looking for.
What i wanted to do is that the whole text of my edit box is selected when i give it focus. Without touching any key.
Why would you use the Edit box for this sort of thing when the Rich Edit object has so many more different actions?
Not criticising, just wondering. I only use the edit box to display oe line of variable text but if i needed something to automatically overwrite what was in the box i use the Rich Edit Object.
Again just curious.
I simply don't need all those features that comes with the Rich Edit Object. I just want to display one line too. Anyways, i will use Rich Edit Object now.
One problem I found with the RTF object was that you have no control over what the users can put in the box. I tried to create a syntax colouring tool for lua but it quickly became pointless - users can paste in pictures, hyperlinks, tables, movies! etc
One of the most useful things of RTF2 is the "protection" mode, but when I try to use this on more than one section of text MMF2 crashes.
At the moment I've decided to use strings and other objects to display the text; it gives greater control, and you can customize the text with expanding buttons and other things like that :D
Yes, this are the worst issues of the RTF object. :sick: