View Full Version : GuiTextListCtrl

09-02-2006, 11:35 PM
Hi im having a little bit of trouble understanding how to work getting the information out of the GuiTextListCtrl when I click one of the texts inside the list.

Ive got it working through the catchevent to the function but I cant figure out how to pull the text of what was actually selected out of that. The Wiki page for it also wasnt too helpful.

Any advice?

09-03-2006, 02:20 AM
You mean something like this?

function MyTextListControlName.onSelect(entryid,entrytext,e ntryindex) {
echo("The player clicked on: " @ entrytext);

If you don't know the name of your control and use the catchevent function, then it will look like this:

function MyEventCatchFunction(controlobj,entryid,entrytext, entryindex) {
echo("The player clicked on: " @ entrytext);