Jump to content

Listbox Weirdness


Recommended Posts

Create a system multi-column listbox. Fill in several rows with some data.

Set the properties Active Cell and Edit Position to a row in the middle of the ones you populated.

Set the value to that same row.

Set the key focus to true.

Create a simple while loop to keep the VI running after all these setting are applied.

Run the VI. The row you set should be selected.

Use the up/down arrow keys to move to another row more than 2 rows away.

Stop the VI

Run the VI again.

Use the arrow keys to move the selection again. Instead of moving relative to the programmatically selected row that is highlighted, it will jump to the row that was (up/down) from the row you moved to right before you last stopped the VI.

Why does it do this? Why does it remember the last selection you navigated to? How can I override this so the selection I set programmatically is the one it will move relative to when the use uses the arrow keys?

Is this a bug?

-John

Download File:post-2411-1198024019.vi

Link to comment
  • 3 years later...

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.