New topic: 

Customer Slider Control with Canvas

<http://forums.realsoftware.com/viewtopic.php?t=32180>

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       rbasic20091005153           Post subject: Customer Slider Control 
with CanvasPosted: Mon Jan 25, 2010 11:23 am                               
Joined: Sat Apr 04, 2009 5:10 pm
Posts: 616              Hola,

I'm working on a video controller of my own that is similar to the audio volume 
slider of QuickTime or VLC Media Player.  I didn't know where to begin.  And I 
looked at an example project named DragPics (Examples > Graphics > DragPics), 
which has scared the hello out of me.  Then I searched the board and found a 
simple example suggested by Tim and serd83.  Okay.  It's actually that simple.  
Just put some code under MouseDown and MouseDrag.  Now, I've been greatly 
relieved.  I only need to move the knot horizontally, so I only need the left 
part.

My question is how can I set boundaries?  Let's say that I want to let a Canvas 
control to stay between 50 and 200.  For the highest part, if I use the 
following code under MouseDrag, the knot icon will flicker if the user keeps 
dragging beyond Me.Left>200.
Code:
If Me.Left>210 Then
  Me.Left=210
Elseif
  
Else
  Me.left=Me.left + x - dragX
End if


This is a totally new territory for me.  So my question is probably basic.

Muchas gracias for your advice.

Tom     
_________________
Mac OS X 10.5.8/REALBasic 2008 R5.1 ~ REALBasic 2009 R4
Don't MBS-spam me.  Don't plugin-spam me.  No thanks.  
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to