Re: Calendar Entry Editor

Roger Binns <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <[email protected]>
On Jan 28, 2005, at 19:52, Stephen Wood wrote:

> I don't think the exception log helps.  It looks like a wx problem,
> perhaps specific to Linux.  in getcurrententry,
> self.listbox.GetSelection() must be returning -1 so that

There is an issue with ComboBox (and ListBox IIRC) on non-Windows 
platforms.  When you construct them you can specify a list of strings 
that go into them.  You can then set what the value the combo/listbox 
should have either as a string or by position.  For non-Windows 
platforms, if you specify that value as a string it will show 
correctly.  If you ask which item is selected (ie by number) then you 
get -1.  The underlying code does not search through the list of 
strings and update the selected item id.

The correct fix for this is to either request the value back as a 
string, or to set the initial value numerically, not as a string.

Roger



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.