Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Slider or trackbar Controls

Posted on 1997-12-17
3
Medium Priority
?
286 Views
Last Modified: 2013-11-19
I have a slider control with a range from 1 to 100.  When I click on the slider but not on the bar and hold down the mouse button, the bar moves in intervals of 5 units (5, 10, ...,100).  I would like the bar to move in intervals of only 1 unit (1,2,3,...,100).  I was unable to find any help on setting the step size to a specified interval.  Any suggestions would be appreciated.

Thanx
zeekial@osler.card.bgsm.edu
0
Comment
Question by:zeekial
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 80 total points
ID: 1312537
For a slider control, you can control how much the slider moves by using GetLineSize()/SetLineSize() (default is 1) for each click of the arrows and GetPageSize()/SetPageSize() for each page (default is 5).


0
 

Author Comment

by:zeekial
ID: 1312538
Is there anyway to increase the speed at which it moves when its scrolling 1 by 1?
0
 

Author Comment

by:zeekial
ID: 1312539
Is there anyway to increase the speed at which it moves when its scrolling 1 by 1?
0

Featured Post

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question