Panel array? MaxGUI

BlitzMax Forums/BlitzMax Beginners Area/Panel array? MaxGUI

767pilot(Posted 2006) [#1]
Is it possible to have more than one panel on a form? I want to load several panels with different images then get the id of which panel has been clicked.


Thanks
Graham


CS_TBL(Posted 2006) [#2]
sure

MyPanel1=CreatePanel(x,y,w,h,parent)
MyPanel2=CreatePanel(x,y,w,h,parent)
MyPanel3=CreatePanel(x,y,w,h,parent)

etc.

But have you read the beginner-tutorials (in the tutorial section)? These are all quite basic-questions (and I'm not referring to the language 'basic' :P)


767pilot(Posted 2006) [#3]
I have yes but i cant find anything referencing panel arrays. you answered my question :)

thanks for your help


Grisu(Posted 2006) [#4]
For i=1 to dozens
MyPanels[i]=CreatePanel()
Next

For i=1 to dozens
If MyPanels[i] clicked then do something
Next