Hi Again Jim,

On 01/05/14 17:55, Jim Clark wrote:
I tried:
  $grid->SetColLabelSize(&wx::Grid::wxGRID_AUTOSIZE);
  $grid->SetColLabelSize(&wx::wxGRID_AUTOSIZE);
  $grid->SetColLabelSize(&wxGRID_AUTOSIZE);

What's the deal?  is this not implemented?

Well I don't believe it is implemented in wxPerl (and it should be), however, it seems that it just returns -1, so if you do:

    $grid->SetColLabelSize(-1);
    $grid->SetRowLabelSize(-1);

Then it should do what ever it is supposed to do. I tried it and it's not obvious what it is doing, but it doesn't crash.

Here is the c-code:

   // magic constant which tells (to some functions) to automatically
   calculate
   // the appropriate size
   #define wxGRID_AUTOSIZE (-1)

Try it out and let us know how it worked.

Regards

Steve.

Reply via email to