Code Directory
 Visual Basic & VB.NET
New Code
dbForge Studio for PostgreSQL 2.3.212
HTMLPad 2020 16.2
WeBuilder 2020 16.2
Rapid CSS 2020 16.2
Rapid PHP 2020 16.2
C# HTML to PDF 2020.8.1
Vue Injector 3.3
Spectrum Analyzer pro Live 2019
Devart Excel Add-in for HubSpot 2.1
RentALLScript - Airbnb clone 2.2
SuiteCRM Theme Customization 7.11.6
iScripts NetMenus 3.1
iScripts EasyIndex 2.2
iScripts EasySnaps 2.0
Top Code
IcrediBB Bulletin Board System 1.0
RentALL-Airbnb clone script 1.8.0
Math Solver
Library Management System 1.0
T-Shirt Designer Script 1.65
Yet Another Library Management SYStem 1.0
MLM Software ONE 1.5.46
Simple Web Content Management System for Scripts 1.1
Azizi search engine script PHP 4.1.10
ChequePRO Cheque Printing writing System 1.0
Kalman filter(fixed point version) 1.0
Scientific and Currency calculator 2.2.9
Light PHP Content Management System for Scripts 2.0.2p1
SuperGeek Free Document OCR 2.5.6
ADPCM encoder and decoder 1.0
Top Rated
Uber Clone with Safety Measure Addons 2.0
Answers phpSoftPro 3.12
phpEnter 5.1.
Quick Maps For Dynamics CRM 3.1
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
Mouse Motion Handler 1.0
File ID: 86357

Mouse Motion Handler 1.0
Download Mouse Motion Handler 1.0http://sigtool.sourceforge.netReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 4
Submit Rating:
Mouse Motion Handler 1.0 Description
Description: MouseMotionHandler is a MATLAB class that uses a MATLAB figured-deOaos WindowButtonMotionFcn callback as a hook to extend button motion functionality to all handle graphics child objects of a figure including axes, lines, surfaces uipanels, uicontrols etc.

MouseMotionHandler provides an alternative to chaining callbacks or having a lengthy switch block in a WindowButtonMotionFcn callback to manage mouse motion effects. MouseMotionHandler puts its own callback into a figure's WindowButtonMotionFcn property. This callback manages the servicing of callbacks for other objects in the figure. It actively determines what is beneath the mouse then invokes a user-specified callback for that object, if one is set.
Specify these objects and their mouse motion callbacks using the MouseMotionHandler add and put methods as described below.

A WindowButtonMotionFcn object is created simply by calling its constructor with the figure handle as input:
>> obj=MouseMotionHandler(hFig);

Button motion callbacks can then be assigned for child objects of the figure (and for the figure itself) using the MouseMotionHandler class add or static put method:

obj.add(hObj, {@MyFunction, arg1, arg2d-deTZ});


MouseMotionHandler.put(hFig, hObj, {@MyFunction, arg1, arg2d-deTZ});

where hObj is the target objectd-deOaos handle (or a vector of handles) and {@MyFunction, arg1, arg2d-deTZ}) is the standard MATLAB cell array construct for setting up a callback (strings and function handles can also be used as usual).

The user-specified callback will be invoked whenever the mouse moves over the target object (pressed or not).

Callbacks can also be assigned according to the Tag and Type properties of the objects (in which case the objects need not have been instantiated at the time of the add or put call).

Any number of add or put calls can be made for each figure and these calls can be made at any the point in your code. Most typically they will be made in the functions that create the relevant objects. This should greatly aid code readability and maintenance with complex GUIs and it avoids the need to have a separate cumbersome WindowButtonMotionFcn callback dealing with all objects in a lengthy switch block.

MouseMotionHandler also extends the functionality of the standard WindowButtonMotionFcn callback: its internal logic discriminates between mouse entered, moved and exited calls (see the help text for details).

MouseMotionHandler works alongside the standard MATLAB FigureToolManager. You can pan/zoom/rotate graphics as usual. It has no affect on any callbacks other than the figure WindowButtonMotionFcn. Other figure callbacks, and all HG child object callbacks , are unaffected as are mouse event callbacks from any Java objects incorporated into the figure.

For illustration, the code includes a static method that can be called to illustrate its use. Type:
>> MouseMotionHandler.demo();
at the command prompt.

This code was developed as part of Project Waterloo, which itself is part of the sigTOOL project at King's College London. (

License: Shareware

Related: greatly, readability, Maintenance, relevant, Functions, Create, Complex, avoids, extends, internal, Logic, blockmousemotionhandler, dealing, separate, cumbersome, typically, Point, invoked

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 4

More Similar Code
The turntable is made from optic mouse and disk that can b rotate. There is software in matlab that catch mouse motion and transform it to sound. This disk simulate gramophone record play as vinyl disk. It is possible to make scratch effect. It is possible to load any wav-file. Massive disk is important here, it makes more natural scratch sound.

Mouse cursor is looped on the screen: if it go down...

MOUSETRACK(X) retuns a Mx2 tensor, which containes the x and y position of the mouse cursor during it's motion over the selected image 'inmat'. Images can be real RGB image data, or any MxN matrix. The recording phase is started and stopped by a...

The animation button applet takes one input image and performs real-time motion blur effect at a random center or mouse location.

If you move the mouse slowly over the image, then the angle of the effect and position will change. The...

1. This plug-in will create the Horizontal motion gallery on wordpress site.
2. The user can direct both the image scrolling direction and speed just by placing the mouse on either side of the image gallery.
3. Clicking on an image...

Mouse Gestures is a multi-platform compatible. Shortcuts that are activated with a motion you make while holding down the mouse button.

Move the mouse and watch a pair of curtains slide and wave.

Method derived from the paper on distributed parameters systems and physics based motion planning

N. Petit and P. Rouchon, "Flatness of Heavy Chain...

System Thread/Process wide Mouse Hook Component and DLL. Features of this version:Added TMouseHookFilters type for setting Hook Filter properties:Added Property HidePointer: boolean value to Hide/Disable the Mouse Pointer.Added Property...

This is a simple code that lets a user control the mouse and left-click using the Microsoft Kinect, Python, and OpenKinect.

Computer Prerequisites:
-Python Wrapper for OpenKinect
-A Linux machine using...

This is a simple code that uses the Kinect in order to simulate the mouse on the screen. In order for this code to work you must have a Linux machine, the freenect module from OpenKinect, NumPy, and Xlib. The last three can be downloaded and...

Waste no mouse clicks making multiple crops on many image files. Through pygame interface with pan, zoom and next/previous image. Saves files at new resolution and serialized names in a seperate folder. the mainloop() and helper functions are...

User Review for Mouse Motion Handler
- required fields

Please enter text on the image