Jump to content

Tree control cell focus...or something?


mje

Recommended Posts

Wondering if someone can clue me into what I'm looking at here:

post-11742-0-78708600-1295624779_thumb.p

I'm trying to enable key navigation when editing contents of my tree control (tab, up, down, etc). When I do so, I also move the value of the tree, the active item and what not, but there's this dashed box that remains anchored to the zeroth column of the last item that was selected with the mouse. What is this? Can I move it programmatically? Or even just plain get rid of it?

-m

Link to comment

For the life of me I can't manage to reproduce a situation anymore which the box sticks around again, but I can reproduce a side effect: after getting focus, navigation of the tree resumes from the last item to receive a mouse click, not a "valued" item or an active item. This is interfering with my key navigation.

MysteryFocus.vi

In the attached VI, once it it running:

  1. Select a cell in the "1-X" row.
  2. Press the tab key multiple times until you navigate to one of the cells in the "3-X" row.
  3. Press enter to exit edit mode of the tree.
  4. Press tab such that the tree control regains focus. *
  5. Press up or down. Notice how the navigation goes to the "0-X" row (if you pressed up) or the "2-X" row (if you pressed down).

The navigation continues from the row which was originally clicked on with the mouse (the "1-X" row), regardless of which row is currently "valued" or active (the "3-X" row).

* Also: where does the focus go when one finishes editing the tree control (which forces step 4)?

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.