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 Tech Support » Create dynamic control bar Collapse All
Subject Author Date
claude laflamme Jun 3, 2005 - 2:31 PM

I’ve posted that question but it doesn’t appear on the web. So I post it again.


I want to create dynamic control bars. I mean by pressing on a button for example and adding a new bar in my frame. I’m trying to do so but it fall in a dead loop when calling the Create method. If the customization subsystem can create dynamic toolbar, it should be possible?


Tanks to answer as fast!

Technical Support Jun 4, 2005 - 10:02 AM

The customization subsystem has nothing to do with resizable control bars, but it actually allows the application users to create user-defined toolbars dynamically at run time. But you need to dynamically create control bars (e.g, by clicking a button in you application as you mentioned). Although this can be done with ordinary resizable control bars (the CExtResiazable class), we recommend you pay attention to dynamic resizable control bars announced in Prof-UIS 2.31. These control bars are based on the CExtDynamicControlBar class and managed by the dynamic bar site implemented in the CExtDynamicBarSite class. We are working on the article and documentation on these classes right now (will be available in the Prof-UIS 2.40 major release soon) so please take a look at the SDI_DynamicBars and MDI_DynamicBars samples. They demonstrate how to allocate and initialize new fully dynamic control bars with the CExtDynamicBarSite::BarAlloc() method. New bars are very convenient because the dynamic bar site automatically allocates and manages commands corresponding to these dynamic control bars. These control bars are fully serializable. The feature that may also interest you deals with that the dynamic bars support the floating state inside the MDI client area and they can be injected into the tab page container based child view in MDI/SDI applications.