Hi all,
I have a question about FXTable. I have tride to chage the icon in a =
FXTable, by using the example "table.cpp", and it always make crash.
How can i solve this problem?
My code:
.
.
.
// Inserted
long TableWindow::onTableInserted(FXObject*,FXSelector,void* ptr){
FXTableRange *tr=3D(FXTableRange*)ptr;
penguinicon=3Dnew FXBMPIcon(getApp(),penguin,0,IMAGE_ALPHAGUESS);
table->setItemIcon(6,6,penguinicon);
table->setItemIconPosition(6,6,FXTableItem::AFTER);
=
table->setItemJustify(6,6,FXTableItem::CENTER_X|FXTableItem::CENTER_Y);
table->recalc();
FXTRACE((10,"SEL_INSERTED fm.row=3D%d, fm.col=3D%d to.row=3D%d, =
to.col=3D%d\n",tr->fm.row,tr->fm.col,tr->to.row,tr->to.col));
return 1;
}
.
.
.
Thanks, Gyulus
|