[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 712
  • Last Modified:

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
0
Gary4
Asked:
Gary4
  • 3
1 Solution
 
AshokCommented:
Usually you can use SetFocus of a component name like

myComponent.SetFocus;

I do not have latest Delphi so I am not sure if this would work.
0
 
Gary4Author Commented:
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.
0
 
Gary4Author Commented:
The problem was that the supplied style-books didn't style the text prompt while the inbuilt default style did.  Not being styled the prompt was not viable..

Instead of using a full replacement style I extended the default style with my own customizations thus retaining the prompt style.
0
 
Gary4Author Commented:
I found this workaround/solution on my own.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now