Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Menus&Toolbars » Toolbar Gap() and GapRight() problems [BUG?]-[OPEN!]
BugConfirmed.gif  Toolbar Gap() and GapRight() problems [BUG?]-[OPEN!] [message #1706] Tue, 14 March 2006 15:44 Go to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

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

 
Read Message BugConfirmed.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Menu is flicking on Linux in NOGTK configuration
Next Topic: ShortCuts misses "+"
Goto Forum:
  


Current Time: Fri Apr 26 00:38:45 CEST 2024

Total time taken to generate the page: 0.02993 seconds