Re: Slider Bar for Survey
- From: rbb101 <rbb101@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 14 Apr 2005 05:31:05 -0700
I was able to replicate this slider control and it works well. Is there
anyway to associate numeric values to where the user clicks on the slider.
"GraemeR" wrote:
> 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.
>
>
>
.
- Follow-Ups:
- Re: Slider Bar for Survey
- From: Rob Parker
- Re: Slider Bar for Survey
- From: jimtotem
- Re: Slider Bar for Survey
- Prev by Date: Re: how do i make a user account specific to a user
- Next by Date: Re: Multiple copies of record
- Previous by thread: This should be simple but it is not!
- Next by thread: Re: Slider Bar for Survey
- Index(es):
Relevant Pages
|