•  Back 
  •  Libraries 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : Pure C Library Documentation
Author      : John Kormylo
Version     : LIB.HYP 1.0
Subject     : Documentation/Pure C Library
Nodes       : 1309
Index Size  : 32068
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : en
@default    : 
@help       : Help
@options    : +g -i -s +x +z -t4
@width      : 75
View Ref-File[ form_center ]

#include <aes.h>

int form_center( OBJECT *tree, int *x, int *y, int *w, int *h );

  <tree> is the Object Tree array.
  <x> returns the left edge of the clipping rectangle.
  <y> returns the top edge of the clipping rectangle.
  <w> returns the width of the clipping rectangle.
  <h> returns the height of the clipping rectangle.


Function changes the x,y coordinates of the root Object to center the
Object Tree on the screen.
It also returns the clipping rectangle coordinates.

It always returns 1.

AES Opcode 54

See also Form and Dialog Box.