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 » CExtPageNavigatorWnd gradient title Collapse All
Subject Author Date
Michael Lediaeff Oct 31, 2005 - 12:56 PM

Hello!

1. I am evaluating Prof-UIS library and I need to know - is there any way to draw gradient title (like title of CExtPageNavigatorWnd on the top of the control) in the another place - I just need to fraw the same title with the same color and font in another window. Is that possible to do that using Prof-UIS - or I need to write own static control? In this case - where should I get used gradient colors for current theme and what gradient function should I use?

2. Is there any possibility to use Prof-UIS buttons (CExtButton I think?) in transparent mode? I need to place such button to a gradient area - and this button should be transparent (without borders)..

Technical Support Oct 31, 2005 - 1:59 PM

Thank you for your interest in Professional User Interface Suite. Yes, it is possible to draw the Page Navigator like gradient caption. Most of the components are drawn by the globally available Paint Manager component. Using this or that method of the Paint Manager, you can draw parts of your UI exactly like parts of Prof-UIS components. Please invoke the following code to paint the gradient caption:

CDC & dc  = . . .
CRect rcCaption = . . .
    g_PaintManager->PaintPageNavigatorItemPaneCaption(
        dc, rcCaption, _T("Caption Text") );
This method draws the gradient effect if the Office 2003 or Visual Studio 2005 theme is installed:
g_PaintManager.InstallPaintManager(
        RUNTIME_CLASS( CExtPaintManagerOffice2003 )
        );
The flat push buttons have an absolutely transparent look in all the UI themes. You can take a look at them in theProfUIS_Controls sample which allows you to switch the button appearance on-the-fly. If you need something else, then please let us know.