Click location

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marina

    Click location

    Hi,

    Let's say you have a textbox or a label with some text in it. Let's say
    someone clicks on it.

    Is there any way to tell if they clicked just on the text in the control, or
    in white space that in the control if the control is wider then the text it
    contains?


  • Atul

    #2
    Re: Click location

    For a label, you cannot do this unless you have drawn the text yourself and
    know how much space the text occupies.

    ----------------
    -Atul, Sky Software http://www.ssware.com
    Shell MegaPack For .Net & ActiveX
    Windows Explorer GUI Controls
    &
    Quick-Launch Like Appbars, MSN/Office2003 Style Popups,
    System Tray Icons and Shortcuts/Internet Shortcuts
    ----------------



    "Marina" <someone@nospam .com> wrote in message
    news:eiNhi7C0FH A.1168@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Hi,
    >
    > Let's say you have a textbox or a label with some text in it. Let's say
    > someone clicks on it.
    >
    > Is there any way to tell if they clicked just on the text in the control,
    > or in white space that in the control if the control is wider then the
    > text it contains?
    >[/color]


    Comment

    Working...