{
char tempString[4096];
if(currentRow)
- editBox.contents = ((const char *(*)(void *, void *, char *, void *, bool *))(void *)dataType._vTbl[__ecereVMethodID_class_OnGetString])(dataType, currentRow.GetData(null), tempString, null, null);
+ {
+ const char *(* onGetString)(void *, void *, char *, void *, bool *) = (void *)dataType._vTbl[__ecereVMethodID_class_OnGetString];
+ editBox.contents = onGetString(dataType, currentRow.GetData(null), tempString, null, null);
+ }
else
editBox.contents = "";
}
{
char tempString[4096];
if(currentRow)
- editBox.contents = ((const char *(*)(void *, void *, char *, void *, bool *))(void *)dataType._vTbl[__ecereVMethodID_class_OnGetString])(dataType, currentRow.GetData(null), tempString, null, null);
+ {
+ const char *(* onGetString)(void *, void *, char *, void *, bool *) = (void *)dataType._vTbl[__ecereVMethodID_class_OnGetString];
+ editBox.contents = onGetString(dataType, currentRow.GetData(null), tempString, null, null);
+ }
else
editBox.contents = "";
}
{
char tempString[4096];
if(currentRow)
- editBox.contents = ((const char *(*)(void *, void *, char *, void *, bool *))(void *)dataType._vTbl[__ecereVMethodID_class_OnGetString])(dataType, currentRow.GetData(null), tempString, null, null);
+ {
+ const char *(* onGetString)(void *, void *, char *, void *, bool *) = (void *)dataType._vTbl[__ecereVMethodID_class_OnGetString];
+ editBox.contents = onGetString(dataType, currentRow.GetData(null), tempString, null, null);
+ }
else
editBox.contents = "";
}
if(currentRow)
{
DataDisplayFlags displayFlags { active = active, current = true, dropBox = true, selected = true, fullRow = true };
- ((void (*)(void *, void *, void *, int, int, int, void *, uint, uint))(void *)dataType._vTbl[__ecereVMethodID_class_OnDisplay])(dataType, currentRow.GetData(null), surface, 3,
- 1+(clientSize.h - listBox.rowHeight) / 2, clientSize.w - (button.visible ? button.size.w : 0) - 3,
- field.userData, alignment, displayFlags);
+ void (* onDisplay)(void *, void *, void *, int, int, int, void *, uint, uint) = (void *)dataType._vTbl[__ecereVMethodID_class_OnDisplay];
+ if(onDisplay)
+ onDisplay(dataType, currentRow.GetData(null), surface, 3,
+ 1+(clientSize.h - listBox.rowHeight) / 2, clientSize.w - (button.visible ? button.size.w : 0) - 3,
+ field.userData, alignment, displayFlags);
}
else
surface.WriteText(2,2, "(none)", 6);
{
char tempString[4096];
if(currentRow)
- editBox.contents = ((const char *(*)(void *, void *, char *, void *, bool *))(void *)dataType._vTbl[__ecereVMethodID_class_OnGetString])(dataType, currentRow.GetData(null), tempString, null, null);
+ {
+ const char *(* onGetString)(void *, void *, char *, void *, bool *) = (void *)dataType._vTbl[__ecereVMethodID_class_OnGetString];
+ editBox.contents = onGetString(dataType, currentRow.GetData(null), tempString, null, null);
+ }
else
editBox.contents = "";
if(active)
toolTip.closeTimer.Stop();
if(!mods.isSideEffect && !toolTip.created && rootWindow.active)
toolTip.timer.Start();
- return toolTip.OrigOnMouseOver(this, x, y, mods);
+ return toolTip.OrigOnMouseOver ? toolTip.OrigOnMouseOver(this, x, y, mods) : true;
}
return true;
}
{
toolTip.timer.Stop();
toolTip.closeTimer.Start();
- return toolTip.OrigOnMouseLeave(this, mods);
+ return toolTip.OrigOnMouseLeave ? toolTip.OrigOnMouseLeave(this, mods) : true;
}
return true;
}
{
toolTip.timer.Stop();
toolTip.Destroy(0);
- return toolTip.OrigOnLeftButtonDown(this, x, y, mods);
+ return toolTip.OrigOnLeftButtonDown ? toolTip.OrigOnLeftButtonDown(this, x, y, mods) : true;
}
return true;
}
toolTip.timer.Stop();
toolTip.timer.Start();
}
- return toolTip.OrigOnMouseMove(this, x, y, mods);
+ return toolTip.OrigOnMouseMove ? toolTip.OrigOnMouseMove(this, x, y, mods) : true;
}
return true;
}