Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Newbie: Docking Window Buttons Collapse All
Subject Author Date
The Obliterator Jan 26, 2004 - 11:54 AM

I’m very new to the library and just wondering how customisable / extendable it is.


For example how easy is to add additional buttons to the title bar of docking windows. I would like to add a full screen button which resizes that particular docking to fill the entire screen. Or is such functionality already inbuilt?


Also, I would like to control where the title bar of docked windows appear. My requirements are to have many docked windows each below the other. I would like to have the title bars of each drawn vertically down the left rather than horizontally along the top. This would free up much screen real-estate for my layouts. How feasible is such a change?


Thanks


 

Technical Support Jan 27, 2004 - 9:25 AM

Hello,

To add additional buttons to the docking window’s title bar, please override the ExtControlBar::OnNcAreaButtonsReinitialize() virtual method (as it is done in the ExtControlBar.cpp file) and then insert your custom buttons. Each button is not a window (or a button control). It is an instance of the CExtBarNcAreaButton class, which is not based on HWND window. Take a look at how it is done in the FixedSizePanels sample (<= and => buttons inside bar’s captions).

Please provide us with more details on the full-screen state of the bar. We are not sure that we are talking about the same. We assume the full-screen state may be only applied to the main frame window (not to the resizable bar). You can see how it is implemented in the FullScreenState sample. In any case, you can rely on our help.