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

Home » Public Forums » archive » Widget Tables Sizes Variable in Two Dimensions
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
Widget Tables Sizes Variable in Two Dimensions [message #56423] Sat, 20 October 2007 00:33 Go to next message
2d is currently offline  2d
Messages: 24
Registered: July 2007
Junior Member
Once a two dimension widget table has been created by the widget
definition module i need to be able to vary both dimensions of this
table using the widget handler modules.

However, as i understand from the IDL help, a widget_table normally
has a row major default set, in which case you can extend the number
of
rows, but not the number of columns, as this would require a change
in
the data structure. Similarly, if you manually set column major in
widget table call, you can increase the number of columns, but not
the
number of rows.

Would there be any tricks in IDL where i can effectively interactively
through widget definition modules extend a table dimension in both row
and column dimensions? This might involve using something in addition
to widget tables, but i effectively need to increase sizes in both
dimensions to cope with a variable range of user inputs.

Could anyone offer any solutions?
Any help would be much appreciated, many thanks.
Re: Widget Tables Sizes Variable in Two Dimensions [message #56497 is a reply to message #56423] Thu, 25 October 2007 12:35 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
2d@onetel.com writes:

> However, i don't know if you can do
> this as you need to call a widget definition module from a widget
> handler module. Anyone have any clues to this.

I'd do it the same way I would do it anywhere else.
Event handlers have no privledged position in the
Universe. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Widget Tables Sizes Variable in Two Dimensions [message #56498 is a reply to message #56423] Thu, 25 October 2007 12:31 Go to previous message
2d is currently offline  2d
Messages: 24
Registered: July 2007
Junior Member
I dont knonw if this would work, but one idea might be to create a row
major widget table, then in the widget handler module, when the user
changes the number of rows, to say n, create a second widget table.
This second table would have n rows and say m columns, but would be
defined as column major, and as such, could have a variable number of
columns.

If i could do this, then i'd effectively have the flexibility to
increase the table size in both dimensions (n and m), which would
effectively solve the problem. However, i don't know if you can do
this as you need to call a widget definition module from a widget
handler module. Anyone have any clues to this.

many thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: NCEP Reanalysis Temperature Data Problem
Next Topic: Re: NCEP Reanalysis Temperature Data Problem

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

Current Time: Wed Oct 08 19:06:04 PDT 2025

Total time taken to generate the page: 0.00598 seconds