On 08/11/2017 at 03:41, xxxxxxxx wrote:
Hi Yannick,
thank you for your help.
That's my fault. I've tried the SetFloat() method.
Actually the res file looks something like this:
DIALOG BS_MC
{
NAME BS_MC_TITLE; FIT_V; SCALE_V; FIT_H; SCALE_H;
GROUP BS_MC_TRANSFORM_POSITION
{
ALIGN_TOP; ALIGN_LEFT;
SCALE_H;
COLUMNS 2;
STATICTEXT BS_MC_PX_TEXT { NAME BS_MC_PX_TEXT; }
EDITNUMBERARROWS BS_MC_PX_INPUT { }
STATICTEXT BS_MC_PY_TEXT { NAME BS_MC_PY_TEXT; }
EDITNUMBERARROWS BS_MC_PY_INPUT { }
STATICTEXT BS_MC_PZ_TEXT { NAME BS_MC_PZ_TEXT; }
EDITNUMBERARROWS BS_MC_PZ_INPUT { }
}
}
But not a single editnumberarrows field accept any value. Even the arrows are without function.
The c++ file looks like this:
Bool BS_MC_Dialog::CreateLayout(void)
{
Bool res = TRUE;
res = LoadDialogResource(BS_MC, nullptr, 0);
GroupBegin(BS_MC_GROUP, BFH_LEFT, 2, 0, "", 0);
{
GroupBorder(BORDER_ACTIVE_1);
GroupBorderSpace(4, 4, 4, 4);
AddStaticText(9000, BFH_LEFT, 0, 0, "Pos:", 0);
AddEditNumberArrows(9001, BFH_LEFT);
}
GroupEnd();
return res;
}
Bool BS_MC_Dialog::InitValues(void)
{
GePrint("InitValues");
if (!GeDialog::InitValues()) return FALSE;
GePrint("SetFloat");
this->SetFloat(MATERIALCHANGE_PX_INPUT, 0.5);
return TRUE;
}
The hard coded editnumberarrows-field is visible and fully functional.
But the InitValues function seems not to be called, because both GePrints aren't called (don't print to the console).
I can't find any failures but something seems to be missing...