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
|
|
|
|
|
Re: Margin / Spacing of buttons [message #15834 is a reply to message #15826] |
Fri, 09 May 2008 22:47 |
galious
Messages: 28 Registered: March 2008
|
Promising Member |
|
|
Thanks for your answers. You're both completely right it's removed by setting the standard skin. So it's probably only an issue with Vista.
Using the multibutton I don't see as solution (I want some text in them), and since I'm not in a hurry I'll just code around it.
Regards,
Martin
|
|
|
Goto Forum:
Current Time: Thu Apr 18 18:06:13 CEST 2024
Total time taken to generate the page: 0.01600 seconds
|