[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: SashForm Divider render Sunken

Don wrote:

I'm simply use SashForm with the SWT.NONE as style and the divider dose not show up at all. But if you move your mouse close to the divider line, a shadow shows up for dragging.

If I use SWT.DEFAULT or SWT.BORDER as a style, then a "sunken" divider of default width 3 pixels shows up instead of the normal "raise" rendering of the divider like all Window apps.

What do I have to do to make the divider render "raised" instead of "sunken"?

Have a closer look at the dividers in other apps (like Explorer or IE). You'll find that they appear to have an ETCHED_OUT style simply because they are placed between two Controls with ETCHED_IN borders.


If you want the borders to be a part of the divider (looks the same, but the borders can be dragged), have a look at my LiveSashForm class at http://www.novocode.com/swt/

--
Stefan Zeiger - Developer of Novocode Application Framework
Build SWT-based MVC GUIs via XML: http://www.novocode.com/naf/