Solved

Tlabel with 3D-Frame

Posted on 1998-06-19
5
256 Views
Last Modified: 2010-04-04
How can I manage that my Tlabel has a 3D-Frame like TEdit ?

I tried to work with TEdit, but there were other problems :

TEdit und enabled=false does not work, because the text is no longer black.
TEDit and readonly=true does not work, because if you click on it, there appears a caret .
 
0
Comment
Question by:titz
  • 2
  • 2
5 Comments
 

Expert Comment

by:dskowron
ID: 1354177
TEdit and ReadOnly:=true works. You can change the cursor property for the TEdit. I do it all the time. You can make a TEdit look and behave just like a TLabel.

DS
0
 

Expert Comment

by:dskowron
ID: 1354178
Also, you could use a tiny panel to get your borders. There a lots of options for you .
0
 
LVL 1

Author Comment

by:titz
ID: 1354179
if I have a Tedit and readonly=true, then I can change the appearance of the cursor, - that's correct. But whatever shape the cursor has, if I click on it there is in the text a small caret shown. This I will avoid.

0
 
LVL 1

Accepted Solution

by:
michaue earned 50 total points
ID: 1354180
I have one of three things you can do :

1.  Use a normal TLabel with the color property set to white and then add around it a      TBevel (which you can find under the Additional tab) to give the 3D effect.
2.  Use a TPanel with the color property set to white and then change the BevelInner      property to bvNone, BevelOuter to bvRaised, BorderStyle to bsSingle with an      Alignment of taLeftJustify.  Then just change the size to be the same as the normal
     edit box.
3.  Use the TEdit with Readonly = True and in the OnEnter event set the focus to another      control on the form by using <controlname>.SetFocus.

Hope one of them works for you !

Have fun ...

Elfrieda :)
0
 
LVL 1

Author Comment

by:titz
ID: 1354181
Elfrieda, that is what i was looking for !
Thanks and i wish you a sunny day !
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

16 Experts available now in Live!

Get 1:1 Help Now