octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OctDev] Need for JHandles/Linux tester


From: Michael Goffioul
Subject: Re: [OctDev] Need for JHandles/Linux tester
Date: Wed, 4 Jul 2007 15:18:55 +0200

On 7/4/07, David Bateman <address@hidden> wrote:
> page_screen_output(0); % do not buffer output
> h = uicontrol('string', 'OK'); % should create a push button
> set(h, 'callback', @(h,e) disp('button clicked')); % add a callback to
> the button
> uicontrol('style', 'edit', 'min', 0, 'max', 2, 'position', [10 45 200
> 300], ...
> 'horizontalalignment', 'left', 'backgroundcolor', 'w'); % should
> create a text edit area
>
> Michael.
>

It seems to work fine, though this doesn't demonstrate how to get
information back from the button into an Octave process..

This is the goal of the "callback" property: it's a piece of code that is
executed in the octave process when the button is clicked.

Michael.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]