?
Solved

Tlabel with 3D-Frame

Posted on 1998-06-19
5
Medium Priority
?
265 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month14 days, 18 hours left to enroll

771 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