![]() ![]() ![]() |
![]() |
Usage:
icon(Handle, Parent, Icon_func(_), Icon, X, Y)
Creates an icon control.
Handle | handle. Use _ if you don't need it. |
Parent | handle of the parent window. Use _ for default. |
Icon_func(_) | predicate which will receive icon messages |
Icon | a string containing the icon file otherwise the default icon is displayed |
X, Y | coordinates of upper left corner |
Example:
?-window( _, _, win_func(_), "Icon control demo", 100, 100, 200, 200).
win_func(init):-
icon(_, _, fail(_), default,
50, 50).
See also: