Gary4
asked on
TextPrompt disappearing
Hi,
I'm trying to setup a stylebook for my Delphi XE5 mobile firmonkey app and according to the DocWiki I'm selecting one of the supplied stylebooks and customizing that.
The problem is each one of the supplied stylebooks that I've tried causes the TextPrompt in my tEdit to disappear.
So why is it doing this and do I need to create a custom tEdit in order to have a TextPrompt?
Gary
I'm trying to setup a stylebook for my Delphi XE5 mobile firmonkey app and according to the DocWiki I'm selecting one of the supplied stylebooks and customizing that.
The problem is each one of the supplied stylebooks that I've tried causes the TextPrompt in my tEdit to disappear.
So why is it doing this and do I need to create a custom tEdit in order to have a TextPrompt?
Gary
ASKER
I'm not sure how that would help.
The TextPrompt property with the default style functions almost identical to the placeholder attribute in an HTML input tag. It displays a gray text prompt for the expected input when the control is empty whether it has focus or not. It can be used in place of a label thus saving screen space on small screens.
The TextPrompt property with the default style functions almost identical to the placeholder attribute in an HTML input tag. It displays a gray text prompt for the expected input when the control is empty whether it has focus or not. It can be used in place of a label thus saving screen space on small screens.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I found this workaround/solution on my own.
myComponent.SetFocus;
I do not have latest Delphi so I am not sure if this would work.