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

Home » Public Forums » archive » Get column_labels from widget_table?
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
Get column_labels from widget_table? [message #94344] Sat, 15 April 2017 07:45 Go to next message
LNpellen is currently offline  LNpellen
Messages: 37
Registered: November 2009
Member
I have an application where the column_labels of the table is set due to interaction during the session. Then I use

widget_control, myTable, COLUMN_LABELS=theNewLabels

But then I'd like to copy the table to clipboard at any time and then I'd like to retrieve the column_labels to include these in the copied table, but I cannot find an option to get these out of the system. Not With widget_info and not With widget_control.

Any ideas?

-LN
Re: Get column_labels from widget_table? [message #94347 is a reply to message #94344] Sun, 16 April 2017 06:02 Go to previous messageGo to next message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
On Saturday, April 15, 2017 at 4:45:54 PM UTC+2, LNpellen wrote:
> I have an application where the column_labels of the table is set due to interaction during the session. Then I use
>
> widget_control, myTable, COLUMN_LABELS=theNewLabels
>
> But then I'd like to copy the table to clipboard at any time and then I'd like to retrieve the column_labels to include these in the copied table, but I cannot find an option to get these out of the system. Not With widget_info and not With widget_control.
>
> Any ideas?
>
> -LN

Off the top of my head I'm not sure there is a way to get the column labels back, but a quick and dirty solution would be to write a table object encapsulating the table widget, and you could keep track of the column labels yourself.

I wrote something like this. Check out the "wmb_tablewindow" object in my IDL library:

http://github.com/superchromix/wmb_lib

cheers
-M
Re: Get column_labels from widget_table? [message #94358 is a reply to message #94347] Wed, 19 April 2017 05:44 Go to previous message
LNpellen is currently offline  LNpellen
Messages: 37
Registered: November 2009
Member
Yes - this was the dirty solution I was hoping to avoid, but it seems like the only way around.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: UNIT
Next Topic: Saving file after editting

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

Current Time: Wed Oct 08 11:43:35 PDT 2025

Total time taken to generate the page: 0.00471 seconds