OutputMsg('FUNCTION = '+IntToStr(Action.FunId)+', SELECTED = '+IntToStr(Action.Selected));
CurProject := Action.Project;
CurAssembly := Action.Assembly;
CurAtom := AtomToObj(Action.Atom);
CurNdx := Action.RowId;
CurView := Action.DataView;
CurLink := Action.DataLink;
if Action.Selected > 0 then
{
CurSelection := CurProject.GetSelected(0);
OutputMsg('ATOM = '+IntToStr(CurAtom.Id)+', ROW = '+IntToStr(CurNdx));
if CurView = DATA_LIST then
{
CurRows := CurLink.Count;
NdxSystem := CurLink.Cell('Reeks');
NdxProfile := CurLink.Cell('Profiel');
OutputMsg('RIJEN = '+IntToStr(CurRows));
CurSystem := CurLink.Value[NdxSystem];
CurProfile := CurLink.Value[NdxProfile];
OutputMsg('REEKS = '+Trim(CurSystem)+', PROFIEL = '+Trim(CurProfile));
NdxGlyph := CurLink.Door('Schets');
CurDoor := IsDoorVisible(DOOR_IMAGE);
CurDoor := SetDoorVisible(DOOR_IMAGE,False);
CurLink.ReadOnly[NdxGlyph] := True;
CurLink.Value[NdxProfile] := 'GUNTER';
CurLink.Paint();
AcceptEditorFunction();
};
if CurView = DATA_GRID then
{
CurRows := CurLink.Rows;
NdxSystem := CurLink.Cell('Reeks');
NdxProfile := CurLink.Cell('Profiel');
NdxPositie := CurLink.Cell('Positie');
OutputMsg('RIJEN = '+IntToStr(CurRows));
CurSystem := CurLink.Value[1][NdxSystem];
CurProfile := CurLink.Value[1][NdxProfile];
CurSide := CurLink.Value[1][NdxPositie];
OutputMsg('REEKS = '+Trim(CurSystem)+', PROFIEL = '+Trim(CurProfile)+', POSITIE = '+IntToStr(CurSide));
CurLink.Value[CurRows][NdxSystem] := 'AC';
CurLink.Value[CurRows][NdxProfile] := '3700X';
CurLink.Value[CurRows][NdxPositie] := 3;
CurLink.Paint();
AcceptEditorFunction();
};
if CurSelection.IsFrameElement || CurSelection.IsVentElement then
{
if CurSelection.C_Reverted = 1 then OutputMsg('Omgekeerd');
if CurSelection.C_Rotated = 1 then OutputMsg('Geroteerd');
};
};
Action.Result := True;