Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Placeholder text in Edit control
#1
Hello there,

Can input fields on Dialogs have 'placeholder' text?
By placeholder text I mean this: http://getbootstrap.com/css/#type (as you can see on Forms > Supported controls). It's a lighter, pre-defined text that often shows an example of what you can write on that field.

Thanks a lot!
#2
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
Unavailable on Win2000.
Clips first character on XP. Add space to avoid it.
Does not work with multiline Edit controls.

str s=" Search..."
SendMessage hwndEdit EM_SETCUEBANNER 0 @s


Forum Jump:


Users browsing this thread: 1 Guest(s)