35 #ifdef CHECK_MEMORY_LEAKS
37 #endif // CHECK_MEMORY_LEAKS
114 FXSelector sel, FXuint opts,
115 FXint x, FXint y, FXint w, FXint h,
116 FXint pl, FXint pr, FXint pt, FXint pb)
117 :
FXTable(p, tgt, sel, opts, x, y, w, h, pl, pr, pt, pb),
120 new FXTextField((FXComposite*)getParent(), 1,
this,
121 ID_EDITOR, FRAME_NORMAL | LAYOUT_EXPLICIT);
123 flags |= FLAG_ENABLED | FLAG_DROPTARGET;
140 FXTablePos* e = (FXTablePos*)ptr;
143 if (c == -1 || r == -1) {
146 killSelection(
false);
150 if (c >= 0 && r >= 0) {
181 FXTableItem* it = item;
183 FXint x = getColumnX(
myEditedCol) + getRowHeader()->getWidth() + xpos;
184 FXint y = getRowY(
myEditedRow) + getColumnHeader()->getHeight() + ypos;
185 FXIcon* icon = item->getIcon();
187 x += icon->getWidth() + 4;
189 FXint vw = getViewportWidth();
190 if (vertical->shown()) {
191 vw -= vertical->getWidth();
205 }
else if (how ==
'A') {
224 FXString text =
myEditor->getText();
226 if (item->getText() == text) {
229 if (handle(item, FXSEL(SEL_COMMAND,
ID_EDITEND), &text)) {
231 handle(
this, FXSEL(SEL_CHANGED, 0), item);
239 if (!target->handle(
this, FXSEL(SEL_CHANGED,
ID_TEXT_CHANGED), (
void*) &edited)) {
268 FXEvent* e = (FXEvent*)ptr;
291 FXint key = ((FXEvent*)ptr)->code;
292 if ( key == KEY_Return || key == KEY_KP_Enter) {
381 return FXTable::onKeyPress(o, s, d);