Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - Syntax for ApplyOptions, order of calls
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Syntax for ApplyOptions, order of calls

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

Joined: 25 February 2009
Status: Offline
Points: 131
Post Options Post Options   Thanks (0) Thanks(0)   Quote iamgtd Quote  Post ReplyReply Direct Link To This Post Topic: Syntax for ApplyOptions, order of calls
    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
   
 
 
 
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
iamgtd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 February 2009
Status: Offline
Points: 131
Post Options Post Options   Thanks (0) Thanks(0)   Quote iamgtd Quote  Post ReplyReply Direct Link To This Post 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?

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.250 seconds.