Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Margin / Spacing of buttons
Margin / Spacing of buttons [message #15826] |
Fri, 09 May 2008 00:27  |
galious
Messages: 28 Registered: March 2008
|
Promising Member |
|
|
Hi,
While creating an aggregated control I noticed there is some automatic spacing between buttons/controls.
E.G.
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
GUI_APP_MAIN
{
TopWindow win;
Button b[5];
for (int i = 0; i < 5; ++i) {
b[i].SetLabel(Format("Test: %d", i));
win << b[i].TopPosZ(i * b[i].GetStdSize().cy, b[i].GetStdSize().cy).LeftPosZ(0, 120);
}
win.Run();
}
You'll see some spacing between the buttons. Is there any way to remove these? (Except from subtracting e.g 3 pixels, since this may change between OS'ses or versions).
Regards,
Martin Schut
|
|
|
Goto Forum:
Current Time: Sat Jun 07 14:59:24 CEST 2025
Total time taken to generate the page: 0.30449 seconds
|