Home |
Class PegVPrompt HMI (Human-Machine Interface) Classes |
Class PegVPromptPegVPrompt (Peg Vertical Prompt) is a text display object. PegVPrompt can be drawn with several different border styles, and can be updated dynamically for interactive updates or real-time information display. PegVPrompt does not support user-editing. PegVPrompt differs from PegPrompt in that the text is displayed vertically, with the first character of the prompt string displayed at the top of the prompt object and the last character of the prompt string displayed at the bottom of the prompt object. The PegVPrompt text is centered both horizontally and vertically within the prompt client area. The font used by PegVPrompt can be changed at any time by using the SetFont() function, which is a PegTextThing member function. Likewise, the color used by PegVPrompt can be set at any time by calling the SetColor() function. class PegVPrompt : public PegPrompt { public: PegVPrompt(const PegRect &Rect, const PEGCHAR * Text, PEGUINT wId = 0, PEGUINT wStyle = FF_NONE | AF_TRANSPARENT); virtual void Draw(void); }; Style FlagsFF_NONE, FF_THIN, FF_RAISED, FF_RECESSED, TJ_RIGHT, TJ_LEFT, TJ_CENTER, TT_COPY, AF_TRANSPARENT, AF_ENABLED. ConstructorThe PegVPrompt constructor accepts a rectangle describing the prompt position and size, a pointer to the initial text value, an optional object ID and style flags. Examples:The following are examples of PegVPrompt:
|