class XtComboBox: public XtInputStringField

ComboBox control

Inheritance:

XtComboBox - XtInputStringField - XObject - XEventBroker


Public Methods

[more] XtComboBox(XRect __r, LItem *__Items, short __Rows)
Constructs a new XtComboBox.
[more]virtual ~XtComboBox()
Destructs the object's instance
[more]virtual void AddFirst(const char *__Text, long __Value, short __Flags)
Add LItem at top of the list
[more]virtual void AddFirst(const char *__Text)
Add LItem at top of the list
[more]virtual void AddLast(const char *__Text, long __Value, short __Flags)
Add LItem at end of the list
[more]virtual void AddLast(const char *__Text)
Add LItem at end of the list
[more]virtual bool DeleteItem(unsigned long __Item)
Deletes the specified item number
[more]virtual void Draw()
Draws the object
[more]virtual bool InsertItem(unsigned long __Position, LItem *__Item)
Insert the item as defined position
[more]virtual bool ProcessKeyboardEvent(XKeyboardEvent *__Event)
Process keyboard events
[more]virtual void SetKey(long __Key)
Sets the current value of field corresponding with key from item list
[more]virtual void SetValue(char *__DefaultString)
Sets the current value of field
[more]virtual void SetValue(LItem *__Items)
Sets a new list content
[more]virtual long GetKey()
Returns the key of current item
[more]virtual LItem* GetList()
Returns the list content


Inherited from XtInputStringField:

Public Methods

ovirtual void ClearValue()
ovirtual const char* GetDefaultValue()
ovirtual short GetInputLength()
ovirtual const char* GetValue()
ovirtual bool ProcessMessage(XMessage *__Event)
ovirtual bool ProcessMouseEvent(XMouseEvent *__Event)
ovirtual void SetState(unsigned long __Mask, bool __BoolValue)


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 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 ProcessCommand(XMessage *__Event)
ovirtual bool ProcessSignal(XEvent *__Event)
ovirtual bool ProcessBroadcast(XEvent *__Event)


Inherited from XEventListener:


Documentation

ComboBox control
o XtComboBox(XRect __r, LItem *__Items, short __Rows)
Constructs a new XtComboBox.
Parameters:
__r - field bounds
__Items - selectable list of items
__Rows - maximum visible rows at list

ovirtual ~XtComboBox()
Destructs the object's instance

ovirtual void AddFirst(const char *__Text, long __Value, short __Flags)
Add LItem at top of the list

ovirtual void AddFirst(const char *__Text)
Add LItem at top of the list

ovirtual void AddLast(const char *__Text, long __Value, short __Flags)
Add LItem at end of the list

ovirtual void AddLast(const char *__Text)
Add LItem at end of the list

ovirtual bool DeleteItem(unsigned long __Item)
Deletes the specified item number
Parameters:
__Item - item number

ovirtual void Draw()
Draws the object

ovirtual bool InsertItem(unsigned long __Position, LItem *__Item)
Insert the item as defined position

ovirtual bool ProcessKeyboardEvent(XKeyboardEvent *__Event)
Process keyboard events

ovirtual void SetKey(long __Key)
Sets the current value of field corresponding with key from item list

ovirtual void SetValue(char *__DefaultString)
Sets the current value of field

ovirtual void SetValue(LItem *__Items)
Sets a new list content

ovirtual long GetKey()
Returns the key of current item

ovirtual LItem* GetList()
Returns the list content


This class has no child classes.

Go to the
hierarchy of classes.


Copyright ©2000 Pavel Andreew
Last update on October 27, 2001

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