subItemClick

Typemessage
Dictionarywidget.polylist
LibraryPolyList
Syntax
subItemClick (pItemIndex,pSubItemname)
Associationscom.livecode.widget.polylist
Summary

This message is sent when the user clicks a subitem.

Parameters
NameTypeDescription
pItemIndex

An Integer representing the index of the item under the mouse cursor.

pSubItemname

A String representing the name of the subitem under the mouse cursor.

Example
on subItemClick pItemIndex, pSubItemName
     if pSubItemName is "heart" then
          set the itemPointer of me to pItemIndex
          set the subItemPointer of me to pSubItemName
          local tCurrentVal
          put the subItemContent of me into tCurrentVal
          if tCurrentVal is "#255,90,95#heart" then
               set the subItemContent of me to "#255,255,255#heart empty"
          else
               set the subItemContent of me to "#255,90,95#heart"
          end if
     end if
end subItemClick
Description

Use the subItemClick message to detect when the user clicks on a specific subitem.