Tag Archives: widget programming

Using (New) Graphics in an IDL widget program, part II

Last week, I demonstrated how to set up a widget interface that embeds an IDL 8 (aka New) Graphics (NG) window with the WIDGET_WINDOW function. This week, let’s see how event handling works in this program. (Get the full program … Continue reading

Posted in language, programming, visualization | Tagged , , , , , , , | Leave a comment

Using (New) Graphics in an IDL widget program, part I

Here’s an example of embedding an IDL 8 (aka New) Graphics (NG) window in an IDL widget program with the WIDGET_WINDOW function. There’s quite a bit of code + explanation involved, so I’m breaking this example into two posts: I’ll go over … Continue reading

Posted in language, programming, visualization | Tagged , , , , , , , | 5 Comments

Using a hash as a widget state variable

The design pattern of a state variable in (procedural) IDL widget programming is used to communicate information from a widget creation routine to event handlers and other helpers. A state variable is typically implemented as a structure or as a … Continue reading

Posted in language, programming | Tagged , , , | 1 Comment

Aligning widgets

(Note:  Today, since I’m giving a webinar, we have another guest post by Jim Pendleton, an Advisory Consultant in the Exelis VIS Professional Services Group.  I indented his code for him. –MP) Working with IDL’s widget geometry can be challenging … Continue reading

Posted in programming | Tagged , , | Leave a comment