Recent Changes - Search:

Documentation

Help

Tutorials

RoadMap

Help Docs for wiki writers:

PmWiki

edit SideBar

CreateButtonTB

ButtonTB? * CreateButtonTB(
std::string _ButtonName,
int _Buttonx,
int _Buttony,
int _Buttonz,
std::string _ButtonText ,
bool _SButtonactive,
std::string _AddtoCurrentRenderlist
unsigned int _ButtonTB_height,
unsigned int _ButtonTB_width,
std::string _ButtonTB_Font,
int _ButtonTB_FontPoint,
unsigned int _ButtonTB_red,
unsigned int _ButtonTB_blue ,
unsigned int _ButtonTB_green,
std::string _ButtonFontPath
)

Public function of the Epee Engine Class

Description:
Creates a textbox that is a button and adds it to the rendable list _AddtoCurrentRenderlist

Arguments:

Required:

std::string _ButtonName
Name of ButtonTB?

int _Buttonx
x location of the ButtonTB?

int _Buttony
y location of the ButtonTB?

int _Buttonz
z location of the ButtonTB?

std::string _ButtonText
text to display in the ButtonTB?

Optional:

bool _SButtonactive
if true the user can click the button
if false the button can not be clicked
defaults to true

std::string _AddtoCurrentRenderlist
render list to add the ButtonTB? to
defaults to "Current" the current active render list

unsigned int _ButtonTB_height
the clipping height of the ButtonTB?
if -1 is passed the height is set to the height of _ButtonText
defaults to 30

unsigned int _ButtonTB_width
the clipping width of the ButtonTB?
if -1 is passed the width is set to the width of _ButtonText
defaults to 100

std::string _ButtonTB_Font file name of the true type font
defaults to True_Type_Font_Defalut
True_Type_Font_Defalut:
Windows
"ARIAL.TTF"
Macintosh
"Chalkboard.ttf"
Linux
currently not defined. This will change once I get my Linux box up

int _ButtonTB_FontPoint
font size for _Font
defaults to 18

unsigned int _ButtonTB_red
foreground red color
defaults to 255

unsigned int _ButtonTB_blue
foreground blue color
defaults to 255

unsigned int _ButtonTB_green
foreground green color
defaults to 255

std::string _ButtonFontPath
location of _Font
defaults to True_Type_Font_Location
True_Type_Font_Location:
Windows:
"C:\\WINDOWS\\Fonts\\"
Macintosh:
"/Library/Fonts/"
Linux:
currently not defined. This will change once I get my Linux box up

Return Value:
if successful returns a pointer to the newly created ButtonTB?, otherwise returns a NULL pointer

Edit - History - Print - Recent Changes - Search
Page last modified on April 09, 2007, at 01:44 PM