50 FXMAPFUNC(SEL_COMMAND, FXWindow::ID_ENABLE, FXBaseObject::onCmdEnable),
51 FXMAPFUNC(SEL_COMMAND, FXWindow::ID_DISABLE, FXBaseObject::onCmdDisable),
52 FXMAPFUNC(SEL_UPDATE, FXWindow::ID_DISABLE, FXBaseObject::onUpdate),
54 FXIMPLEMENT(
FXBaseObject, FXObject, FXBaseObjectMap, ARRAYNUMBER(FXBaseObjectMap))
62 app = FXApp::instance();
64 fxerror(
"%s: Cannot create object without FXApp object\n", getClassName());
69 FXBaseObject::FXBaseObject(FXApp* a, FXObject* tgt, FXSelector sel) : FXObject() {
76 app = FXApp::instance();
79 fxerror(
"%s: Cannot create object without FXApp object\n", getClassName());
85 if (
data !=
nullptr &&
data != (
void*) - 1) {
86 fxerror(
"%s::~%s - user data is not NULL prior to destruction\n", getClassName(), getClassName());
94 FXObject::save(store);
101 store.save((FXuchar*)
data, (
unsigned long)
datalen);
106 FXObject::load(store);
113 store.load((FXuchar*)
data, (
unsigned long)
datalen);
121 return FXApp::instance();
148 sender->handle(
this, FXSEL(SEL_UPDATE, FXWindow::ID_ENABLE),
nullptr);
150 sender->handle(
this, FXSEL(SEL_UPDATE, FXWindow::ID_DISABLE),
nullptr);