Copyright (1997-2013) EDMGROUP Pty Ltd - EZY Prolog Reference

 Frame control

back to GUI elements

main page

Download EZY Prolog

Description:

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.

 

 

Predicate Name

Parameters

ezy_frame_caption

Get/Set frame caption

ezy_frame_handler

Set frame handler (default or external from DLL)

ezy_object_handler

Define event handler for the frame

ezy_get_object

Get child object of the frame

ezy_get_parent

Get parent of the frame object

ezy_timer_set

Set timer for the frame object

Object support predicates:

Full list of frame support predicates

Domain declarations:

Frames declared as:

VPS_TEXT =

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.

Control properties:

 

Supported IMAGE_FLAGS:

image_original_size        =  0

stretch_image        =  1

 

Supported TEXT_FLAGS:

 

dtext_Expandtabs

Expands tab characters. The default number of characters per tab is eight

dtext_Externalleading

Includes the font external leading in the height of a line of text. Normally, external leading is not included in the line height

dtext_Left

Aligns text to the left

dtext_Noclip

Draws without clipping. draw_TextInRect/5 is somewhat faster when dtext_Noclip is used

dtext_NoPrefix

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

dtext_Right

Aligns text to the right

dtext_SingleLine

Specifies that the text must be displayed as a single line. Carriage returns and linefeeds do not break the line.

dtext_TabStop

 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):

dtext_Top

Specifies top-aligned text (single line only)

dtext_Vcenter

Specifies vertically centered text (single line only)

dtext_Wordbreak

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)