GoDiagram Web Reference
CreateBackground Method (GoButton)
Example 

Make the background rectangle for the button.
Syntax
'Declaration
 
Protected Overridable Function CreateBackground() As GoObject
protected virtual GoObject CreateBackground()

Return Value

By default this returns a GoRectangle
Remarks
This is called by the constructor.
Example
If you override this method, you may want the definition to do some of the things that the standard definition does:
protected virtual GoObject CreateBackground() {
  GoRectangle r = new GoRectangle();
  r.Selectable = false;
  r.Pen = null;
  r.Brush = GoShape.SystemBrushes_Control;
  return r;
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoButton Class
GoButton Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback