X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
   Reply to this topicStart new topic
> Multiple Control Selector (Time Picker Example)    
post Mar 24 2008, 01:41 PM

Utter A-fishin'-ado
Posts: 17,958
Joined: 1-August 05
From: Cincinnati, Ohio, USA . . . ><((((°>

Please find demonstrated by the attached example a way of selecting multiple contiguous controls using the OnMouseMove event.
For illustration purposes the example provided selects colored rectangles and incorporates them into a Time Picker control.
The solution is not meant to be 100% Plug and Play. More than likely you will need to make small adaptations to use it with your own project. But it seemed like a very useful technique to demonstrate nonetheless.
The code has been kept as simple as possible to allow for easy modification. I can imagine many uses for this and I look forward to seeing what others come up with.
For further discussion a thread has been started here.
Attached File(s)
Attached File  TimePicker.zip ( 47.96K )Number of downloads: 449
Go to the top of the page
post Mar 25 2008, 10:01 AM

UdderAccess Admin + UA Ruler
Posts: 19,557
Joined: 27-April 02
From: Upper MI

The attached example is from Chris O'Brien (ChrisO).

THe has taken the time to tighten up the code if you're actually going to use this as a production time picker. He has also included a new method that incorporates a single control that overlays all the others, thus allowing only a single OnMouseMove event to be processed.

Nice adaptation, Chris! thumbup.gif

(ACC97 & 2003 formats attached)

Keep 'em coming! cool.gif

posted by request of:
Walter Niesz | Microsoft Access MVP
"By iron, iron itself is sharpened. So one man sharpens the face of another."
Attached File(s)
Attached File  TimePickerChrisOExample.zip ( 74.51K )Number of downloads: 360
Go to the top of the page

Custom Search

RSSSearch   Top   Lo-Fi    23rd August 2019 - 04:00 AM