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
|
|
|
Goto Forum:
Current Time: Sun May 11 00:09:09 CEST 2025
Total time taken to generate the page: 0.03174 seconds
|