This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Clear edit box on click
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 11, 2008
07:26 AM
Clear edit box on click
Hi, I have an edit box with a preset text, I want to clear the text on the edit box when I click on it, how do i do that ? Something similar to a search box
Thanks
Thanks
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 11, 2008
08:46 AM
You need to add the following events to the button that clears the edit box:
[CODE]Event | Argument | Condition
[EditBoxProperty] | "" | 1
[EditBoxProperty] | [EditBoxProperty] | 1[/CODE]
Alternatively you can use the Reset Control Event
Good luck!
[CODE]Event | Argument | Condition
[EditBoxProperty] | "" | 1
[EditBoxProperty] | [EditBoxProperty] | 1[/CODE]
Alternatively you can use the Reset Control Event
Good luck!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 12, 2008
02:39 AM
There is only one problem, I have a pure installscript project so the code above doesn't help me very much but thanks anyway, it was my mistake I didn't mention it first
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 12, 2008
09:03 AM
CtrlClear or CtrlSetText, perhaps?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 13, 2008
02:51 AM
Yes, but how do I get the click event ? In fact that it's the real problem, how to know when a user click the edit box ?
I found those functions also but I don't know how to get the click event
I found those functions also but I don't know how to get the click event
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 13, 2008
01:43 PM
My mistake---I was fixated on clearing the control contents. Alas, I'm not sure InstallScript event handling takes note of focus changes. You can detect edit-field content changes and can change dialog focus programmatically, but I'm not aware of a way to detect the user's clicking in or tabbing to an edit field. Perhaps someone has a clever idea?
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)