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

Home » Public Forums » archive » Re: ComboBox appearance
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: ComboBox appearance [message #40075] Fri, 09 July 2004 12:29
David Fanning is currently offline  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/
Re: ComboBox appearance [message #40077 is a reply to message #40075] Fri, 09 July 2004 11:57 Go to previous message
balogna is currently offline  balogna
Messages: 5
Registered: July 2004
Junior Member
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.
Re: ComboBox appearance [message #40078 is a reply to message #40077] Fri, 09 July 2004 11:41 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
balogna writes:

> Is it just me or do the combobox widgets look really bad? The dropdown
> list only contains one element with a microscopic scroll bar on the side.
> Is there any way to get the list to dropdown more?

That sounds weird. Let's see how you are defining it. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: ComboBox appearance
Next Topic: Bus error

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

Current Time: Wed Oct 08 18:41:55 PDT 2025

Total time taken to generate the page: 0.00437 seconds