Minimize the whole working area

Hi,

Recently I am working on a project that using this wonderful docking framework.

Let’s get the paint demo project as example. Instead of having a minimize action for each PictureDockable, I would like to have one to minimize the whole workingarea. Any way I can do it ?

Thanks for advice,
Adam :slight_smile:

Hm, make a subclass of CWorkingArea, call „setTitleShown(true)“ and override the method „isMinimizeable“ (it should return true). This way a new title with one „minimize“ button will appear. You may also override „getTitleText/Icon“ to write something in that title.

Actually I’ve never tried all of that, but it should work. :slight_smile:

Just some update to this issue.

I try the way you recommand and it work except the Eclipse theme. I can’t even find a way to make the station title shown. haha.

Thanks and Best Regards,
Adam;P

Ok, I’ll write you some code during the weekend.

You need to tell the EclipseTheme to handle the working-area specially. Extending and modifying the CommonEclipseThemeConnector will do the trick. The code below handles any CDockable that is also a CStation and makes a title-tab visible if the dockable/station has “isTitleShown” set to true.


				control.putProperty(EclipseTheme.THEME_CONNECTOR, new CommonEclipseThemeConnector(control){
					@Override
					public TitleBar getTitleBarKind( Dockable dockable ){
						if( dockable instanceof CommonDockable ) {
							if( ((CommonDockable) dockable).getStation() != null ) {
								CDockable cdock = ((CommonDockable) dockable).getDockable();
								if( cdock.isTitleShown() ) {
									return TitleBar.ECLIPSE;
								}
							}
						}
						return super.getTitleBarKind(dockable);
					}
				});```

Yeah~It works~You are genius!

Cheers,
Adam:D