Byte-Welt Forum

Zurück   Byte-Welt Forum > Projekte > DockingFrames

DockingFrames DockingFrames An extension of Swing, used to flexibly arrange windows. - Ist eine Erweiterung von Swing, mit der flexibel Panels angeordnet werden können.

Antwort
 
Themen-Optionen Thema durchsuchen
Alt 20.07.2010, 20:36   #11
Unregistriert
Gast
 
Beiträge: n/a
Standard AW: Single dockable in a StackableDockStation

I will try to make a test application in the next days.

Actually I have set an EclipseThemeConnector:

Code:
// Removes the "empty" border from the DockStations.
control.putProperty(EclipseTheme.THEME_CONNECTOR , new NoBorderThemeConnector(control));
But that does not a lot:

Code:
/**
 * A theme connector that removes the "empty" border from the {@link bibliothek.gui.DockStation}s.
 */
public class NoBorderThemeConnector extends CommonEclipseThemeConnector {

    public NoBorderThemeConnector (CControl control) {
        super(control);
    }

    @Override
    public TitleBar getTitleBarKind (Dockable dockable) {
        if (dockable.getDockParent() instanceof SplitDockStation) {
            return TitleBar.NONE;
        }

        return super.getTitleBarKind(dockable);
    }

}
  Mit Zitat antworten
Alt 20.07.2010, 21:10   #12
Beni
Moderator
 
Benutzerbild von Beni
 
Registriert seit: 27.08.2006
Beiträge: 571
Beni befindet sich auf einem aufstrebenden Ast
Beni eine Nachricht über Skype™ schicken
Standard Re: Single dockable in a StackableDockStation

Hehe, this "does not a lot" is the cause of the problem. "TitleBar.NONE" means "no decorations at all", and thus no tab at all. This EclipseThemeConnector just overriddes your attempt to make the tab visible. The only way to get the tab is if you return "TitleBar.ECLIPSE", unfortunatelly this means the border is back.

If you don't want the border, you'll have to implement a "TabPainter". Copy the code of "ArchGradientPainter.FACTORY" and make sure the method "getFullBorder" returns null. You then can install your new TabPainter using the property-key "EclipseTheme.TAB_PAINTER".
__________________

Geändert von Beni (20.07.2010 um 21:17 Uhr).
Beni ist offline   Mit Zitat antworten
Alt 20.07.2010, 23:38   #13
Unregistriert
Gast
 
Beiträge: n/a
Standard AW: Single dockable in a StackableDockStation

hehe

After removing the EclipseThemeConnector I still got a white border around the CWorkingArea. I followed your answer in http://forum.byte-welt.de/showthread.php?t=2780 to remove it.

thx a lot!
  Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
-


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche

Forumregeln
Es ist Ihnen erlaubt, neue Themen zu verfassen.
Es ist Ihnen erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Maximize an externalized dockable Peter DockingFrames 5 05.01.2009 21:41
Location of a closed dockable Peter DockingFrames 4 02.11.2008 18:21
[Erledigt] Moving external dockable Unregistered DockingFrames 1 03.09.2008 16:25
Cannot close dockable which appears before focused dockable Parag DockingFrames 1 14.08.2008 20:38
[Erledigt] Dockable sizes and dockable closing in common API Michal Krause DockingFrames 11 27.07.2008 14:07


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:04 Uhr.


Powered by vBulletin® Version 3.8.2 (Deutsch)
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.