Re: ComboBox appearance [message #40075] |
Fri, 09 July 2004 12:29  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
balogna writes:
> I define the combobox as such:
>
> dataSets = [info.fileList(0)]
> droplist2 = WIDGET_COMBOBOX(controlPanel, Value = dataSets, $
> UVALUE='select', /DYNAMIC_RESIZE)
>
> I added the /DYNAMIC_RESIZE keyword in an attempt to fix this issues but
> it made no difference to the dropdown part.
> Initially the combobox always contains just one element, and then more are
> added as the user loads files using the line:
>
> Widget_Control, state.dlist, COMBOBOX_ADDITEM=filename
>
> But when you add another item the dropdown list still only displays one
> option at a time with really tiny scrollbars on the side. Thanks for your
> time.
Humm. Yes, I see. I think I have heard of this before, but
it doesn't act this way in the Windows version I am using (6.03).
Hard to say if it is an IDL version problem or a Windows/X Windows
problem. I wonder if you could pass null string values to
the combobox when you initialize it so that it gets set to some
reasonable size initially? As you added items, you could delete
blank items. Ugly, though, even if it worked. :-(
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|