in reply to wxGridTable how is the grid filled in
I don't understand where the cells in de grid are filled in in this example
Can you identify the gridtable object? They're all filled by the subclass package MyGridTable;
This part
What this means, is when $grid (a wxGrid) decides it needs to show the Nth-col/Nth-row item, it calls $table->GetValue(x,y) , and sub MyGridTable::GetValue returns what is going to be filled ... this is why its virtualmy $table = MyGridTable->new; # Virtual Table object $grid->SetTable( $table );
Actually first it calls MyGridTable::CanGetValueAs() to decide whether to call MyGridTable::GetValueAsBool() for the checkboxes/checkbuttons, or MyGridTable::GetValueAsDouble() ...
For the conceptual model see
Wx::Perl::ListView/Wx::Perl::ListView::SimpleModel/https://metacpan.org/source/MBARBON/Wx-Perl-ListView-0.01/example/listview.pl
http://wiki.wxperl.it/Wx::GridTableBase
http://wiki.wxperl.it/Wx::Grid
You should already have a copy of the wxwidgets manual ... because currently the online version of the docs is down :)
http://docs.wxwidgets.org/trunk/search.php?query=wxGrid
http://docs.wxwidgets.org/trunk/overview_grid.html
http://docs.wxwidgets.org/trunk/classwx_grid.html
I would like to use this module but somehow i need to start with a empty grid and understand what is going on. I googled around but i did not find any explenation how it works.
The docs tie it together :)
I like Wx :) Re: wxPerl: is BitmapFromImage implemented? (no;sleep;docs), my wxWidgets / wxPerl / wxGlade tutorial, http://www.wxperl.it/p/wxperl-primer.html , wxperl_usage / wxperl-usage / wxPerl::Usage / Class Method Browser , available methods, method invocation syntax, link to docs, Re^8: How to use wxHtmlEasyPrinting (On debugging, verify everything, talk to teddybear ... and links and links , Tutorials: Perl documentation documentation, Searching Perl Documentation
you don't need to build wx yourself, http://www.citrusperl.com/, http://ppm.wxperl.it/
|
---|