Re: droplist doesn't work under Linux [message #32432] |
Wed, 09 October 2002 03:23  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Claudia Herklotz wrote:
> 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
>
>
Dear Claudia
please can you post a short example.
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
============================================================ =======
|
|
|
Re: droplist doesn't work under Linux [message #32506 is a reply to message #32432] |
Fri, 11 October 2002 00:24  |
Claudia Herklotz
Messages: 2 Registered: October 2002
|
Junior Member |
|
|
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
----- Original Message -----
From: "Reimar Bauer" <R.Bauer@fz-juelich.de>
Newsgroups: comp.lang.idl-pvwave
Sent: Wednesday, October 09, 2002 12:23 PM
Subject: Re: droplist doesn't work under Linux
> Claudia Herklotz wrote:
>> 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
>>
>>
>
> Dear Claudia
>
> please can you post a short example.
>
> 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
> ============================================================ =======
>
|
|
|