From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
The configuration file used in the UI framework specifies the number of buttons in the sliding menu XControl, however changing the value did not change the number of buttons. This feature was not implemented. Below there are two videos with a suggestion on how to implement this feature and the implemented code is attached (Sliding Menu-2011-09-04.zip).
How to add the "Number of Menu Buttons" and "Space Between Buttons" properties to the Sliding Menu XControl:
How to implement the newly created properties into the Facade.vi and how to test them:
If you look through the original code, you'll notice that I've disabled some functionality that 'bounces' the slider back to the minimum or maximum if a user tries to scroll too far... it proved to be a pretty buggy feature that I never had time to finish, but it's a nice level of polish on a touch-screen that I would like to go back and add at some point in the future... especially now that I can use the async call VI in 2011 to make it easier.
I'm trying to wrap my head around all of this stuff and videos like this are very helpful.
I notice that as I change the number of buttons showing, sometimes the font seems to change on some of the menu items. Not quite "bold", but the text becomes visibly thicker. You can see this at the end of your second video as well.