Solved

Tlabel with 3D-Frame

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

830 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