
How can I make the view like in the Yellow rectangle. Using TPanel + Color? If yes what about an indent of the text from the left?
Thanks for help and advices!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The simplest way is to use a
TPanel. SetParentBackgroundtofalse,BevelOutertobvNone,Font.ColortoclWhite,Font.Styleto[fsBold]and theColorto the background colour you want. Then simply put one or two spaces in front of your text in theCaptionproperty, like' This is an ordinary TPanel.'.A more elegant soution is to write a custom control. This is really easy. Example: