![]() ![]() ![]() |
![]() |
Usage:
edit(Handle, Parent, Edit_func(_),Text, X, Y, Width,
Height)
Creates an edit control.
Handle | handle. Use _ if you don't need it. |
Parent | handle of the parent window. Use _ for default. |
Edit_func(_) | predicate which will receive edit messages |
Title | the window title |
X,Y | coordinates of upper left corner |
Width, Height | size of the window |
Example:
?-window( _, _, win_func(_), "Edit control demo", 100, 100, 200, 200).
win_func(init):-
window_brush(_, rgb(0,
0, 255)), % blue
edit(E1, _, edit_func(_),
"Start Value", 10, 10, 100, 50).
edit_func(init) :-
color_text(_, rgb(0,
255, 0)), % green
color_text_back(_, rgb(255,
0, 0)). % red
See also: