comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » 'remote control' for widgets?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
'remote control' for widgets? [message #33233] Mon, 16 December 2002 03:50 Go to next message
s[1] is currently offline  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 #33291 is a reply to message #33233] Mon, 16 December 2002 15:11 Go to previous messageGo to next message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
I see, you *expect* to find it! I first found it when I was reading the
entire help, one article after another. I was not looking for anything
in particular, just figured out this is the only way to know anything
about IDL. I found solutions to so many problems I would have otherwise
before I ever had them. I read just about all online help like I would a
fiction book.
I am not trying to suggest that anybody else should try to enjoy doing it.
Pavel

David Fanning wrote:
>
> 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!
Re: 'remote control' for widgets? [message #33296 is a reply to message #33233] Mon, 16 December 2002 14:19 Go to previous messageGo to next message
David Fanning is currently offline  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 Go to previous message
David Fanning is currently offline  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 Go to previous message
Stein Vidar Hagfors H[2] is currently offline  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 Go to previous message
Paul Sorenson is currently offline  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 Go to previous message
David Fanning is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Issue Installing IDL 5.6 under Mac OS 10.2.3
Next Topic: Shrinking Image

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:27:17 PDT 2025

Total time taken to generate the page: 0.00632 seconds