wxGrid how to set topmost left cell value

Robin Dunn robin at alldunn.com
Mon Jan 1 11:02:18 PST 2007


Adib Taraben wrote:
> Vadim Zeitlin schrieb:
>> On Sun, 31 Dec 2006 16:11:21 +0100 Adib Taraben 
>> <taraben.a at st-innovation.com> wrote:
>>
> ...
>> AT> AT> Grid->SetCellValue(-1, -1, wxT("blah"));
>> AT> Grid->SetColLabelValue(-1, wxT("blah"));
>> AT> Grid->SetRowLabelValue(-1, wxT("blah"));
> ...
>>  What do you try to do by passing -1 here? You must pass a valid 
>> column/row
>> index.
>>
>>  Regards,
>> VZ
> 
> here | cl0 | cl1 | cl2
> -----------------------
>  rl0 | c00 | c01 | c02
> -----------------------
>  rl1 | c10 | c11 | c12
> -----------------------
>  rl2 | c20 | c21 | c22
> 
> I have this kind of grid where clx are collumn labels 
> (SetColLabelValue), rlx are row labels (SetRowLabelValue) and cxx cells 
> for row and collumn (SetCellValue).
> But how can I go to the cell with the value "here" and set a text?

It doesn't support a label there, but you can catch the paint event for 
grid->GetGridCornerLabelWindow() and paint one yourself.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wx-users mailing list