Solved

TextPrompt disappearing

Posted on 2013-12-27
4
657 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

920 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

11 Experts available now in Live!

Get 1:1 Help Now