Namespace: Consultingwerk.Util
Class 
StyleLibraryHelper Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:StyleLibraryHelper
Purpose:Supporting routines for working with Infragistics Style
Libraries (.isl files)
Syntax:Static methods only, Protected constructor to disallow
instance creation
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Thu Feb 03 11:59:03 CET 2011
Notes:Allows synchronization of the Progress COLOR-TABLE entries
with the current loaded Infragistics AppStyle (AppStylist)
This file is intended for GUI for .NET only



Top Method Summary
Options Name Purpose
+ Infragistics.Win.AppearanceBase GetAppearance (character, RoleState) Returns the Appearance object from the current style library for the passed in UI role and state for the Default StyleSet
+ Infragistics.Win.AppearanceBase GetAppearance (character, RoleState, character) Returns the Appearance object from the current style library for the passed in UI role and state and the passed in StyleSet
+ System.Drawing.Color GetColor (character, RoleState, character) Returns the background color of an appearance object
+ LoadFromBlob (memptr) Loads a StyleLibrary from a MEM-PTR (BLOB)
+ LoadFromFile (character) Loads a StyleLibrary from a file
+ SetColorTable (integer, Color) Maps a Progress color table entry to a System.Drawing.Color reference
+ SetProgressColorTable () Dynamically sets WinKit reserved color table entries to colors from the AppStylist ISL file currently in use
+ SetProgressColorTable (integer, character, RoleState, character) Dynamically sets a color entry in the Progress color table to a color defined in the AppStylist .isl file
+ LOGICAL StyleSetNameExists (character) Return if the currently loaded Style Library contains a StyleSet with the given name

Top Constructor Summary
Options Name Purpose
# StyleLibraryHelper () Protected default constructor.


Method Detail
Top

PUBLIC Infragistics.Win.AppearanceBase GetAppearance (character, RoleState)

Purpose: Returns the Appearance object from the current style library for
the passed in UI role and state for the Default StyleSet
Notes:

Parameters:
pcUIRole CHARACTER
The UI role
pcUIState Infragistics.Win.AppStyling.RoleState
The RoleState
Returns Infragistics.Win.AppearanceBase
The style's appearance
Top

PUBLIC Infragistics.Win.AppearanceBase GetAppearance (character, RoleState, character)

Purpose: Returns the Appearance object from the current style library for
the passed in UI role and state and the passed in StyleSet
Notes: Pass in ? for the StyleSet to access the Default Styles

Parameters:
pcUIRole CHARACTER
The UI role
poUIState Infragistics.Win.AppStyling.RoleState
The RoleState
pcStyleSet CHARACTER
The style set name
Returns Infragistics.Win.AppearanceBase
The style's appearance
Top

PUBLIC System.Drawing.Color GetColor (character, RoleState, character)

Purpose: Returns the background color of an appearance object
Notes: Maps Infragistics (Office 2007) named colors

Parameters:
pcUIRole CHARACTER
The UI role
poUIState Infragistics.Win.AppStyling.RoleState
The RoleState
pcStyleSet CHARACTER
The style set name
Returns System.Drawing.Color
The background color of the style
Top

PUBLIC LoadFromBlob (memptr)

Purpose: Loads a StyleLibrary from a MEM-PTR (BLOB)
Notes: The caller is responsible for releasing the memory afterwards

Parameters:
pmPtr MEMPTR
The MEM-PTR pointing to the BLOB Data
Top

PUBLIC LoadFromFile (character)

Purpose: Loads a StyleLibrary from a file
Notes:

Parameters:
pcFileName CHARACTER
The file name (relative, propath or absolute) to load the style from
Top

PUBLIC SetColorTable (integer, Color)

Purpose: Maps a Progress color table entry to a System.Drawing.Color reference
Notes:

Parameters:
piColor INTEGER
The progress color table number
poColor System.Drawing.Color
The Color to assign to the Progress color table
Top

PUBLIC SetProgressColorTable ()

Purpose: Dynamically sets WinKit reserved color table entries to colors from
the AppStylist ISL file currently in use
Notes: Color 232: UltraPanel BGCOLOR
Color 233: EditorControl / Normal BGCOLOR
Color 234: EditorControl / ReadOnly BGCOLOR
Color 235: GridRow / Normal BGCOLOR
Color 236: GridColumnHeader / Normal BGCOLOR

Top

PUBLIC SetProgressColorTable (integer, character, RoleState, character)

Purpose: Dynamically sets a color entry in the Progress color table to a
color defined in the AppStylist .isl file
Notes: piColorNum: The Progress Color Table end to set
pcUIRole: The Role in the StyleSet
pcRoleState: The RoleState (Enum)
pcStyleSet: THe StyleSetName

Parameters:
piColorNum INTEGER
The Progress color table entry
pcUIRole CHARACTER
The UI role
poRoleState Infragistics.Win.AppStyling.RoleState
The RoleState
pcStyleSet CHARACTER
The style set name
Top

PUBLIC LOGICAL StyleSetNameExists (character)

Purpose: Return if the currently loaded Style Library contains a StyleSet with
the given name
Notes:

Parameters:
pcStyleSetName CHARACTER
The Styleset name to test for
Returns LOGICAL
Logical value indicating if the given StyleSet name exists


Constructor Detail
Top

PROTECTED StyleLibraryHelper ()

Purpose: Protected default constructor.
Notes: Disallow instance creation



©2006-2019 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.08.2019 23:57:52