property cursorBox

(r/w) box cursorBox;

Typ

Zugriff

This property sets or gets the box that is selected and has the cursor focus. When multi-selecting items in the select box this is the item that was last selected.
var selBox = scene.getBoxById("myListBox");
if (selBox)
{
    var bx = selBox.cursorBox;
    if (bx)
    {
        var val = bx.getAttribute("PHONE");
        if (val == "Phone")
        {
            InitPhoneConv(bx);
        }
        else if (val == "IM")
        {
            InitIMConv(bx);
        }
    }
}