Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - Skin Problem with Title Bar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Skin Problem with Title Bar

 Post Reply Post Reply
Author
Message
faizullah View Drop Down
Newbie
Newbie


Joined: 31 July 2007
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote faizullah Quote  Post ReplyReply Direct Link To This Post Topic: Skin Problem with Title Bar
    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.
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post 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")
Back to Top
faizullah View Drop Down
Newbie
Newbie


Joined: 31 July 2007
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote faizullah Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.