Thread: GuiTextListCtrl
View Single Post
  #2  
Old 09-03-2006, 01:20 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
You mean something like this?
PHP Code:
function MyTextListControlName.onSelect(entryid,entrytext,entryindex) {
  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:
PHP Code:
catchevent("MyTextListControlName","onSelect","MyEventCatchFunction");
...
function 
MyEventCatchFunction(controlobj,entryid,entrytext,entryindex) {
  echo(
"The player clicked on: " entrytext);

Reply With Quote