Copyright ® (1997-2013) EDMGROUP Pty Ltd - EZY Prolog Reference
back to GUI elements
Download EZY Prolog
Frame object is a rectangular area which can have child controls.
Frame properties include interior (border, colors, font), type (text or image), child controls, supported by EZY Prolog.
Frame object has similarity with WINDOW (which is collection of GUI controls).
EZY Prolog DLL subsystem allows to define frame event handler externally (see ezy_frame_handler )
This is sample of complex GUI inside a frame
This is sample of FRAME with background image and TEXT ENTRY field on the top
Frame object can be hidden/displayed/destroyed by functional call within EZY Prolog program.
Get/Set frame caption
Set frame handler (default or external from DLL)
Define event handler for the frame
Get child object of the frame
Get parent of the frame object
Set timer for the frame object
Object support predicates:
Full list of frame support predicates
Frames declared as:
vps_text(STRING CAPTION, ILIST TEXT_FLAGS);
vps_image(STRING PICTURE_FILE_NAME,ILIST IMAGE_FLAGS)
EZY Prolog Domains
Automatic code generation:
No code generation required for Frames.
image_original_size = 0
stretch_image = 1
Expands tab characters. The default number of characters per tab is eight
Includes the font external leading in the height of a line of text. Normally, external leading is not included in the line height
Aligns text to the left
Draws without clipping. draw_TextInRect/5 is somewhat faster when dtext_Noclip is used
Turns off processing of prefix characters. Normally, draw_TextInRect/5 interprets the mnemonic & as a directive to underscore the character that follows, and the mnemonic && as a directive to print a single &. By specifying dtext_NoPrefix, this processing is turned off
Aligns text to the right
Specifies that the text must be displayed as a single line. Carriage returns and linefeeds do not break the line.
Sets tab stops. The default number of characters per tab is eight. The programmer can redefine the default number of characters per tab to the desired NewTabSize number ( < 256 ) by using the following expression in the flags list (instead of the dtext_TabStop flag):
Specifies top-aligned text (single line only)
Specifies vertically centered text (single line only)
Specifies word breaking. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by the Rect argument (in draw_TextInRect). A carriage return-linefeed sequence will also break the line.
Copyright © 1997-2013 EDMGROUP (Australia)