[bt-devel] Re: Problem with keys

Troy A. Griffitts bt-devel@crosswire.org
Mon, 07 Feb 2000 01:29:55 -0700


Torsen,
	Did you see how we handle this in the WIN32 frontend?

We currently grab the size of the listbox and determine the number of
entries it can hold, then display that number of entries in the
listbox.  We have a textbox above the listbox and if the user types in
the textbox, as they type the listbox is repopulated allowing
incremental searching.  We merely set the lexicon key to the string that
is typed in the box, key -= (listbox.size / 2) - 1 and populate the
listbox with a for (int i = 0; i < listbox.size i++)

Torsten Uhlmann wrote:
> 
> I think we have to discuss the key management with Lexica. For many of them there are so many
> keys it takes a while to build the combobox (the keychain is (should be) build only once for the module).
> 
> My suggestion: Lets do soem kind of branching. First level let us only display A-Z. If
> the user choose a letter then let us display all keys for that letter and a key to climb back to the to level.
> What do you think?
> 
> ----- Original Message -----
> From: Joachim Ansorg <Jockel123@gmx.de>
> To: <bt-devel@crosswire.org>
> Sent: Sunday, February 06, 2000 11:51 PM
> Subject: Re: [bt-devel] Re: Problem with keys
> 
> > Hi!
> >
> >
> > > I have found the problem with the keys. In the HTMLChapterDisplay after
> > > processing the text the keys was set to chapter 1 and verse 1.
> > >
> > > But there is still a problem with regenerating the chapterlist and the
> > > verselist. Often they are set to an empty list.
> >
> > Fixed.
> > One problem left: The comboboes aren't updated after typing some text in
> > the editline (changing the book there).
> >
> > > So the key you get from the CModuleInfo should be the same now for all functions.
> > >
> > > --
> > >
> > > best regards,
> > > Torsten Uhlmann
> > >
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > TUhlmann@gmx.de
> > > TUhlmann@debis.com
> > >
> > > http://www.tuhlmann.purespace.de
> > > http://www.bibletime.de
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > Wise men still seek him!
> > --
> > BibleTime - the bible study program for KDE
> > http://www.bibletime.de/
> > info@bibletime.de