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

Home » Public Forums » archive » Re: Combobox / Droplist index problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Combobox / Droplist index problem [message #40262 is a reply to message #40261] Fri, 30 July 2004 06:01 Go to previous messageGo to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Jacques Basson wrote:
> I have stumbled across a problem with retrieving the index in a
> combobox if you have some items with identical text. The "old"
> droplist returns the correct index, but the combobox widget returns
> the 1st index that matches the currently selected text (an example is
> included below). Am I retrieving the index incorrectly? Is there some
> other way to get the combobox to work (I am only using it instead of
> the droplist because of RSI's recommendation in the manual)?
>

Hello Jacques,

I just tested your code, I agree with you that the combobox event structure does
not always has INDEX = 2, regardless of which '2' in the menu choice I select.

I'm on ...
{ ppc darwin unix Mac OS X 6.0.3 Feb 26 2004 32 32}

I haven't used the combobox because it doesn't have the droplist's equivalent of

selectIndex = WIDGET_INFO(listID, /Droplist_Select)

Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Translate characters/string size to data/normal coordinates?
Next Topic: serial port

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

Current Time: Thu Oct 09 12:34:01 PDT 2025

Total time taken to generate the page: 3.67869 seconds