in reply to Re: Wx::Perl: How to change/set font and size of Wx::ListCtrl column headings?
in thread Wx::Perl: How to change/set font and size of Wx::ListCtrl column headings?

no built in Virtual mode.

Sure there is

wxGrid::SetTable

Use this function instead of CreateGrid() when your application involves complex or non-string data or data sets that are too large to fit wholly in memory.

The virtual class is wxGridTableBase

Perl example is  wxperl_demo --show "Custom wxGridTable"

It shows inheriting being derived from Wx::PlGridTable and Wx::PlGridTable @ISA = qw(Wx::GridTableBase);, this is the wxperl way for virtual classes as Wx::NewClass explains

http://wiki.wxperl.nl/Wx::GridTableBase mentions this

Also some related info at Software Woes: wxGrid with virtual storage and multirow or multicolumn cells

  • Comment on Re^2: Wx::Perl: How to change/set font and size of Wx::ListCtrl column headings? (wxGrid::SetTable virtual wxGridTableBase)
  • Download Code

Replies are listed 'Best First'.
Re^3: Wx::Perl: How to change/set font and size of Wx::ListCtrl column headings? (wxGrid::SetTable virtual wxGridTableBase)
by jmlynesjr (Deacon) on Mar 29, 2013 at 13:56 UTC

    AM, thank you for the correction. Always more to learn.

    Response to my inquiry on the wxPerl mailing list:

    Hi,

    It isn't implemented in wxWidgets - probably because the library attempts to either use the native platform controls or mimic them as closely as possible. If you cannot do it with a native control, you most likely can't do it in wxWidgets. I doubt this is seen as a missing feature so you're unlikely to see it implemented in the future.

    Wx::Grid is the way to go to do what you want.

    By the way, I noticed on Perl Monks some information regarding how Wx::ListCtrl handles a large number of items.

    For that you need to use the wxLC_VIRTUAL|wxREPORT style. See the Wx::Demo where the virtual list control reports 100,000 items.

    For a Wx::Grid control with a large number of items, you should use a custom Wx::GridTable. The example in Wx::Demo reports 100,000 columns by 100,000 rows.

    Hope it helps. Sorry no positive answer on the column formatting.

    Regards

    Mark(Dootson)

    James

    There's never enough time to do it right, but always enough time to do it over...