11-27-2006 07:49 PM
I am trying to create a program that allows me to move between three separate multicolumn listboxes with the right/left arrow keys, as well as navigate the listboxes up and down with the up/down arrow keys.
The problem is that after moving left and right, using the property node for multicolumn listbox ‘Value’ (as well as the ‘KeyFocus’ property) does not change the fuzzy, dashed-line "focus box" (for lack of a better term). So a move left or right will initially highlight the correct cell, moving and up and down will use that "focus box" as its starting point.
As it is somewhat difficult to explain, I have attached an example of what I am trying to do (in
For example: if you scroll to the second row from the bottom of Listbox 1, then to the right to Listbox 2, then up to the top row of Listbox 2, then back left to Listbox 1, pressing down will bring you to the bottom row of Listbox 1, instead of the second row from the top.
Is there some property node I am missing to change this “focus box” position? I can't seem to find it. I had a similar (but more sloppy) program working under LV 7.1 without this problem.
Thanks,
Adam
11-27-2006 09:51 PM
11-28-2006 11:15 AM
11-29-2006 08:08 AM
11-29-2006 10:48 AM - edited 11-29-2006 10:48 AM
Message Edited by Adam Krajewski on 11-29-2006 11:51 AM
11-29-2006 10:36 PM
11-30-2006 01:11 PM
11-30-2006 09:41 PM
12-01-2006 02:10 PM
Thanks a lot for the effort, but, from what I can tell, it doesn't work correctly.
With the Discard? property on the Key Down Filter Event ("Key Down?" not "Key Down", the Notify Event) set to FALSE, the "Home" key executes its default functionailty after executing the code in the Event. The "Home" key normally brings you to the top of the multicolumn listbox (with the 'fuzzy focus box'), so after code in the "Home" case executes, the "Home" key also executes as it normally would.
Try changing the "Home" case to operate with either "End" or "PageDown" to see what I mean or put a wait in the "Home" case and watch the 'fuzzy focus box' lag behind the selection highlight.
12-03-2006 06:34 PM