Print Page | Close Window

Skinning of a PropertySheet

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9615
Printed Date: 16 July 2025 at 9:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Skinning of a PropertySheet
Posted By: Mantus
Subject: Skinning of a PropertySheet
Date Posted: 18 February 2008 at 9:06am
Hello,
I've got a PropertyPage (CPropertyPage) with several PropertySheets und a Menu (CMenu)  The PropertyPage is called directly within the InitInstance Method of the Application, therefore no MainFrame Class in the App.

I've tried the to skin the application with the Office2007  Skin but on different ways but wasn't fully successful.
If i place the LoadSkin call in the Constructor of the CPropertyPage derived class or in the InitInstance of the CWinApp derived class, the whole Window including frame is skinned but the menu isn't visible at program start. It appears in the upper left corner of the program frame if i hover over it and destroys the layout.

If i place the LoadSkin call in the InitDialog of the CPropertyPage derived class, the Menu is shown correctly but only the PropertySheets are skinned, not the PropertyPage and the program frame.

So the first approach seems to be more promising but what can i do to make the menu fully visible at the right place.

Best Regards
   



Replies:
Posted By: Oleg
Date Posted: 18 February 2008 at 9:51am
Hello,
 
Its right. SkinFramework doesn't support Application menus.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Mantus
Date Posted: 18 February 2008 at 11:21am
Hi Oleg,

is there another way to draw a correct Menu in a PropertySheet and Skin/Theme it? Actually it's done with

void CMVPropertySheet::CreateMenu()
{

    pMainMenu = new CMenu();
    pMainMenu->LoadMenu(IDR_MENU1);
    SetMenu(pMainMenu);


}

and called within the InitInstance Method.

Best Regards


Posted By: Oleg
Date Posted: 18 February 2008 at 2:41pm
Hello,
 
Sorry, only one way - use Our CommandBars with MenuBar.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net