Re: Retrieving the title of a widget_base after the fact. [message #50906] |
Tue, 24 October 2006 06:50 |
Braedley
Messages: 57 Registered: September 2006
|
Member |
|
|
David Fanning wrote:
> Braedley writes:
>
>> Specifically, when the parent of the widget_base is a widget_tab.
>> There's a chance that an action may be canceled by the user when data
>> that would normally be over-written no longer needs to be over-written.
>> Part of the process includes renaming the tab (before the decision to
>> cancel can be made). However, if that tab no longer needs to be
>> overwritten, I would like to set the title of the tab back to what it
>> was before.
>>
>> Hope that wasn't too confusing. There's nothing in widget_info or
>> widget_control that appear to be able to do this, so am I going to have
>> to devise a means of retrieving the original title?
>
> Well UVALUEs are always handy for this kind of thing. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Don't ask me why I didn't think about that.
Thanks
Braedley
|
|
|
Re: Retrieving the title of a widget_base after the fact. [message #50908 is a reply to message #50906] |
Mon, 23 October 2006 14:36  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Braedley writes:
> Specifically, when the parent of the widget_base is a widget_tab.
> There's a chance that an action may be canceled by the user when data
> that would normally be over-written no longer needs to be over-written.
> Part of the process includes renaming the tab (before the decision to
> cancel can be made). However, if that tab no longer needs to be
> overwritten, I would like to set the title of the tab back to what it
> was before.
>
> Hope that wasn't too confusing. There's nothing in widget_info or
> widget_control that appear to be able to do this, so am I going to have
> to devise a means of retrieving the original title?
Well UVALUEs are always handy for this kind of thing. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|