Kirix Support Forums

Event _args Values

Please post any help questions, requests or other feedback here.

Event _args Values

Postby MEB on Thu Aug 28, 2014 2:05 pm

Where would I find the various event_args Values that can be passed to the function that gets called after an event fires?

In the sample code for ListView there are several values that are passed in the event_args variable to the onKeyDown function, like .keyCode, .shiftDown, .controlDown, .altDown, and .index. Where would I look to see if there are others?
MEB
Registered User
 
Posts: 13
Joined: Wed Nov 12, 2008 3:46 pm

Re: Event _args Values

Postby Ben on Thu Aug 28, 2014 3:58 pm

In general, we followed standard guidelines for the parameter names. Here are some of the parameters for events for ListView

Code: Select all
// (EVENT) ListView.columnClick
// Description: Fired when a column is left-clicked.
// Param(index): The index of the column that is clicked.

// (EVENT) ListView.columnRightClick
// Description: Fired when a column is right-clicked.
// Param(index): The index of the column that is clicked.

// (EVENT) ListView.keyDown
// Description: Fired when a key is pressed.
// Param(index): Index of the list item that has the focus.
// Param(keyCode): Key code of the key pressed.
// Param(altDown): True if the Alt key is pressed, false otherwise.
// Param(controlDown): True if the Control key is pressed, false otherwise.
// Param(shiftDown): True if the Shift key is pressed, false otherwise.

// (EVENT) ListView.itemSelect
// Description: Fired when a list item is selected.
// Param(item): The item that is selected.
// Param(index): The index of the item that is selected.

// (EVENT) ListView.itemActivate
// Description: Fired when a list item is activated.
// Param(item): The item that is activated.
// Param(index): The index of the item that is activated.

// (EVENT) ListView.itemRightClick
// Description: Fired when a list item is right-clicked.
// Param(item): The item that is clicked.
// Param(index): The index of the item that is clicked.

// (EVENT) ListView.itemBeginLabelEdit
// Description: Fired at the beginning of a list item label edit.
// Param(item): The item that is beginning to be edited.
// Param(index): The index of the item that is beginning to be edited.

// (EVENT) ListView.itemEndLabelEdit
// Description: Fired at the end of a list item label edit.
// Param(item): The item that is finished being edited.
// Param(index): The index of the item that is finished being edited.
Ben Williams
Kirix Support Team
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Return to Strata Help & Feedback