'remote control' for widgets? [message #33233] |
Mon, 16 December 2002 03:50  |
s[1]
Messages: 21 Registered: December 2002
|
Junior Member |
|
|
Hi all,
I try to progammatically set values of widgets like sliders or checkboxes.
When I use "WIDGET_CONTROL,myWidget,SET_VALUE=myValue", only the widget
gets changed, but the appropriate event is not generated.
What I am looking for is a technique taht allows me to change the value of
a widget _and_ generates the event that would have been generated if I
had changed the widget using the mouse or keyboard.
Thanks for all tips,
Sebastian
|
|
|
|
Re: 'remote control' for widgets? [message #33296 is a reply to message #33233] |
Mon, 16 December 2002 14:19   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Pavel A. Romashkin (pavel_romashkin@hotmail.com) writes:
> We all dislike the lack of accuracy in IDL documentation, but, to give
> RSI some justice, SEND_EVENT is documented in the online help. A quick
> search immediately finds it in the WIDGET_CONTRL section.
Or, if you know you are looking for the "SEND_EVENTS" keyword,
I expect you can find it. Good luck otherwise.
But IDL documentation is changing. I expect to find this under
"Widgets, sending events to" and sure enough in IDL 5.6 on-line
help (but nothing earlier) I find exactly that. Hooray!
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: 'remote control' for widgets? [message #33383 is a reply to message #33233] |
Mon, 23 December 2002 08:44  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Stein Vidar Hagfors Haugan (steinhh@astro.uio.no) writes:
> Now chew on this: How would you get your customer's program (in replay
> mode) to get past a call to e.g. DIALOG_PICKFILE 8-)
I'd re-define what I meant by "replay mode". What would
you do? :-)
Cheers,
David
P.S. Many of my objects are already written to be
optionally executed in a "No Dialog" mode. This is handy,
for example, when you have added functionality to a program
and you want to update old data files, etc. You don't
have to ask the user what file name they want, etc. You just do
it. I presume something similar could be invoked here, although
I admit knowing something might be recorded up front gives
you more design flexibility than learning about it at the end
of the project. :-)
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: 'remote control' for widgets? [message #33384 is a reply to message #33233] |
Mon, 23 December 2002 08:03  |
Stein Vidar Hagfors H[2]
Messages: 28 Registered: October 2002
|
Junior Member |
|
|
David Fanning <david@dfanning.com> writes:
> Stein Vidar Hagfors Haugan (steinhh@astro.uio.no) writes:
>
>> Sigh... This reminds me of a program I once wrote (xrecorder) that would
>> "infest" *any* widget program by installing its own routines as widget event
>> handlers, to record the events...
>
> I think such a thing could be built in a couple of
> minutes with the object widget library Dave and I
> are developing. In our system, all widget object
> events are handled by the same event handler. All
> that would be required is to pass the event structures
> on to the "recorder" object (probably my linked list
> object, since it is already written). It would be
> easy enough, I think, to be able to record and store
> "macros" since interaction is with objects, not widgets.
>
> Ah, good, something for me to fool around with once the
> presents are opened Christmas morning! :-)
Now chew on this: How would you get your customer's program (in replay
mode) to get past a call to e.g. DIALOG_PICKFILE 8-)
By the way, if you want to peek at how e.g. the cursor was animated,
the original xrecorder.pro is at
http://sohowww.nascom.nasa.gov/solarsoft/gen/idl/widgets/xre corder.pro
--
------------------------------------------------------------ --------------
Stein Vidar Hagfors Haugan
ESA SOHO SOC/European Space Agency Science Operations Coordinator for SOHO
NASA Goddard Space Flight Center, Tel.: 1-301-286-9028
Mail Code 682.3, Bld. 26, Room G-1, Cell: 1-240-354-6066
Greenbelt, Maryland 20771, USA. Fax: 1-301-286-0264
------------------------------------------------------------ --------------
|
|
|
Re: 'remote control' for widgets? [message #33393 is a reply to message #33233] |
Fri, 20 December 2002 23:31  |
Paul Sorenson
Messages: 48 Registered: May 2002
|
Member |
|
|
Check out DEMO, /RECORD and DEMO_TOUR. They make and play editable macros.
-Paul Sorenson
"David Fanning" <david@dfanning.com> wrote in message
news:MPG.186d404b71d9da92989a80@news.frii.com...
> Stein Vidar Hagfors Haugan (steinhh@astro.uio.no) writes:
>
>> Sigh... This reminds me of a program I once wrote (xrecorder) that would
>> "infest" *any* widget program by installing its own routines as widget
event
>> handlers, to record the events...
>
> I think such a thing could be built in a couple of
> minutes with the object widget library Dave and I
> are developing. In our system, all widget object
> events are handled by the same event handler. All
> that would be required is to pass the event structures
> on to the "recorder" object (probably my linked list
> object, since it is already written). It would be
> easy enough, I think, to be able to record and store
> "macros" since interaction is with objects, not widgets.
>
> Ah, good, something for me to fool around with once the
> presents are opened Christmas morning! :-)
>
> Happy Holidays!
>
> David
>
> P.S. Let's just say if I wanted a real life, I'd probably
> get a real job. :-)
>
> --
> David W. Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Phone: 970-221-0438, E-mail: david@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155
-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----
|
|
|
Re: 'remote control' for widgets? [message #33401 is a reply to message #33233] |
Fri, 20 December 2002 13:57  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Stein Vidar Hagfors Haugan (steinhh@astro.uio.no) writes:
> Sigh... This reminds me of a program I once wrote (xrecorder) that would
> "infest" *any* widget program by installing its own routines as widget event
> handlers, to record the events...
I think such a thing could be built in a couple of
minutes with the object widget library Dave and I
are developing. In our system, all widget object
events are handled by the same event handler. All
that would be required is to pass the event structures
on to the "recorder" object (probably my linked list
object, since it is already written). It would be
easy enough, I think, to be able to record and store
"macros" since interaction is with objects, not widgets.
Ah, good, something for me to fool around with once the
presents are opened Christmas morning! :-)
Happy Holidays!
David
P.S. Let's just say if I wanted a real life, I'd probably
get a real job. :-)
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|