Index

# XWindow

XObject &rarrXWindow

public
- Activate
- DoMove
- DoSize
- Enable
- EnableWindowUpdate
- FocusChanged
- GetBackgroundColor
- GetClientHandle
- GetForegroundColor
- GetHandle
- GetSize
- GetText
- GetWindow
- GetWindowID
- Hide
- Invalidate
- IsVisible
- QueryFontName
- QueryPointerPos
- QueryTextLength
- QueryWindow
- SendMsg
- SetBackgroundColor
- SetBottom
- SetFocus
- SetFont
- SetForegroundColor
- SetSize
- SetText
- SetTop
- Show
- ~XWindow
- pointer
- QueryPointerHandle
- QuerySystemPointerHandle
- SetPointer
- user input
- DoControl

#### Derrived

: public XObject

## public

###

Activate

#### Definition

`

void Activate ( void )

virtual void Activate ( void )

`

#### Returns

void

###

DoMove

#### Definition

`

virtual void DoMove ( void )

`

#### Returns

void

###

DoSize

#### Definition

`

virtual void DoSize ( void )

`

#### Returns

void

###

Enable

#### Definition

`

void Enable ( BOOL enable )

virtual void Enable ( BOOL enable = TRUE )

`

#### Returns

void

###

EnableWindowUpdate

#### Definition

`

void EnableWindowUpdate ( BOOL enable )

virtual void EnableWindowUpdate ( BOOL update = TRUE )

`

#### Returns

void

###

FocusChanged

#### Definition

`

virtual void FocusChanged ( BOOL focusReceived )

`

#### Returns

void

###

GetBackgroundColor

#### Definition

`

void GetBackgroundColor ( XColor* rgb )

virtual void GetBackgroundColor ( XColor* rgbColor )

`

#### Returns

void

###

GetClientHandle

#### Definition

`

virtual LONG GetClientHandle ( void )

`

#### Returns

LONG

###

GetForegroundColor

#### Definition

`

void GetForegroundColor ( XColor* rgb )

void GetForegroundColor ( XColor* rgbColor )

`

#### Returns

void

###

GetHandle

#### Definition

`

virtual OOL_WINDOWHANDLE GetHandle ( void )

`

#### Returns

OOL_WINDOWHANDLE

###

GetSize

#### Definition

`

void GetSize ( XRect* rect )

virtual void GetSize ( XRect* rect )

`

#### Returns

void

###

GetText

#### Definition

`

LONG GetText ( XString* buffer )

virtual LONG GetText ( XString* buffer )

`

#### Returns

LONG

###

GetWindow

#### Definition

`

XWindow* GetWindow ( ULONG id )

virtual XWindow* GetWindow ( ULONG id )

`

#### Returns

XWindow*

###

GetWindowID

#### Definition

`

SHORT GetWindowID ( void )

virtual SHORT GetWindowID ( void )

`

#### Returns

SHORT

###

Hide

#### Definition

`

void Hide ( void )

virtual void Hide ( void )

`

#### Returns

void

###

Invalidate

#### Definition

`

void Invalidate ( BOOL invalidateChilds )

virtual void Invalidate ( BOOL invalidateChilds = FALSE )

`

#### Returns

void

###

IsVisible

#### Definition

`

BOOL IsVisible ( void )

virtual BOOL IsVisible ( void )

`

#### Returns

BOOL

###

QueryFontName

#### Definition

`

void QueryFontName ( XString* font )

void QueryFontName ( XString* )

`

#### Returns

void

###

QueryPointerPos

#### Definition

`

void QueryPointerPos ( XPoint* p )

static void QueryPointerPos ( XPoint* p )

`

#### Returns

void

static void

###

QueryTextLength

#### Definition

`

LONG QueryTextLength ( void )

virtual LONG QueryTextLength ( void )

`

#### Returns

LONG

###

QueryWindow

#### Definition

`

XWindow* QueryWindow ( ULONG id )

virtual XWindow* QueryWindow ( ULONG id )

`

#### Returns

XWindow*

###

SendMsg

#### Definition

`

static void* SendMsg ( OOL_WINDOWHANDLE handle, ULONG msg, void* mp1, void* mp2 )

`

#### Returns

static void*

###

SetBackgroundColor

#### Definition

`

void SetBackgroundColor ( XColor* rgb )

void SetBackgroundColor ( XColor* rgbColor )

`

#### Returns

void

###

SetBottom

#### Definition

`

void SetBottom ( void )

virtual void SetBottom ( void )

`

#### Returns

void

###

SetFocus

#### Definition

`

BOOL SetFocus ( void )

`

#### Returns

BOOL

###

SetFont

#### Definition

`

void SetFont ( const char* fontNameSize )

void SetFont ( const char* fontName, unsigned short fontSize )

`

#### Returns

void

###

SetForegroundColor

#### Definition

`

void SetForegroundColor ( XColor* rgb )

void SetForegroundColor ( XColor* rgbColor )

`

#### Returns

void

###

SetSize

#### Definition

`

void SetSize ( XRect* rect )

virtual void SetSize ( XRect* rect )

`

#### Returns

void

###

SetText

#### Definition

`

void SetText ( const char* text )

virtual void SetText ( const char* text )

`

#### Returns

void

###

SetTop

#### Definition

`

void SetTop ( void )

virtual void SetTop ( void )

`

#### Returns

void

###

Show

#### Definition

`

void Show ( void )

virtual void Show ( void )

`

#### Returns

void

###

~XWindow

#### Definition

`

~XWindow ( )

virtual ~XWindow ( )

`

#### Returns

-

## pointer

###

QueryPointerHandle

returns the handle of the actual pointer.

#### Definition

`

OOL_POINTERHANDLE QueryPointerHandle ( void )

static OOL_POINTERHANDLE QueryPointerHandle ( void )

`

#### Returns

OOL_POINTERHANDLE

static OOL_POINTERHANDLE

###

QuerySystemPointerHandle

#### Definition

`

OOL_POINTERHANDLE QuerySystemPointerHandle ( LONG theID, BOOL copy )

static OOL_POINTERHANDLE QuerySystemPointerHandle ( LONG theID, BOOL copy = FALSE )

`

#### Parameters

e handle of the pointer identified by theID.

: LONG theID ID of the needed pointer. Valid values are:

PTR_ARROW PTR_TEXT PTR_WAIT PTR_SIZE PTR_SIZENWSE PTR_SIZENESW PTR_SIZEWE PTR_SIZENS PTR_MOVE PTR_ILLEGAL

BOOL copy If you need a copy of the pointer (to modify it) set copy TRUE, otherwise FALSE. Default is FALSE.

#### Returns

OOL_POINTERHANDLE

static OOL_POINTERHANDLE

###

SetPointer

Set the actual pointer. You can receive a pointer-handle by calling QuerySystemPointer or load a pointer from a resource with XResourceLibrary::LoadIcon.

#### Definition

`

BOOL SetPointer ( OOL_POINTERHANDLE thePointer )

static BOOL SetPointer ( OOL_POINTERHANDLE thePointer )

`

#### Returns

BOOL

static BOOL

## user input

###

DoControl

If the user has done some interaction with a window this function is called. To get information about the event, override this function, the parameter holds information of your interest.

#### Definition

`

void DoControl ( XControlEvent* e )

virtual void DoControl ( XControlEvent* )

`

#### Parameters

: XControlEvent * pointerOfEvent a pointer to an instance of XControlEvent

#### Returns

void

-

Created by AutoDoc, (C) 1996 by Jens von Pilgrim