You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

unhuman

Beginner

  • "unhuman" started this thread

Posts: 2

Date of registration: Feb 28th 2009

  • Send private message

1

Saturday, February 28th 2009, 6:15pm

ListBox operations

Any chance to get more complete support of listbox operations? For example, I would like to be able to programmatically set the selected index.

Just wound up in Jabaco to extend someone else's open source. So far, it's been very easy to embrace and extend.

Thanks - Howie

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

2

Saturday, February 28th 2009, 6:43pm

ListIndex and ensureIndexIsVisible

Hi,
you can do it as follows:

Source code

1
2
List1.ListIndex = 1
List1.ensureIndexIsVisible 1


ListIndex() defines the selected listitem. ensureIndexIsVisible() srolls the list so that the addressed item is shown.

To find out what is possible, you can always press the F1 key in the Jabaco IDE.
This allows you to snoop around the object model.
ListBox is shown under Jabaco.jar in VB. Doubleclick on the object to get to know all the methods and properties.
Another option would be to download the source code of the Jabaco framework and look at the respective source file.
There is hope that some future versions of Jabaco will be accompanied by more documentation.

Cheers!

A1880

unhuman

Beginner

  • "unhuman" started this thread

Posts: 2

Date of registration: Feb 28th 2009

  • Send private message

3

Saturday, February 28th 2009, 7:08pm

Yeah, figured this out. I'm more used to Java, so, not used to this kind of access. Associating a data item with the text string in the list box would be nice... but for now, I think I'm good.

Thanks much!!!

-Howie

Rate this thread
WoltLab Burning Board