Questions tagged [handles]

175 questions
0
votes
0 answers

how to update only one handle in matlab

I have a gui with few handles I created , not the one who come with the gui when you create him like handles.axes handles.popupmenu etc,and I have a code running when a button is clicked and after the code is finished I want to update only 1 handle…
Man in Black
  • 89
  • 2
  • 2
  • 12
0
votes
1 answer

Counters do not update

This is a first for me. I have started using GUIDE and after mild cussing I have hit rock bottom. I have setup a counter in a m-file but for some reason it does not update. Could you please help me. The counter is called num. function ack =…
0
votes
1 answer

JavaFX8 node resize handles

I have a StackPane to which I add child panes. Each child has MouseEvent handlers to drag it around the StackPane. Works fine. Then I also want to be able to resize that pane. So I added 8 small 'drag' panes to the child in the appropriate places…
Frank
  • 521
  • 7
  • 19
0
votes
1 answer

how to call over values from one function to another using GUIDE?

So I try to use handles to call over a created array from a callback function (select_cmp_Callback), shown below) to a create function (bot_igntmassflux_1_CreateFcn). But apparently all that failed and it keep saying Undefined function or variable…
wasnt here
  • 11
  • 4
0
votes
0 answers

How can I access figure handles outside the function that plots the figure?

I am using a function that plots a number of rectangles and i have stored each rectangle's handle in a matrix. The function returns the handles matrix and I want to use these handles to further change the aspect of a certain rectangle. Is this…
0
votes
1 answer

Unable to use the output of inputdlg in the get function

I want to use the input value from the dialog box and save it as sp_name. Saving it directly to sp_name is giving me an error. Kindly help me out. It seems that as soon as the inputdlg is closed, ans variable is destroyed. what should I…
0
votes
1 answer

Handle of DC C++ Windows

I want to get the pixels of every physical screen individually, but MSDN says GetDC needs a window to know which screen to get the handle of. Is there any way of telling it which handle to use without using a window or mouse? So I can call…
Built on Sin
  • 351
  • 2
  • 6
  • 19
0
votes
1 answer

How to redisplay / recover a deleted text object from a Matlab figure?

I am now writing a code to display and remove a text object from an axes. However, I do not know the way to redisplay the same text which is deleted. You may understand better by the following codes: I can add a text to my axes by the following…
Myrick Chow
  • 332
  • 1
  • 6
  • 16
0
votes
1 answer

How to access non GUIDE handles in GUIDE callbacks

So I have a large legacy GUIDE GUI, that I didn't create but am tasked to expand on. Now I always write my GUI's by hand without GUIDE and have been busy cleaning this one up and fixing it, short of rewriting the whole thing without GUIDE. So…
user4034833
0
votes
0 answers

GUI handle updates in matlab, positioning the gui

I have created a GUI and wish to set the position (and size) of the figure using the command; set(hObject, 'Position', [4380, 1725, 900 650]); guidata(hObject,handles) When I place a break point at the first line and then continue the program, the…
Tim
  • 1
0
votes
3 answers

Matlab GUI : Efficient of global variable Vs handles

Is it more efficient to pass data between functions by global variables than handles structure in Matlab GUI? Thanks, Myrick
0
votes
1 answer

Matlab: How to return output from a function in a set()?

I am now using Matlab GUI and have problem during accessing return values from a function which is set by set(). Situation: I set the windowMotionFcn as below: set(gcf,'WindowButtonMotionFcn',@test); Function 'test' can return 2 variables (named…
Myrick Chow
  • 332
  • 1
  • 6
  • 16
0
votes
2 answers

MATLAB GUI: Exchange data (handles)

I have designed a MATLAB GUI by GUIDE for image analysis. I need to share data between functions so I used the guidata function and stored it in the handles-object as it is documented (http://www.mathworks.de/de/help/matlab/ref/guidata.html). For…
cos4
  • 95
  • 1
  • 2
  • 9
0
votes
1 answer

Handles disappear when I create axis in GUI

I'm working on a GUI (created with guide in Matlab) with two axes and two pushbuttons. When the user presses pushbutton1 I want to display an image on axes1 and when the user presses pushbutton2 I want to display an image on axis2. This is my…
user2738748
  • 1,106
  • 2
  • 19
  • 36
0
votes
1 answer

VB.Net Run Code When WinForm Application Exits From Anywhere

I have a quick question. I want to run some come when my application exits, wherever in the winform application it may be. The reason is that the user adds/changes data in the application in different forms, and I have it set to save different data…
Centaurian
  • 277
  • 1
  • 3
  • 11