Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Zoom combo on toolbar has unwanted separator under it on left edge!
Zoom combo on toolbar has unwanted separator under it on left edge! [message #246909] Tue, 20 January 2009 08:03 Go to next message
Justin Dolezy is currently offline Justin DolezyFriend
Messages: 68
Registered: July 2009
Member
Hi,

When I add a ZoomComboContributionItem in the editor
ActionBarContributor I get a separator visible underneath the combo box,
just in from the left edge...

Seems to me this is due to the fill method:-

public void fill(ToolBar parent, int index) {
toolitem = new ToolItem(parent, SWT.SEPARATOR, index);
Control control = createControl(parent);
toolitem.setControl(control);
}

Curiously this separator is visible on Windows but not on Mac OS X.

How do I get rid of it?! Is it a bug maybe? I'm using ganymede 3.4 SR1
and GEF 3.4.1.


Thanks,
Justin
Re: Zoom combo on toolbar has unwanted separator under it on left edge! [message #247030 is a reply to message #246909] Mon, 26 January 2009 16:17 Go to previous message
Justin Dolezy is currently offline Justin DolezyFriend
Messages: 68
Registered: July 2009
Member
Justin Dolezy wrote:

> Hi,

> When I add a ZoomComboContributionItem in the editor
> ActionBarContributor I get a separator visible underneath the combo box,
> just in from the left edge...

> Curiously this separator is visible on Windows but not on Mac OS X.

> How do I get rid of it?! Is it a bug maybe? I'm using ganymede 3.4 SR1
> and GEF 3.4.1.

> Thanks,
> Justin

Well I've found the cause of the problem.. my toolbar has nice chunky
32x32 icons instead of the standard 16x16 ones.

So the separator that is created (via the fill() ToolItem) is indeed under
the combo however it isn't visible with 16x16 icons as the combo and
separator are the same height. With my 32x32 ones the combo height is
unchanged but the separator is now 32ish pixels tall causing it to poke
out above and below.

Once I've access to Thunderbird I can post a pic.

No ideas anyone? Can the SWT.SEPARATOR style be replaced with something
else??

Cheers,
Justin
Previous Topic:Clicking CTRL +N should open new Editor
Next Topic:GEF label display issue on Linux
Goto Forum:
  


Current Time: Thu Apr 18 10:49:00 GMT 2024

Powered by FUDForum. Page generated in 0.01730 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top