How can we set some text to an edit control which will be visible by default until user erases that and types something else?
Edit Control still needs to be improved, I think. My last question is still unanswered after more than 80 views.
Thank You for Help in advance.
How to set some text to an edit control?
slinuxgeek
Senior Member Posts: 194 Joined: Feb 2012 Reputation: 0 |
|
| find quote |
ronie
Team-XBMC Member Joined: Jan 2009 Reputation: 111 |
2012-05-07 09:52
Post: #2
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
slinuxgeek
Senior Member Posts: 194 Joined: Feb 2012 Reputation: 0 |
2012-05-07 11:00
Post: #3
Hi ronie thanks for reply but I am talking about search string not hinttext.
That page does not answer my question. |
| find quote |
Hitcher
Skilled Skinner Joined: Aug 2007 Reputation: 67 Location: Eastleigh, UK |
2012-05-07 11:26
Post: #4
Can the hint text be an info label? If so, you could use <hinttext>$INFO[Control.GetLabel(ID)]</hinttext>.
![]() |
| find quote |
slinuxgeek
Senior Member Posts: 194 Joined: Feb 2012 Reputation: 0 |
2012-05-07 11:49
Post: #5
Hi Hitcher thanks for reply but I want to set search string/text(the text that user enters there) for the edit control, not the hinttext.
hinttext is simply displayed for user help. after that user types something in the search box. I want to set that search string by default to something for example the string "karuna". |
| find quote |
`Black
Skilled Skinner Joined: Apr 2009 Reputation: 51 Location: Germany |
2012-05-07 13:24
Post: #6
Not possible.
|
| find quote |
slinuxgeek
Senior Member Posts: 194 Joined: Feb 2012 Reputation: 0 |
2012-05-07 13:36
Post: #7
through scripting or something else?
see when you open on-screen keyboard dialog window and type search string and press Done, the matching item are displayed on screen , now again if you open on-screen keyboard dialog window then previous search string is available there that should not be there , I want empty search box each time. |
| find quote |
`Black
Skilled Skinner Joined: Apr 2009 Reputation: 51 Location: Germany |
2012-05-07 18:16
Post: #8
Nope... only with a complete custom window you could do it.
To clearing the search string... you can quickly erase the string and type something new but if you would like to add or change something in your search, it's much more time consuming if you would have to reenter it every time (assuming you're using a remote). |
| find quote |
slinuxgeek
Senior Member Posts: 194 Joined: Feb 2012 Reputation: 0 |
2012-05-08 09:22
Post: #9
ok how can we know if an edit control is empty at any moment?
|
| find quote |
`Black
Skilled Skinner Joined: Apr 2009 Reputation: 51 Location: Germany |
2012-05-08 13:33
Post: #10
You can't.
|
| find quote |


![[Image: sig_zps3af3b48e.jpg]](http://i620.photobucket.com/albums/tt289/Arcanthur/Celestium/sig_zps3af3b48e.jpg)
![[Image: xp1080-21.png]](http://www.planet-ira.de/wallpaper/xp1080-21.png)
Search
Help