|
|
Home » U++ Library support » Menus&Toolbars » Toolbar Gap() and GapRight() problems [BUG?]-[OPEN!]
Toolbar Gap() and GapRight() problems [BUG?]-[OPEN!] [message #1706] |
Tue, 14 March 2006 15:44  |
|
Look at first example:
[n] - toolbar n'th item
: - Gap() (free space)
------------------------------------------
[0]:[1]::::::::::::::::::::::::::::::::[2]
------------------------------------------
and the code to build such a toolbar
bar.Add(item0);
bar.Gap();
bar.Add(item1);
bar.GapRight();
bar.Add(item2);
All this is very intuitiv.
Now the problem. It it immposible to create the toolbar like this (using Gap() and GapRight()):
-------------------------------------------
[0]:[1]:::::::::::::::::::::::::::::[2]:[3]
-------------------------------------------
The code should look like:
bar.Add(item0);
bar.Gap();
bar.Add(item1);
bar.GapRight();
bar.Add(item2);
bar.Gap();
bar.Add(item3);
But this wont work, because Gap() does not distinguish if it is placed before or after GapRight().
To have right aligned items separated with free space I have to add empty labels or any other invisible control..
Can this be fixed?
[Updated on: Wed, 03 May 2006 20:11] by Moderator Report message to a moderator
|
|
|
|
|
|
|
Re: Toolbar Gap() and GapRight() problems [BUG?]-[OPEN!] [message #15375 is a reply to message #15374] |
Fri, 18 April 2008 00:59   |
bytefield
Messages: 210 Registered: December 2007
|
Experienced Member |
|
|
cbpporter wrote on Fri, 18 April 2008 00:33 |
This is actually true for all controls. Their painting in the designer is done by separate code and only provides a sketch so you can see the layout. Complex visual effects and skinning is left out here, but you will have them in your application when you run it.
|
I wasn't talking about that kind of painting. To see what i was talking about, just build 2 sample application, each one containing a toolbar, in one use the designer to setup it and in other write you the code of creation toolbar and add it to frame.
I've observed this difference about gradient painting on XP
(i cant make some screenshots, because i've just removed XP from my box today). However it isn't so important, i was just wanted to figure out why it have this behavior.
cdabbd745f1234c2751ee1f932d1dd75
[Updated on: Fri, 18 April 2008 00:59] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sun May 11 06:41:34 CEST 2025
Total time taken to generate the page: 0.02330 seconds
|
|
|