[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-users] yet another patch
From: |
H. C. |
Subject: |
[paragui-users] yet another patch |
Date: |
Mon, 31 Mar 2003 14:13:00 +0200 |
- SetBackground(...) works properly now (as does
PG_FileArchive::LoadSurface(...)!)
- eliminated PG_Window's flicker caused by SetTitle(...)
- added simple method to center widgets either horizontally or vertically.
Just set either the width or the height of the widget's rect to 0 and
SetSizeByText() will center the non-null component.
Examples:
a)
PG_Button* button = new PG_Button(NULL, 1, PG_Rect(100, 20, 0, 50), "Hi,
I'm a button");
// this will center the button vertically and determine its width for
you
button->SetSizeByText();
b)
PG_Button* button = new PG_Button(NULL, 1, PG_Rect(100, 20, 50, 0), "Hi,
I'm a button");
// this will center the button horizontally and determine its height for
you
button->SetSizeByText();
kind regards,
H. C.
diff.txt
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-users] yet another patch,
H. C. <=