http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252016-10-13T17:06:11ZRedmineWt - Support #5341: WTableCell focus losthttp://redmine.emweb.be/issues/5341?journal_id=165572016-10-13T17:06:11ZGunnar Skogsholmgunnarskogsholm@gmail.com
<ul></ul><p>Ok, I figured it by trial and error. For the click events, I attached to signals from WTableCell, but in this case, I needed to attach a function to the child widget of that WTableCell:</p>
<p>auto editWnd = new Wt::WTextArea( fieldData->string_value() );<br><br>
auto tableCell = gridCtl->elementAt( Rec, left() ); // triggers WtTable::createCell<br><br>
tableCell->addWidget( editWnd );<br><br>
editWnd->blurred().connect( dynamic_cast<WtTableCell*>(tableCell), &WtTableCell::focus_lost );</p>
<p>The documentation should be updated to close this issue out.</p>