BCGControlBar Library for .NET
BCGSoft.Shared Namespace
Inheritance Hierarchy
Classes
 ClassDescription
ClassBCGMath  
ClassCollectionWithEvents

Inherits CollectionBase class of the System.Collection namespace.

Represents a collection of the objects, for which can be raised events ItemPropertyChanged and for collection – CollectionChanged. Serves as a base class for  ToolBarButtonCollection, MDIContainerCollection, CommandBarCollection, StatusBarPaneCollection.

ClassCommonStateSerializer This class is used internally to serialize common control state to/from stream.
ClassControlRendererParams This class is used internally.
ClassDrawManager Represents a set of functions which make it possible to Highlight, fill by gradient or draw shadow for any graphic. The class has some static members, which let to mix colors, to change the opacity,  translate colors   from RGB, HLS and so on.
ClassGlobalNotifier Lets to fire events on changing Visual Manager of the control and  changing large icon mode. The instance of the GlobalNotifier for changing Visual Manager is used in classes CommandBar,  CommandManager, DockingPane, MDIContainer, ToolbarButton;  for changing  LargeIconMode -  in classes DockBarRow, Toolbar.
ClassGlobalSettings

 

   The GlobalSettings class represents a set of static properties specific for the environment of the application.
Public member SerializationCulture specifies current culture info, which provides information about a specific culture, such as the names of the culture, the writing system, the calendar used, and how to format dates and sort strings. This culture info is used on serialization. Its default value is "en_US".  Integer variable BitsPerPixel  identifies the color depth of current color scheme. The default value is 16. The tracking during dragging of the frame defines such variables as DragFrameThicknessFloat, DragFrameThiknessDock. InitComplete indicates if the initialization of the application is complete. The default value is true.  UseLowColorImages variable specifies if the low color images will be used. The default  value is false.

ClassGlobalUtils

 

The Global Utils class represents a set of static function specific for working with command bars and docking bars. Function AlignRectToRect, AlignRectToRectInner, AlignRectToRectOuter,  ExcludeRectangle  specify the bounds of the rectangle to which a control should be docked according to current bounds of the docking pane, its dockstyle.  For specification of the current DockEdge and DockStyle used such functions as IndexToDockEdge, DockStyleFromDockEdge, DockEdgeFromDockStyle, GetOppositeEdge, EdgeFromHitTest. The function IsPointNearEdge defines the proximitity of the current point to the docking edge. SendNCMessage, ForwardMouseMessage function posts the messages on mouse events to the top-level control.

Function CopyBitmapToClipboard returns a copy of the specified bitmap with certain transparency. Function IsInstanceOfType indicates if the object has a specified type. Function AdjustRectToWorkingArea allows to put the bounds of any control into the bounds of the screen that can be used by applications. In ControlBar.NET this function is used for location of  the popup menus on the area of the  screen. ReadColorValue function allows to get a string value of color from the XML node and translate it to the System.Drawing.Color and for translation a function  StringToColor is used. For reading variable of types System.Drawing.Size,   System.Drawing.Rectangle, System.Windows.Forms.Padding functions StringToSize, StringToRect, StringToPadding are used.          

ClassGlobalVisualData

Provides information about the current system fonts, brushes and  colors of a Window display element. Method UpdateSysColors allows to retrieve the current values of system colors  and brushes to the public variables of the GlobalData class.  Method UpdateFonts allows to retrieve the current values of system fonts to the public font variable. UpdateTextMetrics calculates the current height of the text.

ClassGlobalVisualSettings

Provides information about the current settings for the command bars and dockbars.
Static property UseLargeIcons indicates whether Large icons mode is set. Borders and margins for the AutoHide button are specified by the public variables AutoHideTextLeftMargin, AutoHideTextRightMargin, AutoHideBorderWidth, AutoHideVertMargin, AutoHideLeftMargin, AutoHideRightMargin, which used to define the size of the Autohide button. The size of menu buttons, toolbar buttons and images located on them are defined by  static variables MenuButtonSize, MenuImageSize, ToolbarButtonSize, ToolbarLargeButtonSize, ToolbarImageSize, ToolbarLargeImageSize. This value you can get by the functions GetMenuImageSize, GetMenuButtonSize, GetButtonSize, GetImageSize.

ClassImageListEx Image container internally used by the library.
ClassInternalImages

Represents different types of the images on the toolbars and captions, draws and makes them of different colors.

ClassLocaleChangedEventArgs Provides data for LocaleChanged event. This event is raised when localization data for application are changed.
ClassMessageFilter

Implements interface IMessage from Windows.System.Forms namespace.
Has an ability to selectively handle incoming and outgoing messages while waiting for responses from synchronous calls, filter them.

ClassObjectName

Represents a set of static string variables which specify the types of the ControlBars objects.

ClassStatusBarPaneData Implements interface ICloneable. Represents a set of settings for StatusBarPane and lets to create a shallow copy of this class.  We can get an access to this class using GetPaneData method of the StatusBarPaneInfo class.
Interfaces
 InterfaceDescription
InterfaceIActiveContainer  
InterfaceIFirstPriorityMessageFilter You can implement this interface for any object, which implements the IMessageFilter interface, in order to place this object first in the chain of objects that prefilter messages.
InterfaceIPendingVisibleState  
InterfaceISupportCmdUI All command objects that support updating state (user interface) at the idle time should implement this interface.
InterfaceISupportCustomLayout  
Structures
 StructureDescription
StructureCommandObjectParams This strcuture is used to describe a command object for GlobalVisualSettings methods, which return object size according to the provided description.
Delegates
 DelegateDescription
DelegateCollectionChangedHandler

Represents the method that will handle the CollectionChanged event raised when an item is added or removed from collection.

DelegateLocaleChangedEventHandler Represents the method that will handle the LocaleChanged event raised when the xml-file with locale settings is changed.
DelegatePropertyChangedHandler

Represents the method that will handle the ItemPropertyChanged event raised when a property is changed on an item of the collection.

Enumerations
 EnumerationDescription
EnumerationBCGHitTest

Retrieves the area of the command bar  at the specified screen coordinates.

EnumerationButtonState

Specifies the appearance of the button.

EnumerationDockEdge

Indicates the docking position for a toolbar or docking pane.

EnumerationIMAGE_STATE Used for identification of the color for drawing internal button images. It depends on the current state of the button (Checked, highlighted and so on).
EnumerationImageAlignHorz Specifies the alignment of images within ImageListEx across.
EnumerationImageAlignVert Specifies the alignment of images within ImageListEx vertically.
EnumerationImageEditMode Defines the current drawing mode in image editor.
EnumerationIMAGES_IDS

Defines the image on the standard buttons. Used for drawing an image on the caption button, a tick on the checked button, arrows on the menu buttons and other.

EnumerationLayoutType

The LayoutType enumeration is used to define a type of the layout of the control. 

EnumerationMdiClientBorderStyle

Specifies the style of the border of MDI client area. The value of this type can be get and  set by the property BorderStyle of the MDIClientArea class. The default value is VisualStudio.

EnumerationPendingVisibleState  
EnumerationPopupMenuResizeType Specifies the available way of resizing the popup menu.
EnumerationRibbonContextCategoryColor Specifies color of context categories of the Ribbon Control.
EnumerationTabStripStyle

Defines the style of tabs on the tabstrip control.

EnumerationToolBarButtonMode

Depends on the parent control of the toolbar button. The ToolbarbuttonMode we can get by the property ButtonMode of the toolbar.  

See Also

Reference

BCGSoft.Shared Assembly

Send Feedback