ALXSoft

Utilities, source code, examples for programmers on Visual C ++

Home
News
ALXGrid Control
Samples
Documentation
Hierarchy of classes
Interface
Download
alxBASE library
Samples
Documentation
Download
DBFRead utility
Download
DBFNavigator utility
Download
IDXView utility
Download
MDXView utility
Download
NDXView utility
Download
NTXView utility
Download
NSXView utility
Download
Links

Russian version

Interface
  Functions:
   - for work with columns
   - for work with rows
   - for work with cells
   - for events processing
   - for work with a control of a cell
   - repaint
   - for work with the image in a cell
   - for work with head
   - for work with frozen columns
   - scrolling
   - others
   - a control of a cell
   - new in the version 1.25


        Functions for work with columns:
AddCol() - add column into a grid
InsertCol() - insert column into a grid
RemoveAllCol() - remove all columns from a grid
DefineColCtrl() - define control for a column
DestroyColCtrl() - delete control of a column
DefineImage() - define type and the size of the image of a column
GetColInfo() - returns the information on a column

        Functions for work with rows:   

SetGridRowCount() - determines count of rows in a grid
GetGridRowCount() - returns count of rows in a grid
InsertRows() - insert rows into a grid
RemoveRows() - deletes rows from a grid
InvalidateRow() - determines a row as demanding repaint
GetGridRowHeight() - returns height of a row

        Functions for work with cells:   

GetActiveCol(), GetActiveRow() - return an active row, a column
SetActiveCell(), SetActiveNextCol(), SetActivePrevCol(), SetActiveNextRow(), SetActivePrevRow(), SetActiveCol(), SetActiveRow() - establish an active cell
InvalidateCell() - determines a cell as demanding repaint
GetCellInfo() - returns style of a cell
GetCellData() - returns the given cells (virtual function, it should will be redefined in your class)
GetCellMetrics() - return pointer on cell metrics - background color, text color (virtual function, it's may be redefine in your class)

        Functions of processing of events:

OnSetActiveCell() - it is caused at activation of a cell
OnSaveCellData() - is caused to save the data if necessary
OnSevedCellData() - it is caused after preservation of changes in a cell
OnDestroy() - deactivates window event
OnKeyDown() - event pressing a key
OnLButtonDown() - event pressing the left button of the mouse
OnLButtonUp() - event up the left button of the mouse
OnLButtonDblClk() - event double pressing the left button of the mouse
OnMouseMove() - event moving the mouse to a window
OnSetCursor() - event set cursor of the mouse
OnSetFocus() - event sets focus
OnHeadButtonDown() - cell of a head is pushed
OnHeadButtonDblClk() - double click of cell of a head

       Functions working with a control of a cell:  

CreateCellCtrl() - creates a control of a cell
SetCellCtrl() - establishes the pointer on a control of a cell
SetDataCtrl() - transfers the data on a cell to a control
GetCellCtrl() - returns the pointer on a control of a cell
GetCellCtrlStyle() - returns style of a control of a cell
GetCellCtrlID() - returns the identifier of a control of a cell

        Functions of repaint:  

OnGridDraw() - processing of event WM_PAINT
OnDrawGridRow() - caused at repaint cells of a grid
OnDrawGridCell() - caused at repaint a cell of a grid
OnDrawHeadCell() - caused at repaint a cell of a head
OnDrawFrozenCell() - caused at repaint a cell of a frozen column

        Functions for work with the image in a cell:   

DefineImage() - defines that in a column there will be cells with the image
IsImage() - returns "true" if the cell contains the image
GetTypeImage() - returns type of the image
GetSizeImage() - returns the size of the image
GetImage() - returns the pointer on image (virtual function, it should be redefined in your class)
GetImageListDrawParams() - returns parameters ImageList for the given cell (virtual function, it should be redefined in your class)

        Functions for work with a grid head:  

SetHeadRowCount() - determines amount of rows in a head
GetHeadRowCount() - returns amount of rows in a head
SetHeadRowHeight() - determines height of a row of a head
GetHeadRowHeight() - returns height of a row of a head
SetHeadFont() - determines a font of a head
GetHeadFont() - returns the pointer on a font of a head
GetHeadColCount() - returns amount of columns in a head
GetHeadColWidth() - returns width of a column of a head
SetHeadColWidth() - sets width of a column of a head
GetHeadCellInfo() - returns the information on a cell of a head
GetSortCol() - returns an index of cell of a head on which one the row are sorted out
SetSortCol() - transmits an index of cell of a head on which one the row are sorted out

        Functions for work with frozen columns:  

SetFrozenColCount() - establishes the amount frozen columns at the left
GetFrozenColCount() - returns the amount frozen columns
SetFrozenColWidth() - establishes the width frozen columns
GetFrozenColWidth() - returns the width frozen columns

        Scrolling:   

GetCurScrollPos() - returns the current position of scrolling
ScrollAndSetActCol() - scrolls a window and makes a column active (it is used in class CALXSplitterWnd)
ScrollAndSetActRow() - scrolls a window and makes a row active (it is used in class CALXSplitterWnd)
UpdateScrollSize() - recalculate the area which is necessary to scroll and updates the scrolling bars

        Other functions:   

SetGridFont() - establishes a font of a grid
GetGridFont() - returns pointer on a font of a grid
SetExtAreaSize() - establishes the size of additional area of scrolling
GetExtAreaSize() - returns the size of additional area of scrolling
SaveModifyed() - save all changes
SetFocusRect() - define color and style of the focus rectangle

        Functions of a control by cell:  

CreateCtrl() - create window of a control cell
ActivateCtrl() - makes window of a control cell active
EnableCtrl() - enabled /disabled access to a window of a control of a cell
DeactivateCtrl() - deactivate a control cell window
DestroyCtrl() - destroys a window connected with a control cell
SetData() - transfers the data
GetCellData() - returns the data
SetFontCtrl() - sets font
SetModify() - establishes a flag of updating
OnValidate() - whether valid the data are entered
SendLButtonDown() - transfers the message on pressing the left button of the mouse
IsActive() - return "TRUE" if the control cell is active
IsCanCopy() - return "TRUE" if  performance of command "to copy" is possible
IsCanCut() - return "TRUE" if performance of command "to cut out" is possible
IsCanPast() - return "TRUE" if performance of command "to insert" is possible
IsCanUndo() - return "TRUE" if performance of command "to cancel" is possible
IsModifyed() - whether or no the data were changed
Copy() - copy the data into clipboard
Cut() -  the data are copied into clipboard and are deleted from an cell
Past() -  the data are inserted from the clipboard
Undo() - last changes are cancelled

        New in the version 1.25:  

OnHeadButtonDown() - cell of a head is pushed
OnHeadButtonDblClk() - double click of cell of a head
GetSortCol() - returns an index of cell of a head on which one the row are sorted out
SetSortCol() - transmits an index of cell of a head on which one the row are sorted out

Alexey. E-mail: alxsoft@gazinter.net

Hosted by uCoz