Make a "scrolling" horizontal menu 5 Years, 8 Months ago
Hello,
After figuring out the basics of the MMSMenuWidget, I am now trying something more elaborated.
Basically I am trying to implement an horizontal menu that behaves similar to the one shown in the Disko animation demo on TI DaVinci video:
- Horizontal menu
- The selected item is always in the middle of the window and the menu shifts accordingly
- Not all the items are visible at the same time, but they appear as the shifting is performed
The administrator has disabled public write access.
Make a "scrolling" horizontal menu
andre
Posts: 35
Re:Make a "scrolling" horizontal menu 5 Years, 8 Months ago
Hello,
I realised that I should use the setFixedPos() member function of MMSMenuWidget to get the scrolling menu effect.
But the problem now is that I cannot reach the "out-of-bounds" menu items. I have an horizontal menu with 6 items but, given their width, only 2 of them are visible at a time. But then I cannot navigate to the others because they simply do not show up.
The administrator has disabled public write access.
Make a "scrolling" horizontal menu
Guido
Admin
Posts: 54
Re:Make a "scrolling" horizontal menu 5 Years, 8 Months ago
Hi André,
i can't reproduce your problem. I compiled your code successfully (against the latest disko git version) and it seems that the menu is running correctly - screenshot attached!