wSuggestionPopup on WInPlaceEdit: howto select an empty value
Added by Rob Van Dyck over 12 years ago
Hi,
I'm showing suggestions for filling in a WInPlaceEdit. But I would also like to have an empty suggestion, in case the user doesn't select one. In that case I want the 'empty' text of the WInplaceEdit to be shown.
What works: the suggestions come up, and I can select the 'empty' one by immediatly pressing enter. I then see the empty text, just as expected. But when I click the WInPlaceEdit again, I have the value 'emptyval' of the suggestions again.
Anybody any idea on how to proceed? Or maybe another route I should try?
I'll attach the compilable code.
Thanx in advance,
Rob.
Replies (2)
RE: wSuggestionPopup on WInPlaceEdit: howto select an empty value - Added by Rob Van Dyck over 12 years ago
Hi,
After some more fiddling I can get the empty suggestion to appear.
I did have to make a small modification to the WSuggestionPopup, to be able to set the TextFormat of the WText that contains the suggestion. I will make a feature request for it.
I'll attach the example code and a screenshot of what I was trying to archieve. It might be usefull for someone else.
Regards,
Rob.
empty_suggestion.png (13 KB) empty_suggestion.png | |||
main.cpp (3.34 KB) main.cpp |
RE: wSuggestionPopup on WInPlaceEdit: howto select an empty value - Added by Rob Van Dyck over 12 years ago
The feature request can be found here: #1111.
Regards,
Rob.