![]() ![]() ![]() |
![]() |
Usage:
window(Handle, Parent, Win_func(_), Title, X, Y, Width,
Height)
window_n(Handle, Parent, Win_func,
Title, X, Y, Width, Height, Icon, Cursor, Background).
Creates an overlapping window.
Handle | handle. Use _ if you don't need it. |
Parent | handle of the parent window. Use _ for default. |
Win_func | predicate which will receive window messages |
Title | the window title |
X,Y | coordinates of upper left corner |
Width, Height | size of the window |
Example:
?-window( _, _, win_func(_), "Line demo", 100, 100, 200, 200).
win_func(paint):-line(0,0,200,200), line(0,200,200,0).
See also: