GUI arrays and it's label arrays question

Started by geork, Fri 14/05/2010 22:37:12

Previous topic - Next topic

geork

 Hey all!
  Just wondering whether it is possible to find a label from a GUI by it's ID. I know that all labels have an ID relative to the GUI, but that all GUI's  hav a unique ID. So I'm looking for something along the lines of:
Code: ags

  gui[number1].Label[number2] = stringValue;
  

  obviously, it's not that easy, but is there a way of doing this sort of thing?
   Thanks

GarageGothic

I think this should work:

Code: ags
Label* mylabel = gui[number1].Controls[number2].AsLabel;
if (mylabel != null) mylabel.Text = stringValue;


geork


SMF spam blocked by CleanTalk