Hi,
how can the events of a DrawRect be configured?
The follwing code does not fire any event.
What I´m doing wrong here?
Greetings Thomas
how can the events of a DrawRect be configured?
The follwing code does not fire any event.
What I´m doing wrong here?
Greetings Thomas
Code:
isc.VLayout.create({
id: "drawPaneLayout",
autoDraw: true,
height: "100%",
width: "100%",
members: [
isc.DrawPane.create({
ID: "drawPane",
autoDraw: false,
cursor: "default",
height: "100%",
drawItems: [
isc.DrawRect.create({
id: "drawPaneRect",
mouseOut: function() {alert("mouseOut");},
mouseOver: function() {alert("mouseOver");},
mouseMove: function() {alert("mouseMove");},
mouseDown: function() {alert("mouseDown");},
mouseUp: function() {alert("mouseUp");},
width: 140,
height: 140,
left: 60,
top: 60
})
]
})
]
});
Comment