Does anyone know where the wxGridTableMessage class is documented in the wxWindows docs? I can’t seem to locate it but I thought I had ran accross it before.
Thanks
-brett
Does anyone know where the wxGridTableMessage class is documented in the wxWindows docs? I can’t seem to locate it but I thought I had ran accross it before.
Thanks
-brett
I don't know of any documentation for it, though it is mentioned (briefly) in the wiki for wxGrid, just as a sample for how to use it. The available message types (from grid.py) appear to be:
wxGRIDTABLE_REQUEST_VIEW_GET_VALUES -- update the view from the table
wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES -- update the table from the view
wxGRIDTABLE_NOTIFY_ROWS_INSERTED -- notify view of inserted rows
wxGRIDTABLE_NOTIFY_ROWS_APPENDED -- notify view of appended rows
wxGRIDTABLE_NOTIFY_ROWS_DELETED -- notify view of deleted rows
wxGRIDTABLE_NOTIFY_COLS_INSERTED -- notify view of inserted columns
wxGRIDTABLE_NOTIFY_COLS_APPENDED -- notify view of appended columns
wxGRIDTABLE_NOTIFY_COLS_DELETED -- notify view of deleted columns
Usage of most of the message types is demonstrated here:
http://wiki.wxpython.org/index.cgi/wxGrid
under the sub-section "Changing Size/Shape of Grid/Table".
The grid.i file (in addition to the grid.py file) includes the definition for the class:
class wxGridTableMessage
{
public:
wxGridTableMessage( wxGridTableBase *table, int id,
int comInt1 = -1,
int comInt2 = -1 );
~wxGridTableMessage();
void SetTableObject( wxGridTableBase *table );
wxGridTableBase * GetTableObject() const;
void SetId( int id );
int GetId();
void SetCommandInt( int comInt1 );
int GetCommandInt();
void SetCommandInt2( int comInt2 );
int GetCommandInt2();
};
The definition in grid.cpp lets you piece together what the particular features of each sub-type of message are used, but obviously, that's sub-optimal as documentation.
If you happen to find better documentation, please add a link to the above wiki page pointing to it.
Good luck,
Mike
Brett Humphreys wrote:
Does anyone know where the wxGridTableMessage class is documented in the wxWindows docs? I can't seem to locate it but I thought I had ran accross it before.
Thanks
-brett
_______________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://members.rogers.com/mcfletch/