Re: Slider Bar for Survey
From: GraemeR (graeme_at_wave_nospam.co.nz)
Date: 01/27/05
- Next message: Ken: "Save a record in Snap shot format"
- Previous message: GraemeR: "Re: auto return in a memo?"
- In reply to: jimtotem: "Slider Bar for Survey"
- Next in thread: jimtotem: "Re: Slider Bar for Survey"
- Reply: jimtotem: "Re: Slider Bar for Survey"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 27 Jan 2005 22:43:15 +1300
Hi Jim, there are third party controls for this e.g. Microsoft Slider
Control that you may have installed on your system. I think it's part of VB.
To create the whole thing in MS Access I would place a label and a couple of
lines on a form.
Place a horizontal line on the form and set it's style to Chiseled. This
will be your slider.
Place a label (named lblBackground) over the line (background
transparent)Make it tall enough to easily catch the MouseDown and MouseMove
events (a line isn't tall enough.)
Place a space in the Label so that MS Access doesn't delete the control on
exiting it.
Place a short vertical line on the form (called linMarker) to mark where the
user clicked.
To indicate where a user clicked on the slider
Private Sub lblBackground_MouseDown(Button As Integer, Shift As Integer, X
As Single, Y As Single)
linMarker.Left = lblBackground.Left + X
linMarker.Width = 0
End Sub
Obviously you can trap the MouseMove event to add some flare.
Also, use something a little more creative than a vertical line for the
marker.
Cheers, Graeme.
- Next message: Ken: "Save a record in Snap shot format"
- Previous message: GraemeR: "Re: auto return in a memo?"
- In reply to: jimtotem: "Slider Bar for Survey"
- Next in thread: jimtotem: "Re: Slider Bar for Survey"
- Reply: jimtotem: "Re: Slider Bar for Survey"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|