Started by MiD-AwE ·
2013-11-05 17:02 UTC ·
4 replies · SMF topic #2055
MiD-AwE
2013-11-05 17:02 UTC
Hi all,
I have a modal form with several text labels. I want the text labels to underline like a URL once the mouse moves over the Label. I have checked the MouseMove Event but I'm not sure how to gain access to the underline property of the text.
Can anyone help with this?
Thank you.
fred_tomke
2013-11-05 17:31 UTC
Hi, have a try with
(dcl_Control_SetFontUnderline Unbenannt_Dialog1_Bezeichnung1 isNewValue [als Boolean])
Regards, Fred
MiD-AwE
2013-11-05 18:27 UTC
Thank you Fred. :)
That works great. But, how would I go about removing the underline on MouseLeave?
Thank you.
BTW- I tried:
(while (= Flags 0)
(DCL_CONTROL_SETFONTUNDERLINE CNTRL-PNL_SoftscapeForm_GraniteLinkLabel "true")
(DCL_CONTROL_SETFONTUNDERLINE CNTRL-PNL_SoftscapeForm_GraniteLinkLabel "false")
)
The underline flashes for a while then AutoCAD Crashes. What is the correct way to do this?
fred_tomke
2013-11-05 19:40 UTC
Hi, put a picture box behind the labels with color -16 in background. Activate OnMouseEntered event and whenever you leave the caption you enter the picturebox, then you can remove alle the underlines from the labels.
Fred
MiD-AwE
2013-11-05 23:30 UTC
:D
Very Clever Fred. Thank you.
(Kinda a hack, but it'll do)