NEWT :: selecting an item from a listbox

new topic     » topic index » view thread      » older message » newer message

I have been having a rough time trying to "capture" an item selected from a newt listbox form.

Consider example6.ex: The value assigned to listboxState appears to be an arbitrarily assigned pointer. But how can that value be used to reference the element in the sequence to which it refers?

The documentation states that "Each entry in a listbox is a ordered pair of the text which should be displayed for that item and a key, which is a void * thatuniquely identifies that listbox item. Many applications pass integers in as keys, but using arbitrary pointers makes many applications significantly easier to code." But how exactly does an application pass an integer in as a key? http://gnewt.sourceforge.net/tutorial-4.html#ss4.12

Any assistance will be deeply appreciated.

Kenneth Rhodes

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu