Atozed Forums
15.1.4 + placeholders + IWEdit + async update - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: 15.1.4 + placeholders + IWEdit + async update (/thread-1213.html)



15.1.4 + placeholders + IWEdit + async update - MJS@mjs.us - 09-03-2019

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.


RE: 15.1.4 + placeholders + IWEdit + async update - Alexandre Machado - 09-05-2019

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....


RE: 15.1.4 + placeholders + IWEdit + async update - MJS@mjs.us - 09-05-2019

I'm able to reproduce with a simple new IW project with an IWEdit (placeholder set in ExtraTagParams) and a button which toggles the 'Enabled' property via async:

Pic 1: on startup, placeholder visible.
[Image: PLACEHOLDER-01.png]
Pic 2: toggle enabled, placeholder disappears.
[Image: PLACEHOLDER-02.png]
Pic 3: toggle enabled, placeholder still not active.
[Image: PLACEHOLDER-03.png]
Pic 4: full page refresh, placeholder appears and works normally.
[Image: PLACEHOLDER-04.png]

Using C++ builder 10.2.3 + IW 15.1.4




RE: 15.1.4 + placeholders + IWEdit + async update - MJS@mjs.us - 09-05-2019

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.


RE: 15.1.4 + placeholders + IWEdit + async update - Alexandre Machado - 09-09-2019

Yes, the hint controls the placeholder attribute.