How to set some text to an edit control?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
slinuxgeek Offline
Senior Member
Posts: 194
Joined: Feb 2012
Reputation: 0
Rainbow  How to set some text to an edit control? Post: #1
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.
find quote
ronie Online
Team-XBMC Member
Posts: 8,344
Joined: Jan 2009
Reputation: 111
Post: #2
http://wiki.xbmc.org/index.php?title=Edit_Control

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 Offline
Senior Member
Posts: 194
Joined: Feb 2012
Reputation: 0
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 Offline
Skilled Skinner
Posts: 9,976
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #4
Can the hint text be an info label? If so, you could use <hinttext>$INFO[Control.GetLabel(ID)]</hinttext>.

[Image: sig_zps3af3b48e.jpg]
find quote
slinuxgeek Offline
Senior Member
Posts: 194
Joined: Feb 2012
Reputation: 0
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 Offline
Skilled Skinner
Posts: 2,070
Joined: Apr 2009
Reputation: 51
Location: Germany
Post: #6
Not possible.

[Image: xp1080-21.png]
find quote
slinuxgeek Offline
Senior Member
Posts: 194
Joined: Feb 2012
Reputation: 0
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 Offline
Skilled Skinner
Posts: 2,070
Joined: Apr 2009
Reputation: 51
Location: Germany
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).

[Image: xp1080-21.png]
find quote
slinuxgeek Offline
Senior Member
Posts: 194
Joined: Feb 2012
Reputation: 0
Post: #9
ok how can we know if an edit control is empty at any moment?
find quote
`Black Offline
Skilled Skinner
Posts: 2,070
Joined: Apr 2009
Reputation: 51
Location: Germany
Post: #10
You can't.

[Image: xp1080-21.png]
find quote