Underline Label Caption on MouseOver?

Started by MiD-AwE, November 05, 2013, 09:02:18 AM

Previous topic - Next topic

MiD-AwE

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

Hi, have a try with
Code (autolisp) Select
(dcl_Control_SetFontUnderline Unbenannt_Dialog1_Bezeichnung1 isNewValue [als Boolean])
Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

MiD-AwE

#2
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

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

MiD-AwE

 :D
Very Clever Fred. Thank you.

(Kinda a hack, but it'll do)