Posts: 171
Threads: 17
Joined: Jun 2018
Reputation:
21
Location: US
Added placeholders and they mostly work, but if I touch an IWEdit control through an async call such as enabling, disabling, or setting the text the placeholder then disappears. If I update the control via a synchronous call the placeholder reappears and works until another async call updates the control. This occurs with or without templates.
Posts: 2,266
Threads: 198
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
I can't reproduce this behavior.
What are the properties that you are changing? I'm changing font, color, border, and several things and if I clear the text the placeholder is there. The attribute doesn't change in an async call....
Posts: 171
Threads: 17
Joined: Jun 2018
Reputation:
21
Location: US
Took a quick look at the IW source - the IWEdit 'Hint' property controls the placeholder if 'Attributes->iaPLaceholder' is true. So all works if set iaPLaceholder = true and 'Hint' = desired placeholder.
Posts: 2,266
Threads: 198
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
Yes, the hint controls the placeholder attribute.