[SOLVED] Losing Skin after Modal |
Post Reply |
Author | |
Biox
Groupie Joined: 14 September 2009 Status: Offline Points: 17 |
Post Options
Thanks(0)
Posted: 07 September 2010 at 8:24am |
Appreciate if you could assist with this as I cannot seem to find a solution.
SkinFramework.LoadSkin App.Path + "\styles\Office2007.cjstyles", "" SkinFramework.ApplyWindow Me.hWnd I use the above starting the VB app. Then I display a Form frmExportEmergencyInfo.Show vbModal and that is skinned Ok. However, when I close that, the main app loses it's skinning and just displays a normal looking VB form. I'm stumped and I cannot find any CodeJock code examples which I feel is odd. There doesn't seem to be much by way of real world examples for SkinFramework. thanks |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi
You only need one instance of Skinframework for whole application. Don't put additional control to Dialog - it should be on main application window only. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Biox
Groupie Joined: 14 September 2009 Status: Offline Points: 17 |
Post Options
Thanks(0)
|
Thanks for the reply Oleg,
However when I do so, and then close the Modal that I have opened, I lose the skinning on the original MDIForm. |
|
Xander75
Senior Member Joined: 26 April 2007 Status: Offline Points: 353 |
Post Options
Thanks(0)
|
As Oleg ssuggests you only need one SkinFramework control in your project, you need to use ".ApplyOptions" to set this to skin any form that opens from the main form.
Try using the following code in your main form:
PS. The reason for the ExcludeModule codes is that I have experienced crashes with the SkinFramework control when working with Databases under certain circumstances. This resolves the issues I have had, although I do only need .ExcludeModule "msado15.dll". |
|
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6) |
|
Biox
Groupie Joined: 14 September 2009 Status: Offline Points: 17 |
Post Options
Thanks(0)
|
Thank you for the feedback Xander, appreciated.
That worked perfectly, and the screens are displaying faster now also. What I have been using is the following, in a couple of apps, with varying results and performance. SkinFramework.LoadSkin App.Path + "\styles\Office2007.cjstyles", "" SkinFramework.ApplyWindow Me.hWnd SkinFramework.ApplyOptions = SkinFramework.ApplyOptions Or xtpSkinApplyMetrics One more question if you don't mind. I have a couple of modals that I display and I want to have a different colour Form so the modal can be readily seen in contract to the larger main form. Would really appreciate if you could clue me in as to what lines of code I need to add to the Modal Form to just have that altered, and do I then need to reload the original style for the main form again when I go back to it ? For example lets say I just want the modal popup screen to be App.Path + "\Styles\Office2007.cjstyles", "NORMALAQUA.INI" I've tried fiddling here but cannot get it working. thanks in advance |
|
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 |