Function _IrrAddStaticText

au3Irr2

au3Irr2 Function Reference

_IrrAddStaticText

Creates a static text object on the Graphical User Interface.

#Include <au3Irrlicht2.au3>
_IrrAddStaticText($s_Text, $i_TopX, $i_TopY, $i_BottomX, $i_BottomY, $i_Border, $i_WordWrap, $h_Parent = 0)

 

Parameters

$s_Text String that contains the text you want to display.
$i_TopX Top X position of a box in which the text is drawn
$i_TopY Top Y position of a box in which the text is drawn
$i_BottomX Bottom X position of a box in which the text is drawn
$i_BottomY Bottom Y position of a box in which the text is drawn
$i_Border Border is used to draw a visible box around the text, its value should be either of:
$IRR_GUI_NO_BORDER
$IRR_GUI_BORDER
$i_WordWrap Word wrap is used to define whether text is to be wrapped around into a second line when it fills the width of the text box, its value should be either of:
$IRR_GUI_NO_WRAP
$IRR_GUI_WRAP
$h_Parent [optional] Parent defines the parent object of this window. This can be ommited if the object has no parent.

 

Return Value

Success: Pointer to the static text Object
Failure: False

 

Remarks

This function simply displays the specifed text in the specified box.

 

Related

_IrrDrawGUI

 

Example


#include "au3Irrlicht2.au3"

_IrrStart( $IRR_EDT_OPENGL, 800, 600, $IRR_BITS_PER_PIXEL_32, _
        $IRR_WINDOWED, $IRR_SHADOWS, $IRR_CAPTURE_EVENTS, $IRR_VERTICAL_SYNC_ON )

_IrrAddStaticText( "Hello AU3-World ;-)", 8, 8, 200, 20, $IRR_GUI_NO_BORDER, $IRR_GUI_NO_WRAP)

WHILE _IrrRunning()
    _IrrBeginScene(0, 0, 0)
    _IrrDrawGUI()
    _IrrEndScene()
WEND

_IrrStop()