Search found 3 matches

by abench
Fri Mar 30, 2007 5:08 pm
Forum: C++ Development
Topic: control cell attributes from wxGridTableBase descendant
Replies: 5
Views: 462

[quote="phlox81"]No, you need to overwrite the method in the wxGridTable class.[/quote

I override this method (see first message). Don't dont work. What I must do except overriding wxGridBase::GetAttr? May be additional activities or sending messages are need ?c
by abench
Thu Mar 29, 2007 8:22 pm
Forum: C++ Development
Topic: control cell attributes from wxGridTableBase descendant
Replies: 5
Views: 462

wxGridCellAttr* DataTable::GetAttr(int row, int col) { if(col < tcivec.size()) { return tcivec[col]->GetAttr(); } return wxGridTableBase::GetAttr(row,col); } You need to create an wxGridCellAttr instance for each celltype, and return it. Which type of DataTable? wxGrid? I understand that need to ov...
by abench
Thu Mar 29, 2007 4:14 pm
Forum: C++ Development
Topic: control cell attributes from wxGridTableBase descendant
Replies: 5
Views: 462

control cell attributes from wxGridTableBase descendant

How to control cell attributes from wxGridTableBase descendant?
I need to control cell attributes directly from successor of wxGridTableBase.
I override GetAttr method and experimenting with different return values of CanHaveAttributes method. Unsuccesfully.