Jump to content

Multi Column Listbox


Daryl

Recommended Posts

I have a program that runs a number of tests automatically. It displays some information about all of the tests "queued" and highlights the row of the test currently executing in a multi-column listbox. There may be 50-60 of these tests listed in rows of the listbox but the listbox only displays maybe 10 or 12 rows at a time (which means the user has to use the scroll bars at some point to see the currently active test). Is there a way to make sure that the test currently being executed is always centered within the listbox so the user does not have to use to scoll bar to find the highlighted row?

Link to comment

I have a program that runs a number of tests automatically. It displays some information about all of the tests "queued" and highlights the row of the test currently executing in a multi-column listbox. There may be 50-60 of these tests listed in rows of the listbox but the listbox only displays maybe 10 or 12 rows at a time (which means the user has to use the scroll bars at some point to see the currently active test). Is there a way to make sure that the test currently being executed is always centered within the listbox so the user does not have to use to scoll bar to find the highlighted row?

A little mathematics will help you on this, you can get the total number of visible rows (12), and you know your current row number (say 55), the you should programatically (how do you spell that?) set the top.row to 49.

Ton

Link to comment

A little mathematics will help you on this, you can get the total number of visible rows (12), and you know your current row number (say 55), the you should programatically (how do you spell that?) set the top.row to 49.

Ton

Is there a property or something for setting the top row? Maybe I just havent had enough coffee yet

Nevermind, I just found it :frusty:

Edited by Daryl
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.