windows - Is there a selectable label control? -
I want a select label control, such as one in the screenshot. It can be done with a universe of Tedit, but I was wondering if there is another method which will work with gradient backgrounds?
To clarify, I am using a simple PageControl, which is a gradient drawing in Win XP Account:
Update:
I have been successful in getting the process by adding CNCtlColorStatic (var)
AMsg: TWMCtlColorStatic); Message CN_CTLCOLORSTATIC; TTRA transparence CNCtlColorStatic (var AMS: TWMCtlColorStatic); Start with ThemeServices if ThemesEnabled then starts SetbackMode (AMsg.ChildDC, Windows.TRANSPARENT); Dropperbackbackground (handle, AMS.SBIDDC, Zero, False); AMsg.Result: = GetStockObject (NULL_BRUSH); End inherited; End;
It is now transparent, but it is necessary to do something else, because the text is selected as a painting does not work properly. It is difficult to explain behavior, I will check further and update here ...
label editable Are not there. TLabel can not even get the focus, because it does not inherit TWINControl.
I am using a tedit to mimic my screenshot:
Item Edit 1: Telemed borderstyle = BSNN Parent Collar = True Readline = True Text = 'Edit Label' End
(You can copy and paste the above code into your form)
Comments
Post a Comment