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 » How to offer 3 options with docking markers: new-style/old-style/disabled? Collapse All
Subject Author Date
Dave Kymlicka Jul 25, 2007 - 2:20 PM

When upgrading to ProfUIS v.280 from v2.33, we notice the upgrade in docking markers: from "triangle arrows", to square windows (with arrows inside), ala VS2005.

Is there a way, at runtime, to be able to switch between all the docking marker styles? We would like to offer our customers the follwing options:
1) disabled (= no docking markers)
2) old-style "triangle" docking markers, as they were in ProfUIS v2.33
3) new style, as we see in ProfUIS v2.80

To explain better using code sample, how could you complete the case for "DOCKING_MARKER_VS2005" ??

    switch(eDockingMarkerStyle)
    {

    case DOCKING_MARKER_VS2005:
        // ???? How would you enable these ????
        break;


    case DOCKING_MARKER_TRIANGLE:
        CExtControlBar::g_eResizablePanelDockingType =
            CExtControlBar::__RESIZABLE_DOCKING_TYPE_STUDIO_2005;
        break;



    case DOCKING_MARKER_DISABLED:   
	//fall-through

    default:
        // disable docking markers
        CExtControlBar::g_eResizablePanelDockingType =
            CExtControlBar::__RESIZABLE_DOCKING_TYPE_STUDIO_2003;
        break;
    }



Examining "\Include\ExtControlBar.h" shows that there isn’t another type declared for these new style markers :-(

    enum eResizablePanelDockingType_t
    {
        __RESIZABLE_DOCKING_TYPE_BY_THEME = -1,
        __RESIZABLE_DOCKING_TYPE_STUDIO_2003 = 0,
        __RESIZABLE_DOCKING_TYPE_STUDIO_2005 = 1,
        __RESIZABLE_DOCKING_TYPE_MIN_VALUE = 0,
        __RESIZABLE_DOCKING_TYPE_MAX_VALUE = 1,
    };


Do you have any suggestions how we can offer all 3 options?

With thanks,

David Kymlicka

Dave Kymlicka Jul 26, 2007 - 10:16 AM

That’s exactly what I was looking for, and works great. :-)

Thanks!

Technical Support Jul 26, 2007 - 5:58 AM

The following FAQ article seems to be what you are looking for:

How to switch between Microsoft Visual Studio Beta 1 and Beta 2 GUI themes supported by Prof-UIS?