almondega
04-07-2008 03:52:31
hi
how to change the label widget size correct ?
look the code:
look what i got:

this size isnt 1024x768
what i'm forgeting?
tks
how to change the label widget size correct ?
look the code:
imLabel = mSheet->createLabel();
mSheet->setDimensions(QuickGUI::Rect(0,0,1024,768));
//imLabel->setOpacity(0);
imLabel->setSkin("bof");
imLabel->setHorizontalAlignment(QuickGUI::Label::HA_LEFT);
imLabel->setVerticalAlignment(QuickGUI::Label::VA_TOP);
imLabel->setFont(imFontName);
imLabel->setPosition(QuickGUI::Point(windowWidth * leftPad, windowHeight * topPad));
//imLabel->setWidth(width?width:windowWidth - (windowWidth * leftPad));
//imLabel->setHeight(height?height:windowHeight - (windowHeight * topPad));
imLabel->setSize(1024,768);
imLabel->redraw();
look what i got:
this size isnt 1024x768
what i'm forgeting?
tks
