Author Topic: Screen Menu Scrollbar from Display FB Library  (Read 694 times)

Offline acmall

  • PLUS+1 Guru
  • *****
  • Posts: 113
  • Karma: +22/-1
Screen Menu Scrollbar from Display FB Library
« on: December 01, 2020, 11:23:34 AM »
Does anyone have an example or can anyone explain how the Scrollbar functionality in the Screen Menu from the Display FB Library works.


I have created an application to try out the Screen Menu and have everything working except the Scrollbar. The outputs on the ScrollBar Bus are always Enabled = False and Y_Pos = 10000. I have been through he user manual for the Screen Menu, watched the YouTube tutorial video and went through every input signal I can find to all the blocks that make up the menu but, I can’t find anything that controls or affects the outputs on the ScrollBar Bus. The only info I could find is on page 24 of the Screen Menu User Manual which just says to connect the signals to the ScrollBar Widget, but does not give any detail of the logic that sets the values for Enable and Y_Pos.

Offline acmall

  • PLUS+1 Guru
  • *****
  • Posts: 113
  • Karma: +22/-1
Re: Screen Menu Scrollbar from Display FB Library
« Reply #1 on: December 01, 2020, 05:37:16 PM »
I figured it out.


The number of Menu_Item blocks that you add in Menu_Items is how many items you want to display on the screen at one time. Then if you add more then that number of items to any of the menus in Menu_Setup the scroll bar will display and the menu will scroll through the additional items as you use Next_Item / Prev_Item.


Works well once figured out.