Print Page | Close Window

Skin Problem with Title Bar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=15111
Printed Date: 16 November 2024 at 5:51pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Skin Problem with Title Bar
Posted By: faizullah
Subject: Skin Problem with Title Bar
Date Posted: 03 September 2009 at 10:35am

We are using Crystal Report Print Engine to show crystal report in our application. When crystal report window shows up, title bar disappeared immediately after user moves the mouse button on it. Now I can fix this by .RemoveWindow(Hwnd) but inside that report window, there is one "Print" button which brings the Printer Dialog also has the same problem. I don't have the Hwnd for Printer Dialog button. Now I can use .AutoApplyNewWindows =False to fix the problem, but if I do this, other windows in my application does not get skinned which is a problem. Is there any way to stop skinning Only for one window and any child windows of that window? I could use sub classing, but I don't know what msg to capture to stop the skin.

Any help will be greatly appreciated.
 
We are using SkinFramework 13.1 version.



Replies:
Posted By: Baldur
Date Posted: 05 September 2009 at 9:34am
I do the same thing with an other embedded application and i provide 2 functions:
 
Public Sub SuspendSkinning()
    With MyMainForm.SkinFramework
        .ApplyOptions = 0
        .AutoApplyNewThreads = False
        .AutoApplyNewWindows = False
    End With
End Sub
Public Sub ResumeSkinning()
        With MyMainForm.SkinFramework
            .ApplyOptions = xtpSkinApplyColors Or xtpSkinApplyFrame Or xtpSkinApplyMetrics
            .AutoApplyNewThreads = True
            .AutoApplyNewWindows = True
        End With
End Sub
Before i call the application i call SuspendSkinning and if the application ends i call ResumeSkinning.
This works for me.
 
During callbacks i add my own forms for skinning with SkinFramework.ApplyWindow(MyForm.hWnd).
 
I have tried also the following, but this seams not to work:
SkinFramework.ExcludeModule("foreign.dll")


Posted By: faizullah
Date Posted: 08 September 2009 at 12:50pm

This approches does not work for our scenarios as I explained in my problem description. Since we show the crystal report window as non-modal window, users are able to open other window while report window is open, so new window will NOT get skinned until user close report window.



Posted By: joeliner
Date Posted: 10 September 2009 at 10:55am
what version of crystal?

-------------
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3
Language: Visual Basic 6 SP6


Posted By: Baldur
Date Posted: 10 September 2009 at 11:04am

Than you can explizitly skin your forms by Skinframework.ApplyWindow in each form in Form_Load-Event.

If you want to skin some commondialogs like Open/Save than use ResumeSkinning before call and SuspendSkinning after call.



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