is it possible to have a clickable icon in a dialog? that you could click it and make it do an action?
you can do it if you supply the ID of your icon in the SCLICK event:
ON 1:DIALOG:DialogName:SCLICK:IDofICON: {
echo -s You just clicked an icon
}
yes but in the actuall dialog box how do you do it?
You have to set the icon with a ID number, with the filename.ico then put a SLICK as the other username state before.
Here is an example:
dialog test {
title "Test"
size -1 -1 100 100
button "OK", 1, 1 1 10 10, ok
icon 2, bah.ico, 10 10 10 10, noborder (noborder is optional)
}
on *:dialog:test:sclick:2:echo -a You've clicked on an icon.
Anyway.
oh kewl now i understand thanks