How to set preference for common

Hi,

In my app, I use common, There is a DefaultSingleCDockable which stays minimized.
When a window is minimized, the icon, text and button is visible.
We can set it to show text and icon only. But i don’t know how.

Can you please post a sample to show how to do that?
I guess through CPreferenceModel. But not able to figure out how to use that.

Thanks,
Bhavin

If you want to set it directly by your program:

		control.putProperty( FlapDockStation.BUTTON_CONTENT, FlapDockStation.ButtonContent.ICON_AND_TEXT_ONLY ) );```

The CPreferenceModel is intended for the user, there is a special dialog which shows the preference model. On this dialog the user can select the options (how the minimized dockables are presented is one of many options). There is some example code in the [guide to Common](http://dock.javaforge.com/dockingFrames_v1.0.7/common.pdf), chapter 7.5 on page 25.

This doesn’t seem to work… :frowning:
After setting the property still icon, text, button is displayed for the minimized window.

Can you point me in some direction where the problem might be?

Since I saw this working many times: are you accessing the correct object, not creating the CControl twice?

It seems to be working now. It is strange though, I had set the property just after creating the CControl that was not working, but then after your last post I moved it down after creating the working area and it started working. Not sure why.

Also, there is no any documentation for the list of properties that can be set.
If there is can you point me?

In the core guide chapter 10, pages 43-47, in the guide to common appendix A, pages 33+34. Or check the usage of PropertyKey.