Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 06-05-2004, 08:57 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,486
sde is on a distinguished road
Mouse or Drag Handlers

I'm trying to make a volume slider component.

i have 2 images, a background, and the tip of the slider that moves.

i can't seem to get the handler, or combination of handlers right to accurately represent a volume slider.

the logic would be something like this:

on mouse down, link the current Y Mouse value to the current volume value

on mouse move while the mouse is down, if the value is >= minimum and <= maximum, then set the volume value to the adjusted movement.

i guess i'm not sure how to get a combination of mouse down and mouse move, .. i don't think the drag handlers really apply since they seem to trigger when objects interact with other objects.
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Event Handlers Morphios Standard C, C++ 1 06-20-2003 01:19 AM


All times are GMT -8. The time now is 04:36 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting