Solved

TextPrompt disappearing

Posted on 2013-12-27
4
652 Views
Last Modified: 2014-01-13
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
Comment
Question by:Gary4
  • 3
4 Comments
 
LVL 13

Expert Comment

by:Ashok
ID: 39742588
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
 
LVL 1

Author Comment

by:Gary4
ID: 39742642
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
 
LVL 1

Accepted Solution

by:
Gary4 earned 0 total points
ID: 39764776
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
 
LVL 1

Author Closing Comment

by:Gary4
ID: 39776058
I found this workaround/solution on my own.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now