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

GToolBar.h File Reference

Toolbar and Imagelist classes. More...

Go to the source code of this file.

Defines

#define IMGLST_SELECTED   0x0001
 GImageList::Draw() flag: Draw as selected.
#define IMGLST_DISABLED   0x0002
 GImageList::Draw() flag: Draw disabled.
#define IMGLST_GDC   0x0004
 GImageList::Draw() flag: Draw with GDC.
#define TBT_PUSH   0
 Push type toolbar button.
#define TBT_RADIO   1
 Radio type toolbar button, uses separators to define the domain.
#define TBT_TOGGLE   2
 Toggle type toolbar button.

Functions

LgiFunc GImageListLgiLoadImageList (char *File, int x, int y)
 Loads an image list from a file.
LgiFunc GToolBarLgiLoadToolbar (GView *Parent, char *File, int x=24, int y=24)
 Loads a toolbar from a file.


Detailed Description

Toolbar and Imagelist classes.

Author:
Matthew Allen

Function Documentation

LgiFunc GImageList* LgiLoadImageList char *  File,
int  x,
int  y
 

Loads an image list from a file.

This requires that somewhere in your project you have the image codec to load the type of file you pass in. For instance if the file is a png, then include the Png.cpp file in your project. Uses LoadDC() internally.

Parameters:
File  The file to load
x  The width of the icons
y  The height of the icons

LgiFunc GToolBar* LgiLoadToolbar GView Parent,
char *  File,
int  x = 24,
int  y = 24
 

Loads a toolbar from a file.

Parameters:
Parent  A parent window for error message boxes
File  The graphics file to load as the image list
x  The width of the icons
y  The height of the icons


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