| Methods Index |
CNotifierSubclasses: None
CGlue allows objects to have stickiness properties. When a view is resized a sticky object will, depending on its stickiness, stretch with the view or stay fixed by a constant distance from the view's borders.
CGlue is not a private class, it is used internally. Glue objects are created and destroyed internally. CGlue has been made public so that you can derive from it and set your own derived glue objects for any view.The gluing options, passed in the
GLUETYPE variable, are chosen by OR'ing one or more of the following:
|
|
|
TOPSTICKY
|
BOTTOMRIGHTSTICKY
|
BOTTOMSTICKY
|
TOPLEFTSTICKY
|
LEFTSTICKY
|
TOPRIGHTSTICKY
|
RIGHTSTICKY
|
BOTTOMLEFTSTICKY
|
ALLSTICKY
|
For instance, an object whose glue is set remains glued to the top-right corner of its enclosing border as the window is stretched. For example:
SetGlue(TOPSTICKY|RIGHTSTICKY)However, an object whose stickiness is defined stretches or shrinks as the window changes size. For example:
SetGlue(ALLSTICKY)
CGlue(CView* theOwner);
theOwner).
CGlue(const CGlue& theGlue);
CGlue& operator=(const CGlue& theGlue);
virtual ~CGlue(void);
virtual void SetGlue(GLUETYPE theGlue);
NULLSTICKY upon creation. For a listing of valid glue types, see under "Usage".
virtual GLUETYPE GetGlue(void) const;
virtual void SizeOwner(void);
SizeOwner is called internally. This method is called by XVT-Power++ whenever necessary, and you can override it to implement different gluing behaviors.
GetFrame and SetFrame.