Norm Kirchner Posted August 4, 2005 Report Share Posted August 4, 2005 Has anyone successfully changed the scroll position of a subpanel programatically?? Needless to say I'm :headbang: Quote Link to comment
Adnan Posted August 4, 2005 Report Share Posted August 4, 2005 Do you mean the FP state of VI in the SubPanel ? In this case the only way i have found is to remove VI from subpanel, change his properties, and re-insert it. Quote Link to comment
Albert Geven Posted August 4, 2005 Report Share Posted August 4, 2005 just look at my post on the subpanel update bug, I forgot to post it http://forums.lavausergroup.org/index.php?showtopic=1634 Quote Link to comment
Norm Kirchner Posted August 4, 2005 Author Report Share Posted August 4, 2005 This has nothing to do w/ what I'm asking for. I want to change the scroll position of a FP loaded into a SubPanel Only 1 VI will be loaded in the SubPanel. And I want to force it, from time to time, to scroll all the way to the bottom. Your solution only addresses a bug with a redraw. The loaded FP has an array on it, the array will be growing in the number of rows programmatically. So after a while the number of rows in the array will exceed the length of the FP. When this happens, I need the SubPanel to scroll all the way down. Quote Link to comment
m3nth Posted August 4, 2005 Report Share Posted August 4, 2005 Without a working subpanel in front of me to look at... Does the sub-panel control have scrollbars that the user can typically use, or are you talking about scrolling in the sense of setting the FP origin of the embedded VI? The latter is what I thought you were referring to, but possibly not after reading your last post. Looking at a sub-panel in action would probably clarify this for me. Quote Link to comment
Norm Kirchner Posted August 4, 2005 Author Report Share Posted August 4, 2005 I want to be able to control the position of the scroll bars on the SubPanel Control. Actually I want the end user to be able to use the Scroll Bars and the program to move them if necessary Quote Link to comment
m3nth Posted August 4, 2005 Report Share Posted August 4, 2005 I want to be able to control the position of the scroll bars on the SubPanel Control.Actually I want the end user to be able to use the Scroll Bars and the program to move them if necessary 5557[/snapback] I'm going to take a wild guess that you won't be able to do that (as things stand so far with sub-panels). Would another workaround be feasible? Perhaps reversing your array before displaying it? Something else I do with things like that is keep the array size fixed so you can see n elements on the screen and then inrement the index when there are more than n elements in the array.... that keeps the last n elements visible for the user during processing. Quote Link to comment
Norm Kirchner Posted August 4, 2005 Author Report Share Posted August 4, 2005 What I am looking to do is make somthing that operates as the end user would expect. In this case the addition needs to happen at the bottom. The user is going to expect a scroll bar rather than a slider for the fixed number of elements workaround, because the scrollbar gives feedback to the number of elements out of view. I've given into the fact that there is no way to easily accomplish this and have moved down another path. Thanks for all the help! :thumbup: Quote Link to comment
m3nth Posted August 4, 2005 Report Share Posted August 4, 2005 What I am looking to do is make somthing that operates as the end user would expect.In this case the addition needs to happen at the bottom. The user is going to expect a scroll bar rather than a slider for the fixed number of elements workaround, because the scrollbar gives feedback to the number of elements out of view. I've given into the fact that there is no way to easily accomplish this and have moved down another path. Thanks for all the help! :thumbup: 5559[/snapback] You're right... a scroll bar does provide nice visual feedback in that regard as to how many elements there are total. Quote Link to comment
Sparc Posted August 10, 2005 Report Share Posted August 10, 2005 What I am looking to do is make somthing that operates as the end user would expect.In this case the addition needs to happen at the bottom. The user is going to expect a scroll bar rather than a slider for the fixed number of elements workaround, because the scrollbar gives feedback to the number of elements out of view. I've given into the fact that there is no way to easily accomplish this and have moved down another path. Thanks for all the help! :thumbup: 5559[/snapback] Provided its pretty simple data, how about displaying the data in a listbox/multi-column listbox instead? Sure, you'd have to convert it all to strings and then be limited to ~32k entries, but the scollbar works like it should. Sparc Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.