StaticRectangle

 

class StaticRectangle : public Ctrl

 

As seen in layout designer:

 

 

As seen in program:

 

 

StaticRectangle shows a rectangle. All the rectangle, including border width, is inside Ctrl limits.

 

 

Constructor Detail


 

StaticRectangle()

Initializes StaticRectangle.

 

 

Public Member List

 

StaticRectangle& SetWidth(int w)

Sets the rectangle width w in pixels.

 


 

StaticRectangle& SetColor(Color c)

Sets the rectangle border color c.

 


 

StaticRectangle& SetBackground(Color c)

Sets the rectangle background color c.

 


 

StaticRectangle& IsSquare(bool is = false)

If is.is true it maintains the shape as an square by fixing the height to the width.