Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > .NET WinForms > General Discussion
  New Posts New Posts RSS Feed - SkinFrameWork with .NET
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SkinFrameWork with .NET

 Post Reply Post Reply
Author
Message
ElvisM View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 October 2006
Location: Venezuela
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote ElvisM Quote  Post ReplyReply Direct Link To This Post Topic: SkinFrameWork with .NET
    Posted: 27 May 2016 at 11:05am
Dear all.
Iam so new in codejock and .NET.
Iam tryig SkinFrameWork, I am coding like Visual Basic 6, I mean I put the SK control intothe MDI form and wrote the next 4 lines

AxSkinFrameWork1.LoadSkin(SkinFolder,"")
AxSkinFrameWork1.ApplyWindow(Me.Handle.ToInt32)
AxSkinFrameWork1.ApplyOptions = AxSkinFrameWork1.ApplyOptions or XtremeSkinFramework.SkinFrameWorkApplyOptions.xtpSkinApplyMetrics
AxSkinFrameWork1..AutoApplyNewwindows= true


The program works fine for MDI form, but MDI child...

the only way that I have found to correct that in execute the line AxSkinFrameWork1.ApplyWindow(MDIChild.Handle.ToInt32) for every MDIChlid that I want to execute, porblem here is "a kind of annoying flicker" in the MDIChild (slowly you can see the form without sking, 1 second after, the form is skinned).

I reviewd the NET samples for MDI forms, and these programs dont use the SkinFrameWork ActiveX control, they are using class, however the flicker effect in the same... 

In Visual Basic 6 it was not happens...

Is there a trick to fix this effect?

Thanks in advance.

Best regards
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits
Language: Visual Basic 2015
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 27 May 2016 at 12:00pm
Hello ElvisM,

Did you try last version of library v17.2 ?
We did some optimization in SkinFramework. Also added HighDPI support.

Regards,
 Oleksandr Lebed
Back to Top
ElvisM View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 October 2006
Location: Venezuela
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote ElvisM Quote  Post ReplyReply Direct Link To This Post Posted: 27 May 2016 at 12:46pm
Hello Olebed, thanks for your answer.
Let me download the 17.2 version.

But, with the version 17.2 can I continue using the SkinFrameWork Activex in .NET instead classes?
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits
Language: Visual Basic 2015
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 27 May 2016 at 1:19pm
SkinManager is just class helper to show many skins in one application with different settings. Of course you can use SkinFramework without SkinManager.
Back to Top
ElvisM View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 October 2006
Location: Venezuela
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote ElvisM Quote  Post ReplyReply Direct Link To This Post Posted: 27 May 2016 at 11:31pm
I have just installed the version 17.2 (trial) and It seems that I LOST all my designs. This is the second time that it happens, first I have to construct all my forms Cry
I changed into then file .vproj (16 to 17) and (3 to 2), however this apperars in Visual Basic NET

What do I have to do???
I would heat to re-design all the forms... Angry




Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits
Language: Visual Basic 2015
Back to Top
ElvisM View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 October 2006
Location: Venezuela
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote ElvisM Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 2016 at 12:00am
I have just solved the last problem (upgrading codejock versions from 16.3 to 17.2)

Regarding the "skin flicker effect" it continues

My question is:

if the AutoApplyNewWindows property is set to true

...
AxSkinFramework1.AutoApplyNewWindows = True
...

Why the mdichilds dont take the same skin?

To "solve" this I have to set the skin manually to every mdichild after form show method, and this action provoke a horrible effect, because the form is showed with the default windows skin and 0.5 second after, the skin is set...

Is there any tip or hint please???


Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits
Language: Visual Basic 2015
Back to Top
ElvisM View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 October 2006
Location: Venezuela
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote ElvisM Quote  Post ReplyReply Direct Link To This Post Posted: 29 May 2016 at 11:20am
Any suggestion?
Please...
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits
Language: Visual Basic 2015
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 29 May 2016 at 1:45pm
Sorry, I'm not familiar with VB.NET.
It is may be situation described in documentation of SkinFramework Control:

There are some situations where a control will not be able to automatically be skinned as the parent control might not support seamless background texturing.  In these cases the EnableThemeDialogTexture method can be used to apply the skin texture to the child control.

Also try change call sequence
AxSkinFrameWork1.LoadSkin(SkinFolder,"")
AxSkinFrameWork1.ApplyWindow(Me.Handle.ToInt32)
to
AxSkinFrameWork1.ApplyWindow(Me.Handle.ToInt32)
AxSkinFrameWork1.LoadSkin(SkinFolder,"")
Back to Top
ElvisM View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 October 2006
Location: Venezuela
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote ElvisM Quote  Post ReplyReply Direct Link To This Post Posted: 05 June 2016 at 12:32pm
Thanks Olebed.

The secondary control is a simple MDIChid form, no more. However, it is not able that inheit the skin by itself. I have seen that in your code samples everytime that you use the show() method for MDIChild form you are using the ApplyWindow method, and this action provoke the flicker effect. All skin samples that come with your product have the same issue.

I guess that there is a normal behavior when you use skin for VB.NET, because in VB 6 it works fine.
Sadly, I will have that remove the skin control for my project because this flicker effect is not a good feature for my program.

Best regards, 



Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits
Language: Visual Basic 2015
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.189 seconds.