예제 #1
0
hDialog::hDialog(std::string name, hPanel * parent, int dispMode, int xx, int yy, int width, int height)
	: hPanel(name, parent, dispMode, xx, yy, width, height, true)
{
	data->type = "dialog";
    hGui * gui = hGui::getInstance();

	dialogColor = gui->dialogColor;
    setVisibleBackground(true);

    openFlag = false;
	inTopBar = false;

	clickedX    = 0;
	clickedY    = 0;
	clickedXpos = 0;
	clickedYpos = 0;
	xShift      = 0;
	yShift      = 0;

    result = 0; // result 1 = confirm, 2 = cancel (or close)

	closeButton   = NULL;
	confirmButton = NULL;
	cancelButton  = NULL;

	msgTextArea   = NULL; // Used by message boxes
	alertLabel    = NULL; // Used by alerts
}
예제 #2
0
void hWidget::setBackgroundColor(int color)
{
	// cout << "hWidget::setBackgroundColor: " << color << endl;
	backgroundColor = color;
	setVisibleBackground(true);
}