Вот код:
Код: Выделить всё
#component "Z_STAFF"
alter interface RECWIN01;
var butMy_var, labelMy_var, butMy_varSee : longint;
!window WINCOMMONDATA;
handleEvent
cmInit :
{
inherited::handleEvent(cmInit);
var i : integer;
for (i := 0; i < 2; i++)
{
cfsSetCurrentContainer('RECWIN01&1.SCRBUTTONS');
cfsCreateObject('button', 'SCRBUTTONS', 'ButDistributionValue', FALSE, butMy_var);
cfsCreateObject('label', 'SCRBUTTONS', 'LableDistributionValue', FALSE, labelMy_var);
cfsCreateObject('button', 'SCRBUTTONS', 'ButDistributionSeeValue', FALSE, butMy_varSee);
cfsSetProp('ButDistributionValue','Visible',TRUE);
cfsSetProp('LableDistributionValue','Visible',false);
cfsSetProp('ButDistributionSeeValue','Visible',true);
cfsSetProp('ButDistributionValue','Size_X',91);
cfsSetProp('ButDistributionValue','Size_Y',25);
cfsSetProp('ButDistributionValue','Origin_X', 10);
cfsSetProp('ButDistributionValue','Origin_Y', 323);
cfsSetProp('LableDistributionValue','Size_X',91);
cfsSetProp('LableDistributionValue','Size_Y',25);
cfsSetProp('LableDistributionValue','Origin_X', 10);
cfsSetProp('LableDistributionValue','Origin_Y', 323);
cfsSetProp('ButDistributionSeeValue','Size_X',91);
cfsSetProp('ButDistributionSeeValue','Size_Y',25);
cfsSetProp('ButDistributionSeeValue','Origin_X', 10);
cfsSetProp('ButDistributionSeeValue','Origin_Y', 323);
! cfsSetProp('ButDistributionValue','Command', cmButDistributionValue);
! cfsSetProp('ButDistributionSeeValue','Command', cmButDistributionSeeValue);
cfsSetProp('ButDistributionSeeValue','Title','Размеры');
}
}
end;
end.