View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Drag Line in GUI

5.0 | 3 ratings Rate this file 15 Downloads (last 30 days) File Size: 6.73 KB File ID: #42284 Version: 1.0
image thumbnail

Drag Line in GUI



Lines in the GUI can be dragged

| Watch this File

File Information

run DragLineGUI.m

This demo is modeled after Doug Hull excellent demo @:
but has been revised to work in a file created with GUIDE.
The two lines can be dragged with the mouse and the positions can be passed to the command window by pressing the push button.
It also shows how to pass the GUI handles to the user defined callback functions in the same way GUIDE does.

MATLAB release MATLAB 7.12 (R2011a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
21 Apr 2016 Juan Manuel Fajardo

I have a problem, i need drag a line in a GUI but using uipanel instead of axis. . .
The name 'WindowButtonUpFcn' is not an accessible property for an instance of
class 'uicontrol'.

I changed .axes1 for .uipanel1

Error in interfazAnotacion>slider1_Callback (line 430)
set(hObject, 'WindowButtonUpFcn',

25 Jan 2016 polaris

Thank You Gero Nootz, This is the thing I was looking for :)

07 Sep 2015 Saul Arciniega

Contact us