I have a button menu (similar to the XML dropped down menu) but without any submenus.
What I do is to assign currItem(btn) with a dynamic text name and a small thumbnail. And onClick on the currItem it will go to some other frame.
My qns here is as the number of buttons is dynamic, it will display the number of buttons according to the database.
For the page itself, the maximum number of buttons to display is 6.
Say if my database has 15 buttons to display, I need to scroll thru the number of buttons. And the way I thought of is actually having a “Next” button. Onclick the next button, next set of 6 buttons will be displayed and the way is to change the previous set of 6 buttons’ properties to this current 6.
So it will display initially btns 1 - 6, on Next btn Click, 7 - 12 and on Next btn click 13 - 15.
I can just call the GenerateMenu function to assign the next set of 6 buttons with its relevant property.
But I can’t get my head around how I can do it such that how many times the GenerateMenu() have to be called and stuffs.
Bascially, programming aspect, I’m not too sure. So can someone give me some ideas or suggestions or some tutorials I can refer to?
numBtns = 15
maxBtns = 6
Thanks!