CWinCtrlIcon

Script: ICON

This is the control to display the icon.

It is possible to display eight texture parts.

This behavior is almost the same as TEXTURE. But if you touch it,it becomes darker.

And , unlike TEXTURE control , it can have a caption.

Callbacks arriving at :class:`CWindowBase<CWindowBase>`

Example of use

// get cotrol
CWinCtrlIcon   icnItem = find(ICON_Item) as CWinCtrlIcon;

// click callback
override protected void onClick(CWinCtrlBase cCtrl) {
  switch (cCtrl.id) {
    case ICON_Item:
      break;
   }
}
// hold callback
override protected void onHold(CWinCtrlBase cCtrl) {
    switch (cCtrl.id) {
      case ICON_Item:
        break;
    }
}