LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 538
Default Determine closest control to MouseUp event?

Is there an easy, accurate method to determine the closest control to a
MouseUp (or MouseDown, if it's easier) event, if the user clicks on the
UserForm instead of a control? (My form will be used on a touch screen.)

My current best guess is to do it manually (so to speak): look at the
coordinates of the click, and then look at the coordinates of each control
and decide which one is closest. I'm sure it'll work, but it's going to be a
PITA, and I'm looking for something built-in, or alternately code that's
already been written. (My google-fu has failed me here.)

--
Nobody gives a damn about me, or anybody else.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart MouseUp Event Feedback Amit Velingkar [MSFT] Charts and Charting in Excel 2 October 26th 09 02:06 AM
How to determine the closest value? Eric Excel Discussion (Misc queries) 7 November 11th 08 01:24 AM
MouseUp Event Does Not Fire TC[_10_] Excel Programming 2 April 6th 08 02:36 AM
MouseUP event avi Excel Programming 1 October 5th 07 11:44 PM
MouseUp Event Paddler Excel Programming 2 October 5th 06 09:16 AM


All times are GMT +1. The time now is 06:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"