Print Page | Close Window

Syntax for ApplyOptions, order of calls

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=13796
Printed Date: 21 December 2024 at 10:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Syntax for ApplyOptions, order of calls
Posted By: iamgtd
Subject: Syntax for ApplyOptions, order of calls
Date Posted: 25 March 2009 at 8:14am

Question 1):

What is the correct syntax for ApplyOptions?

SkinFramework.ApplyOptions = xtpSkinApplyColors Or xtpSkinApplyFrame Or xtpSkinApplyMetrics

or

SkinFramework.ApplyOptions = xtpSkinApplyColors + xtpSkinApplyFrame + xtpSkinApplyMetrics

or

SkinFramework.ApplyOptions = SkinFramework.ApplyOptions OR xtpSkinApplyColors Or xtpSkinApplyFrame Or xtpSkinApplyMetrics

 
 
Question 2)
 
    Is it important to keep this order of the methods?
 
    SkinFramework.LoadSkin App.Path + "..\..\..\Styles\Office2007.cjstyles", ""
    SkinFramework.ApplyWindow Me.hWnd
    SkinFramework.ApplyOptions = xtpSkinApplyMetrics
   
 
 
 
 



Replies:
Posted By: Oleg
Date Posted: 26 March 2009 at 2:59am
Hi,
Just don't set ApplyOptions :) They have all options enabled by default.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: iamgtd
Date Posted: 26 March 2009 at 3:21am

Hi Oleg,

I need to set the SkinFramework.ApplyOptions for two reasons:

1.) Default settings in our programs depending on the operation system.
2.) Userdefinded Settings

In the FormLoad: 

  bReturn = SkinFramework.LoadSkin(gSkinFileName, gSkinSchema)

  SkinFramework.ApplyWindow Me.hWnd
  SkinFramework.AutoApplyNewThreads = True
  SkinFramework.AutoApplyNewWindows = True

 If XP Or earlier Or userdefined Then
    SkinFramework.ApplyOptions = xtpSkinApplyMetrics Or xtpSkinApplyMenus Or xtpSkinApplyColors Or xtpSkinApplyFrame
  Else
    SkinFramework.ApplyOptions = xtpSkinApplyMetrics Or xtpSkinApplyMenus Or xtpSkinApplyColors
  End If

If the program is running and I want to change settings is it enough to set only the changend option or is it better to do the same as in the FormLoad?




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