This code works:
Code: Select all
import "ecere"
class MouseOverForm : Window
{
text = "Mouse Over / Picture Test";
background = activeBorder;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
size = { 640, 480 };
Picture picture1
{
this, image = { "pic1.jpg", transparent = true };
bool OnMouseOver(int x, int y, Modifiers mods)
{
Capture();
image = { "pic2.jpg" };
return true;
}
bool OnMouseLeave(Modifiers mods)
{
image = { "pic1.jpg" };
ReleaseCapture();
return true;
}
};
}
MouseOverForm form1 {};
Jerome