Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • Label clickHandler() and iconClickHandler()

    Hi Isomorphic,

    when using clickHandler() and iconClickHandler(), when I click on the icon, both handlers are called. Can I somehow execute only iconClickHandler() when I click on icon?

    SHOWCASE

    Code:
    isc.Label.create({
        height: 30,
        padding: 10,
        align: "center",
        valign: "center",
        wrap: false,
        icon: "icons/16/approved.png",
        click () {
            isc.say("Label clicked!");
        },
        iconClick () {
            isc.say("Icon clicked!");
        },
        showEdges: true,
        contents: "<i>Approved</i> for release"
    })
    Best regards
    Pavo

  • #2
    I solved this problem! Please ignore this thread.

    Solution is:
    Code:
    isc.Label.create({
        height: 30,
        padding: 10,
        align: "center",
        valign: "center",
        wrap: false,
        icon: "icons/16/approved.png",
        click () {
            isc.logWarn("Label clicked!");
        },
        iconClick () {
            isc.logWarn("Icon clicked!");
            return false;
        },
        showEdges: true,
        contents: "<i>Approved</i> for release"
    })

    Comment

    Working...
    X