Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

LgiClasses.h File Reference

Gui class definitions Copyright (C) 1997-2004, Matthew Allen. More...

#include "GSemaphore.h"
#include "GLibrary.h"
#include "LgiOsClasses.h"
#include "GArray.h"
#include "LgiCommon.h"
#include "GXml.h"
#include "GDragAndDrop.h"
#include "GMenu.h"
#include "LgiWidgets.h"
#include "Progress.h"
#include "GProgress.h"
#include "GFileSelect.h"
#include "GFindReplaceDlg.h"
#include "GToolBar.h"
#include "GThread.h"
#include "GClipBoard.h"
#include "GInput.h"
#include "GPrinter.h"

Go to the source code of this file.

Defines

#define LgiProcessId()   (LgiApp->GetProcessId())
 Returns the current process ID.
#define LgiApp   (GApp::ObjInstance())
#define SysFont   (LgiApp->SystemNormal)
#define SysBold   (LgiApp->SystemBold)
#define LgiCloseApp()   LgiApp->Exit(false)
#define GV_EDGE_TOP   0x0001
#define GV_EDGE_RIGHT   0x0002
#define GV_EDGE_BOTTOM   0x0004
#define GV_EDGE_LEFT   0x0008
#define IDC_VSCROLL   14000
 Id of the vertical scroll bar in a GLayout control.
#define IDC_HSCROLL   14001
 Id of the horizontal scroll bar in a GLayout control.
#define GIC_OWNER_DRAW   0x0001
 Client draws the content.
#define GIC_ASK_TEXT   0x0002
 Column header is text.
#define GIC_ASK_IMAGE   0x0004
 Column header is an image.
#define GIC_OWN_LIST   0x0008
 Not used.
#define GMouseEvents   0x01
 GWindow::RegisterHook().
#define GKeyEvents   0x02
 GWindow::RegisterHook().

Enumerations

enum  GWindowZoom { GZoomMin, GZoomNormal, GZoomMax }
 The available states for a top level window. More...

Functions

LgiFunc void LgiExitApp ()
LgiFunc COLOUR LgiColour (int Colour)
 Returns a 24bit representation of a system colour.
LgiFunc int LgiMsg (GView *Parent, char *Msg, char *Title=0, int Type=MB_OK,...)
 Displays a message box.


Detailed Description

Gui class definitions Copyright (C) 1997-2004, Matthew Allen.

Author:
Matthew Allen
Date:
19/12/1997

Define Documentation

#define GV_EDGE_BOTTOM   0x0004
 

FindLargestEdge parameter

See also:
GView::FindLargest(GRegion &, int)

#define GV_EDGE_LEFT   0x0008
 

FindLargestEdge parameter

See also:
GView::FindLargest(GRegion &, int)

#define GV_EDGE_RIGHT   0x0002
 

FindLargestEdge parameter

See also:
GView::FindLargest(GRegion &, int)

#define GV_EDGE_TOP   0x0001
 

FindLargestEdge parameter

See also:
GView::FindLargest(GRegion &, int)

#define LgiApp   (GApp::ObjInstance())
 

Returns a pointer to the GApp object.

Warning:
Don't use this before you have created your GApp object. i.e. in a constructor of a global static class which is initialized before the main begins executing.

 
#define LgiCloseApp  )     LgiApp->Exit(false)
 

Closes the application gracefully.

This actually causes GApp::Run() to stop processing message and return.

#define SysBold   (LgiApp->SystemBold)
 

Returns a bold system font pointer.

Warning:
Don't use this before you have created your GApp object. i.e. in a constructor of a global static class which is initialized before the main begins executing.

#define SysFont   (LgiApp->SystemNormal)
 

Returns a system font pointer.

Warning:
Don't use this before you have created your GApp object. i.e. in a constructor of a global static class which is initialized before the main begins executing.


Enumeration Type Documentation

enum GWindowZoom
 

The available states for a top level window.

Enumeration values:
GZoomMin  Minimized.
GZoomNormal  Restored/Normal.
GZoomMax  Maximized.


Function Documentation

LgiFunc COLOUR LgiColour int  i  ) 
 

Returns a 24bit representation of a system colour.

You can use the macros R24(), G24() and B24() to extract the colour components

Parameters:
i  The system colour to return.
See also:
The define LC_BLACK and those that follow in LgiDefs.h

LgiFunc void LgiExitApp  ) 
 

Exits the application right now!

Warning:
This will cause data loss if you have any unsaved data. Equivilant to exit(0).

LgiFunc int LgiMsg GView Parent,
char *  Msg,
char *  Title = 0,
int  Type = MB_OK,
  ...
 

Displays a message box.

Returns:
The button clicked. The return value is one of IDOK, IDCANCEL, IDYES or IDNO.
Parameters:
Parent  The parent view or NULL if none available
Msg  The message's text. This is a printf format string that you can pass arguments to
Title  The title of the message box window
Type  The type of buttons below the message. Can be one of: MB_OK, MB_OKCANCEL, MB_YESNO or MB_YESNOCANCEL.


Generated on Wed Oct 26 14:46:54 2005 for Lgi by  doxygen 1.4.1