Home |
Obtaining a Pointer to PegPresentationManager Style Flags Determining the Position of an Object |
Style FlagsAll RTPEG-32 objects also have a set of style flags associated with it, which allow control of many things related to how an object appears and functions. The style flags are interpreted in different ways by different object types, and some style flags apply only to certain types of objects. PegThing provides functions for reading or modifying an object's style flags. The following code segment can be used to set the AF_ENABLED style flag for a button. Note: this is an example only. The PegButton class provides member functions for accomplishing this task. PegButton * pChild = (PegButton *) First(); pChild->Style(pChild->Style() | AF_ENABLED)); Determining the Position of an Object
|