Skin Problem with Title Bar |
Post Reply |
Author | |
faizullah
Newbie Joined: 31 July 2007 Status: Offline Points: 8 |
Post Options
Thanks(0)
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.
|
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
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")
|
|
faizullah
Newbie Joined: 31 July 2007 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
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. |
|
joeliner
Senior Member Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
|
what version of crystal?
|
|
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3 Language: Visual Basic 6 SP6 |
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |