Panel array? MaxGUI

BlitzMax Forums/BlitzMax Beginners Area/Panel array? MaxGUI

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

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)

I have yes but i cant find anything referencing panel arrays. you answered my question :)

thanks for your help

For i=1 to dozens
MyPanels[i]=CreatePanel()
Next

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