class XtContextualHelp: public XtStaticText

Contextual help class

Inheritance:

XtContextualHelp - XtStaticText - XObject - XEventBroker


Public Methods

[more] XtContextualHelp(XRect __r, unsigned __Alignment, unsigned long __Flags)
Constructs a new XtContextualHelp with the specified bounds.
[more]virtual ~XtContextualHelp()
Destructs the object instance
[more]virtual void Draw()
Displays the help content
[more]virtual unsigned long GetContext()
Returns the current context's value
[more]virtual const char* GetValue(unsigned long __Context)
Returns the text associated to the specified context's value
[more]virtual void SetContext(unsigned long __Context)
Sets the current context's value
[more]virtual void SetValue(unsigned long __Context, const char *__Text)
Associate the specified text to the specified context's value


Inherited from XtStaticText:

Protected Fields

ostring* Text
ounsigned Alignment


Inherited from XObject:

Public Methods

ovirtual void CalculateBounds()
oXRect GetBounds()
ovirtual XEvent* GetEvent()
ounsigned long GetId()
ochar* GetObjClass()
oXPoint GetOrigin()
ovirtual char* GetPalette()
ovirtual unsigned GetPalEntry(unsigned __Index)
oXPoint GetSize()
ounsigned long GetState()
ovirtual bool GetState(unsigned long __Mask)
ovirtual void HandleEvent(XEvent *__Event)
ovirtual void MoveTo(XPoint __p)
ovirtual bool ProcessEvent(XEvent *__Event)
ovirtual void RegisterClient(XObject *__Client)
ovirtual void Resize(XPoint __delta)
ovirtual void SetPalette(char *__Pal, unsigned __PalLen)
ovirtual void SetState(unsigned long __Mask, bool __BoolValue)
ovirtual void UnregisterClient(XObject *__Client)

Protected Fields

ounsigned long Id
ounsigned long State
oXPoint Origin
oXPoint Size
oXPoint Cursor
oXRect Bounds
ochar ObjClass[40]
ochar Pal[80]
ounsigned PalLen
oXObject* Server
oClientList Clients

Protected Methods

obool SendMessage(unsigned long __Receiver, unsigned long __Class, long __Message)
obool SendMessage(unsigned long __Receiver, unsigned long __Class, void *__Body, unsigned long __Size)


Inherited from XEventBroker:

Public Methods

ovirtual void AddListener(unsigned long __Listener, unsigned __Class)
ovirtual void DelListener(unsigned long __Listener, unsigned __Class)
ovirtual void DelListener(unsigned long __Listener)

Protected Fields

oMap __map


Inherited from XObjectEventListener:

Public Methods

ovirtual bool ProcessMouseEvent(XMouseEvent *__Event)
ovirtual bool ProcessKeyboardEvent(XKeyboardEvent *__Event)
ovirtual bool ProcessMessage(XMessage *__Event)
ovirtual bool ProcessCommand(XMessage *__Event)
ovirtual bool ProcessSignal(XEvent *__Event)
ovirtual bool ProcessBroadcast(XEvent *__Event)


Inherited from XEventListener:


Documentation

Instantiations of this class are "passive" objects.
o XtContextualHelp(XRect __r, unsigned __Alignment, unsigned long __Flags)
Constructs a new XtContextualHelp with the specified bounds.
Parameters:
__r - help bounds
__Alignment - align style, which can be:

AS_NO_ALIGN - no align is made

AS_LEFT - aligns to the left

AS_CENTER - centers the text horizontally

AS_RIGHT - aligns to the right

AS_TOP - aligns to the top

AS_BOTTOM - aligns to the bottom

AS_MIDDLE - centers the text vertically
__Flags - options, which can be:

DISPLAY_MARGINS - show window margins

ovirtual ~XtContextualHelp()
Destructs the object instance

ovirtual void Draw()
Displays the help content

ovirtual unsigned long GetContext()
Returns the current context's value

ovirtual const char* GetValue(unsigned long __Context)
Returns the text associated to the specified context's value

ovirtual void SetContext(unsigned long __Context)
Sets the current context's value

ovirtual void SetValue(unsigned long __Context, const char *__Text)
Associate the specified text to the specified context's value


This class has no child classes.

Go to the
hierarchy of classes.


Copyright ©1998-2001 Dragos Acostachioaie
Last update on October 27, 2001

This page was generated with the help of DOC++.