| Did you know ... | Search Documentation: |
| Window layout |
Defining a window layout
This is an example on how to define the relative position/sizes of windows in a frame.
The task is to create a frame that has a browser and a picture on top and a dialog window at the bottom.
% frame_dialog/0
% Create a frame with a browser and picture at the top and a dialog
% at the bottom.
frame_dialog :-
new(P, picture('Frame layout demo')),
send(new(B, browser), right, P),
send(new(D, dialog), below, B),
send(D, append, button(quit, message(D, destroy))),
send(P, open).
% Start the demo
:- frame_dialog.