Home |
Class PegTerminalWin HMI (Human-Machine Interface) Classes |
Class PegTerminalWinThis class is a simple application of class PegEditBox. It sends PSF_COMMAND signals to its parent when the user has pressed return. A pointer to the entered string is passed in pData. class PegTerminalWin : public PegEditBox { public: PegTerminalWin(const PegRect &Rect, PEGUINT wId, PEGUINT wStyle = FF_RECESSED | EF_EDIT | EF_WRAP, PEGCHAR * Text = NULL, PEGINT iMaxChars); PEGINT Message(const PegMessage &Mesg); void SetPrompt(PEGCHAR * pPrompt); void Prompt(void); }; Demo program Terminal uses this class. SignalsConstructorParameter Text is the initial data displayed in the edit box. iMaxChars specifies at most how many characters are maintained. Method MessageThe Message handler dispatches PSF_COMMAND signals to the parent when enter is pressed. Method SetPromptSetPrompt defined the text to displayed by Method Prompt. Method PromptPrompt displays displays the prompt set with SetPrompt.
|