Solved

Tlabel with 3D-Frame

Posted on 1998-06-19
5
259 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

773 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