X-windows locking me out [message #32469] |
Tue, 15 October 2002 01:41  |
Ian Dean
Messages: 26 Registered: January 2000
|
Junior Member |
|
|
Hi,
This is aimed at the VMS community out there!!!!!
Is there a known bug using the sensitive=0 flag on a widget base under
OpenVMS?
For instance, the following code:
Pro my_test
tlb = widget_base(column=1)
my_base = widget_base(tlb, column=1, sensitive=0)
base2 = widget_base(my_base, row=1)
pulld = widget_droplist(base2, value=['aaa','bbb'])
widget_control, tlb,/realize
widget_control,my_base,/sensitive
end
When I run the above under OpenVMS 7.1 and IDL 5.4 and select the drop-down
list, each item is shown insensitive(greyed out). Surely this should be
sensitive (as per the penunltimate line). Furthermore, at this point the
X-system locks up. I can no longer size the screen, close it, minimise it.
All I can do is reboot - not exactly desirable.
Further investigation indicates that the software is expecting me to make a
selection, but this is not possible because they are greyed out. Hence the
systems is stuck on waiting for an event that can never occur.
I believe this is only a problem with VMS, as the same code runs as expected
on NT
I CAN work round it by not making my_base insensitive, but all the lower
widgets insensitive. However, in the real code, there is a large structure
of widgets (base,buttons,pull-downs,etc) under this base, and in order to
make them sensitive, I'd need to set each widget to sensitive individually -
messy and time consuming.
I would be grateful for any suggestions.
Regards,
Ian
|
|
|
sec : U Re: X-windows locking me out [message #32547 is a reply to message #32469] |
Tue, 15 October 2002 15:40  |
Andrew Cool
Messages: 219 Registered: January 1996
|
Senior Member |
|
|
Ian Dean wrote:
>
> Hi,
> This is aimed at the VMS community out there!!!!!
>
> Is there a known bug using the sensitive=0 flag on a widget base under
> OpenVMS?
> For instance, the following code:
>
> Pro my_test
> tlb = widget_base(column=1)
> my_base = widget_base(tlb, column=1, sensitive=0)
> base2 = widget_base(my_base, row=1)
> pulld = widget_droplist(base2, value=['aaa','bbb'])
> widget_control, tlb,/realize
> widget_control,my_base,/sensitive
> end
>
> When I run the above under OpenVMS 7.1 and IDL 5.4 and select the drop-down
> list, each item is shown insensitive(greyed out). Surely this should be
> sensitive (as per the penunltimate line). Furthermore, at this point the
> X-system locks up. I can no longer size the screen, close it, minimise it.
> All I can do is reboot - not exactly desirable.
>
> Further investigation indicates that the software is expecting me to make a
> selection, but this is not possible because they are greyed out. Hence the
> systems is stuck on waiting for an event that can never occur.
>
> I believe this is only a problem with VMS, as the same code runs as expected
> on NT
>
> I CAN work round it by not making my_base insensitive, but all the lower
> widgets insensitive. However, in the real code, there is a large structure
> of widgets (base,buttons,pull-downs,etc) under this base, and in order to
> make them sensitive, I'd need to set each widget to sensitive individually -
> messy and time consuming.
>
> I would be grateful for any suggestions.
>
> Regards,
> Ian
Hi Ian,
I just tried your code with IDL v5.4 under OpenVMS 7.3
And BOY!! Does it ever hang the terminal!!! That's quite a bug
you've found.
I think you'd better learn to Love the Workaround on this one.
Andrew
------------------------------------------------------------ -----------------
Andrew D. Cool .->-.
Electromagnetics & Propagation Group '-<-'
Intelligence, Surveillance & Reconnaissance Division Transmitted on
Defence Science & Technology Organisation 100% recycled
PO Box 1500, Edinburgh electrons
South Australia 5111
Phone : 061 8 8259 5740 Fax : 061 8 8259 6673
Email : andrew.cool@no-spam.dsto.defence.gov.au
Please remove the no-spam from my email address to reply ;-)
------------------------------------------------------------ -----------------
|
|
|