GUI Builder : METHODES

 

Les méthodes (methods) sont des actions (procédures, fonctions) qui peuvent modifier les propriétés des objets du GUI Builder.

 

AddItem

 

Ajoute un élément à une combo box ou à une list box.

 

Spécification :

 

procedure AddItem (Obj : in out gbListClass; Item : String; Index : Win32.Int := -1);

Clear

 

Efface tous les éléments qui se trouvent dans une combo box ou une list box.

 

Spécification :

 

procedure Clear (Obj : in out gbListClass);

Color

 

Crée une couleur de référence à partir des valeurs passées en paramètres.

 

Spécification :

 

function Color (R : Win32.Int; G : Win32.Int; B : Win32.Int) return Win32.WinDef.ColorRef;

CopyBitmap

 

Copie l’image d’un objet.

 

Spécification :

 

function CopyBitmap (Obj : in gbWindowClass) return Win32.WinDef.hBitmap;

CopyIcon

 

Copie l’icône d’un objet.

 

Spécification :

 

function CopyIcon (Obj : in gbWindowClass) return Win32.WinDef.hIcon;

CopyMetaFile

 

Copie le métafichier d’un objet.

 

Spécification :

 

function CopyMetaFile (Obj : in gbImage) return Win32.WinDef.hMetaFile;

gbEndApplication

 

Termine l'exécution d'une application.

 

Spécification :

 

procedure gbEndApplication;

Hide

 

Rend un objet invisible.

 

Spécification :

 

procedure Hide (Obj : in gbObject);

LoadBitmapFile

 

Charge un bitmap depuis un fichier.

 

Spécification :

 

function LoadBitmapFile (FileName : String) return Win32.WinDef.hBitmap;

LoadBitmapResource

 

Charge un bitmap depuis un fichier ressource (*.res).

 

Spécification :

 

function LoadBitmapResource (ResourceName : String) return Win32.WinDef.hBitmap;

LoadCursorResource

 

Charge un curseur depuis un fichier ressource (*.res).

 

Spécification :

 

function LoadCursorResource (ResourceName : String) return Win32.WinDef.hCursor;

LoadMenu

 

Charge la structure d’un menu d’un objet de type form.

 

Spécification :

 

procedure LoadMenu (Obj : in out gbWindowClass; Val : String; WindowListMenu : Win32.Int := 0);

LoadIconResource

 

Charge un icône depuis un fichier ressource (*.res).

 

Spécification :

 

function LoadIconResource (ResourceName : String) return Win32.WinDef.hIcon;

Move

 

Change la position d’un objet et/ou sa taille.

 

Spécification :

 

Procedure Move (Obj : in out gbImage; Left : Win32.Int; Top : Win32.Int; Width : Win32.Int; Height : Win32.Int);

MsgBox

 

Affiche une boîte qui affiche un message.

 

Spécification :

 

function MsgBox (Text : String := gbNullString; Caption : String := gbNullString; Style : Win32.UInt := 0; Handle : Win32.WinDef.hWnd := gbNullHandle) return Win32.Int;

 

procedure MsgBox (Text : String := gbNullString; Caption : String := gbNullString; Style : Win32.UInt := 0; Handle : Win32.WinDef.hWnd := gbNullHandle);

Refresh

 

Rafraîchi un objet sur l’écran.

 

Spécification :

 

procedure Refresh (Obj : in gbObject);

RemoveItem

 

Efface un élément d’une combo box ou d'une list box.

 

Spécification :

 

procedure RemoveItem (Obj : in out gbListClass; Index : Win32.Int);

SelectItem

 

Sélectionne un objet depuis une combo box ou une list box.

 

Spécification :

 

procedure SelectItem (Obj : in out gbListClass; Index : String);

SetColors

 

Permet de choisir la couleur du premier plan ainsi que la couleur de fond d’un objet.

 

Spécification :

 

procedure SetColors (Obj : in out gbObject; FColor : Win32.WinDef.ColorRef; BColor : Win32.WinDef.ColorRef);

 

procedure SetColors (Obj : in out gbObject; Obj2 : in out gbObject'Class);

SetFont

 

Permet de choisir la police de caractère pour un objet.

 

Spécification :

 

procedure SetFont (Obj : in out gbObject; FntName : String; FntSize : Win32.Int; FntBold : Win32.Bool := gbFlase; FntItalic : Win32.Bool := gbFalse; FntUnderline : Win32.Bool := gbFalse);

 

procedure SetFont (Obj : in out gbObject; Obj2 : in out gbObject'Class);

SetFocus

 

Permet de sélectionner un objet.

 

Spécification :

 

procedure SetFocus (Obj : in gbObject);

SetScrollValues

 

Détermine la position des curseurs d'une barre de défilement.

 

Spécification :

 

procedure SetScrollValues (Obj : in out gbScrollClass; Min : Win32.Int; Max : Win32.Int; LChange : Win32.Int; SChange : Win32.Int; Val : Win32.Int);

Show

 

Rend un objet visible.

 

Spécification :

 

procedure Show (Obj : in out gbObject; Style : Win32.Int);

ZOrder

 

Déplace un objet à l’avant ou à l’arrière de la pile d’affichage.

 

Spécification :

 

procedure ZOrder (Obj : in out gbObject; Pos : gbZOrder);