Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » programmatically limiting scale drag
programmatically limiting scale drag [message #467776] Mon, 06 February 2006 16:44
Spencer Stejskal is currently offline Spencer StejskalFriend
Messages: 9
Registered: July 2009
Junior Member
I am looking for a way to programmatically limit how far a user can drag the
thumb on a scale. i have preset min/max values which are set on the scale
but i also have another, completely independent, set of conditions which
needs to stop the thumb within the valid range of the slider.
For example:
I may have a min of 765 and a max of 1120. my seperate set of conditions
say the user cannot drag the thumb higher than the 1050 mark. i cannot
change the max value to 1050 because of business logic, that is it would
confuse my users. i am currently listening for selection events on the
scale and if the value is above 1050 then i am resetting the value to
exactly 1050. logically this solves my problem but it is aesthetically
unpleasing because the thumb blinks and jumps around in a crazy fashion.
any ideas on how i can do this more gracefully?
Previous Topic:CTabFolder and TabFolder
Next Topic:Spket2D for SWT 1.0 demo released
Goto Forum:
  


Current Time: Sat Aug 17 17:22:30 GMT 2019

Powered by FUDForum. Page generated in 0.01920 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top