[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: How to create a vertical toolbar?
|
This was just fixed for 3.0. SWT.VERTICAL for toolbars didn't work quite
right on Windows until just recently ...
"Grant Gayed" <grant_gayed@xxxxxxxxxx> wrote in message
news:beu71m$ngs$1@xxxxxxxxxxxxxx
> Yuri,
>
> Your ToolBar creation line looks right. I've verified that if you get
> snippet
>
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/sn
ippits/snippet36.html
> and add SWT.VERTICAL to its creation style bits that it will display
> vertically. If this example doesn't help you then you'll have to post a
> more complete snippet since the problem likely resides elsewhere.
>
> Grant
>
> Yuri Magrisso wrote:
>
> > How can I create a vertical toolbar? I mean a toolbar that displays on
> > the left or right side of the window vertically.
> > I tried the following code, but the toolbar is always displayed
> > horizontally.
>
> > toolBar = new ToolBar (shell, SWT.BORDER | SWT.FLAT | SWT.VERTICAL);
>
> > ToolItem item = new ToolItem(toolBar, SWT.PUSH);
item.setImage(imgOrders);
> > item.setToolTipText("View Orders");
> > ....
> > toolBar.pack();
> > ....
>
>