Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » CBanner for ApplicaitonWindow TooBar
CBanner for ApplicaitonWindow TooBar [message #460286] Mon, 18 December 2006 22:25 Go to next message
Eclipse UserFriend
Originally posted by: partyhut.internode.on.net

Hi all,

Can anybody tell me how to use a CBanner to separate two Toolbars in the
ApplicaitonWindow? I am using a TooBarManager and a ActionGroup to
populate my ToolBar...

Cheers,
HS
Re: CBanner for ApplicaitonWindow TooBar [message #460304 is a reply to message #460286] Tue, 19 December 2006 07:33 Go to previous messageGo to next message
Eclipse UserFriend
How about:

CBanner topBar = new CBanner(shell, SWT.NONE);
Control c = toolManager1.createControl(topBar);
topBar.setLeft(c);
c = toolManager2.createControl(topBar);
topBar.setRight(c);

Then topBar needs to be placed in your main window layout somewhere.

Later,
PW
Re: CBanner for ApplicaitonWindow TooBar [message #460326 is a reply to message #460304] Tue, 19 December 2006 21:15 Go to previous message
Eclipse UserFriend
Originally posted by: partyhut.internode.on.net

Hi Paul,

Thank you for your prompt reply. I am new to this stuff... Then how
could I replace the default ApplicaitonWindow toobar with the topBar?
Actually I don't want to create new toolbar. I just want to set the one
created by ApplicaitonWindow.createToolBarManager()... Is it possible?

Thank you!

Paul Webster wrote:
> How about:
>
> CBanner topBar = new CBanner(shell, SWT.NONE);
> Control c = toolManager1.createControl(topBar);
> topBar.setLeft(c);
> c = toolManager2.createControl(topBar);
> topBar.setRight(c);
>
> Then topBar needs to be placed in your main window layout somewhere.
>
> Later,
> PW
Previous Topic:Sharing plug-in development through source control
Next Topic:How to receive event from OLE control?
Goto Forum:
  


Current Time: Fri Mar 21 04:26:20 EDT 2025

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

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

Back to the top