Author Topic: GUI help  (Read 790 times)

Lets say I have a gui named MyGui.

Now I have a TextListCtrl named MyList Parented to a ScollCtrl Parented to a WindowCtrl.

How would I get the ID of TextListCtrl to do like MyList.addRow()

And also how would I make a gui do something (say add stuff to the TextListCtrl) when the gui is pushed onto the screen

How would I get the ID of TextListCtrl to do like MyList.addRow()
Because it has a name, you can just use the name, as you did in your example.

And also how would I make a gui do something (say add stuff to the TextListCtrl) when the gui is pushed onto the screen

package onwake and textlistctrl.setValue(%this);

name of your textlistctrl

package onwake and textlistctrl.setValue(%this);

name of your textlistctrl

Dude, you don't need to package every command. In fact, why are you just restating what Chrono said, but in a more confusing way because you're not even making full sentences that make sense.

If you name the GUI object "TextListCtrl", then doing "TextListCtrl.addRow(%text);" will work without the need for an ID.

package onwake and textlistctrl.setValue(%this);

name of your textlistctrl
I like it how he doesn't even know how to add a row to the list.

And also how would I make a gui do something (say add stuff to the TextListCtrl) when the gui is pushed onto the screen

u can package it or make a function for it, was all i was telling him