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

Home » Public Forums » archive » Re: Problems realizing menu changes under IDL 5.5 on Solaris
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
Re: Problems realizing menu changes under IDL 5.5 on Solaris [message #31730] Thu, 15 August 2002 19:11 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Phillip David (phillip_david@xontech.com) writes:

> I'm at the point of considering alternatives to my design.

Always a wise choice when you are out of options. :-)

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: Problems realizing menu changes under IDL 5.5 on Solaris [message #31732 is a reply to message #31730] Thu, 15 August 2002 15:46 Go to previous messageGo to next message
Phillip David is currently offline  Phillip David
Messages: 36
Registered: April 1999
Member
David Fanning wrote:
>
> Phillip David (phillip_david@xontech.com) writes:
>
>> So even though I can select the menu item from the menu using the mouse,
>> it's "not realized" according to IDL.
>> Any other ideas?
>
> Did you try re-realizing it's parent, the
> top-level base, etc.? *Somebody* has to know
> the bugger is hanging around there!
>
> Of course, it could just be a bug.
> I hear 5.6 is due out shortly. :-)

Apparently, it is "just a bug", because I have tried everything I could
think of, and nothing seems to make IDL recognize that the menu has been
realized. I've tried unmapping the menu, adding the new entry, and
remapping it. Then I tried desensitizing the menu, adding the new
entry, and resensitizing it. I tried both of the above, along with
re-realizing the entire menu, then the entire GUI. None of these
helped.

I went to read the on-line help, and noticed an indication that a widget
placed into an already-realized hierarchy will be immediately realized.
I am in fact seeing exactly that (since I can click the button), but
apparently, the Solaris version of IDL fails to see that.

As a reminder, though, it does work fine on the PC (both 5.4 and 5.5),
and on Solaris, v5.4.

I'm at the point of considering alternatives to my design.

Phillip
Re: Problems realizing menu changes under IDL 5.5 on Solaris [message #31736 is a reply to message #31732] Thu, 15 August 2002 13:23 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Phillip David (phillip_david@xontech.com) writes:

> So even though I can select the menu item from the menu using the mouse,
> it's "not realized" according to IDL.
> Any other ideas?

Did you try re-realizing it's parent, the
top-level base, etc.? *Somebody* has to know
the bugger is hanging around there!

Of course, it could just be a bug.
I hear 5.6 is due out shortly. :-)

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: Problems realizing menu changes under IDL 5.5 on Solaris [message #31737 is a reply to message #31736] Thu, 15 August 2002 13:05 Go to previous messageGo to next message
Phillip David is currently offline  Phillip David
Messages: 36
Registered: April 1999
Member
David Fanning wrote:
>
> I expect you *could* try realizing the button after
> you created it:
>
> new = Widget_Button(parent, $
> Value='Am I realized?',event_pro='testRealized')
> Widget_control, new, /Realize
>
> Let us know.

I had already thought of that, and had tried it. :-)

It didn't help. :-(
(The error messages were identical with or without the explicit
realization step).

I even tried adding it using Notify_Realize='realizeEvent', and putting
a print statement into realizeEvent. It never got triggered.

So even though I can select the menu item from the menu using the mouse,
it's "not realized" according to IDL.

GRRRRRRRrrrrrrrrr.........

Any other ideas?

Phillip

P.S. David -- As always, thanks for the quick response.
Re: Problems realizing menu changes under IDL 5.5 on Solaris [message #31739 is a reply to message #31737] Thu, 15 August 2002 12:58 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Phillip David (phillip_david@xontech.com) writes:

> I am having a new problem with an old code that runs on a Solaris box.
> The code adds menu items when the user selects certain functions, then
> selects the new button by sending a fake selection event to it using
> Widget_Control, send_event. However, when I attempt to run this code
> under IDL 5.5, I'm getting a warning message about the menu being
> unrealized.
>
> For the sake of brevity, I've stripped it down to the following
> example. When I test my code, I select "Add a button" from the "Test"
> menu, then select the "Am I realized?" button from the same menu. When
> I run it on a PC using either IDL 5.4 or 5.5, I get the message "I AM
> realized". Under Solaris v5.4, I also get "I AM realized". but under
> IDL 5.5, I get "I am NOT realized".
>
> Does anyone have any idea WHY I get the message I do, and WHAT I can do
> about it?

I've no idea WHY you get the message, but surely
you have been working with computers long enough
not to be surprised by something like this. :-)

Let's just say that people who write operating
system software have a sense of humor and leave
it at that.

I expect you *could* try realizing the button after
you created it:

new = Widget_Button(parent, $
Value='Am I realized?',event_pro='testRealized')
Widget_control, new, /Realize

Let us know.

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: Problems realizing menu changes under IDL 5.5 on Solaris [message #31897 is a reply to message #31730] Mon, 26 August 2002 09:21 Go to previous message
David Shadovitz is currently offline  David Shadovitz
Messages: 19
Registered: September 2000
Junior Member
RSI has acknowledged that this* is an IDL bug and will fix it in IDL
5.6.
-David S.

* Phillip David's original description:
The code adds menu items when the user selects certain functions, then
selects the new button by sending a fake selection event to it using
Widget_Control, send_event. However, when I attempt to run this code
under IDL 5.5, I'm getting a warning message about the menu being
unrealized.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: replacement for insight
Next Topic: Saving Plot Products

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

Current Time: Wed Oct 08 15:13:20 PDT 2025

Total time taken to generate the page: 0.00715 seconds