StyleController

Gets or sets the SGBEditStyleController used to paint this control.

Syntax
c#
public virtual SGBEditStyleController StyleController { get; set; }

Property Value
Type: SGBControls.Editors.SGBEditStyleController
Default Value: none

Remarks
The StyleController property is used to get or set the SGBEditStyleController used to paint this control. The SGBEditStyleController allows you define the way the control looks when it has focus and when it does not have the focus.

Examples

c#
private SGBEditStyleController styleController = new SGBEditStyleController();
//Set the style controller for an SGBListBox
public void SetStyleController(SGBListBox control)
{
    if(control != null)
       control.StyleController = styleController;
}

vb.net
Private styleController As New SGBEditStyleController() 
' Set the style controller for an SGBListBox
Public Sub SetStyleController(ByVal control As SGBListBox) 
    If control IsNot Nothing Then 
        control.StyleController = styleController 
    End If 
End Sub 

Known Issues
In order for the control to use the SelectedItemForeColor property effectively the control must have the DrawMode set to OwnerDrawFixed, otherwise this property is ignored. This issue will hopefully be fixed in a future version of the control.

Last edited Mar 29, 2010 at 12:53 PM by scottgblood, version 1

Comments

No comments yet.