Well… I’ll be jiggered! That works. Thanks! While I “got you on the phone”, I have another related question, but I’ll send in another thread. --------------------------------- Jim Clark Senior Software Engineer, EES Apple, Inc 408-974-9906 (office) 408-781-1425 (cell)
** Converting pizza into code for over 20 years ** On May 2, 2014, at 12:55 AM, Steve Cookson - gmail <steveco.1...@gmail.com> wrote: > 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.