droplist doesn't work under Linux [message #32436] |
Wed, 09 October 2002 01:08  |
Claudia Herklotz
Messages: 2 Registered: October 2002
|
Junior Member |
|
|
My routine worked well untill I added a droplist widget. When I tried to
click on the droplist my KDE was killed. But under Windows it worked
correctly. Does anyone know about that problem ?
Thanks a lot
Claudia
|
|
|
Re: droplist doesn't work under Linux [message #32490 is a reply to message #32436] |
Sun, 13 October 2002 06:37  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Claudia Herklotz wrote:
> Hello Reimar,
>
> this is a shortened version of my source code. If you delete subbase_two and
> put the droplist widget into subbase_one or set subbase_one sensitive, the
> program is working properly.
>
> Thank you for your help,
> Claudia .
>
>
> PRO TEST_EVENT, event
>
> WIDGET_CONTROL, event.top, GET_UVALUE = data
> WIDGET_CONTROL, event.id, GET_UVALUE = source
>
> CASE source OF
>
> 'button': BEGIN
> IF event.select EQ 1 THEN $
> WIDGET_CONTROL, (*data).subbase_one, SENSITIVE = 1
> IF event.select EQ 0 THEN $
> WIDGET_CONTROL, (*data).subbase_one, SENSITIVE = 0
> END
>
> ELSE:
>
> ENDCASE
> END
>
> ;----------------------------------------------------------- ----------
> PRO TEST
>
> tlb = WIDGET_BASE(ROW = 2)
> head_butt_base = WIDGET_BASE(tlb, /NONEXCLUSIVE, $
> ROW = 1)
> button = WIDGET_BUTTON(head_butt_base, $
> UVALUE = 'button')
> *** subbase_one = WIDGET_BASE(tlb, ROW = 4, FRAME = 1, $
> SENSITIVE = 0, UVALUE = 'subbase_one')
> *** subbase_two = WIDGET_BASE(subbase_one, ROW = 1)
>
> drop_values = strarr(1)
> drop_values[0] = 'test'
> filter_drop = WIDGET_DROPLIST(subbase_two, $
> VALUE = drop_values, UVALUE = 'filter_drop')
>
> data_store = {subbase_one: subbase_one}
> data = ptr_new(data_store)
> WIDGET_CONTROL, tlb, SET_UVALUE = data
> WIDGET_CONTROL, tlb, /REALIZE
> XMANAGER, 'TEST', tlb
>
> END
>
>
Dear Claudia,
same result on my linux systems.
after you have have killed all idl processes from another ascii console
(CTRL+ALT+F1) you have to hit once ALT+F4 in the graphics console to get
the focus back to your input devices.
Please can sameone else did a test on a different OS.
regards
Reimar
--
Reimar Bauer
Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
|
|
|