nickware, tom-it, Рабочую область экрана за вычетом панелей следует узнавать у системы, а не константами пользоваться, панели могут быть в разном количестве и размере с любой стороны:
Add(MainForm,546476,203,259) { link(onCreate,4949685:doFor,[(265,279)(265,265)]) } Add(Screen,13531042,378,182) { Point(TopWorkarea) Point(LeftWorkarea) Point(BottomWorkarea) Point(RightWorkarea) } Add(GetIndexData,15693123,378,259) { Count=7 link(onIndex,10518217:doGetString,[(453,265)(453,286)]) link(Data1,13531042:Width,[]) link(Data2,13531042:Height,[]) link(Data3,13531042:CurFrequency,[]) link(Data4,13531042:TopWorkarea,[]) link(Data5,13531042:LeftWorkarea,[]) link(Data6,13531042:BottomWorkarea,[]) link(Data7,13531042:RightWorkarea,[]) } Add(For,4949685,294,259) { End=6 link(onEvent,15693123:doIndex,[]) } Add(ListBox,4292384,448,336) { Left=465 Top=475 Align=5 } Add(StrList,10518217,476,238) { Strings=#6:Ширина|6:Высота|7:Частота|15:Верхняя граница|13:Левая граница|14:Нижняя граница|14:Правая граница| Point(doGetString) Point(onGetString) link(onGetString,13157166:doStrCatDlm,[(520,251)(520,297)(366,297)(366,342)]) } Add(StrCatDelim,13157166,378,336) { Delimiter=": " link(onStrCatDlm,4292384:doAdd,[]) link(Str2,15693123:Var,[(391,314)(384,314)]) }
Исправил Вашу схему:
Add(MainForm,901007,511,231) { Point(doLeft) Point(Width) Point(Height) Point(onResize) Point(doTop) link(onCreate,14830639:doWork2,[]) link(onResize,14830639:doWork3,[(555,258)]) } Add(Screen,6172066,350,259) { Point(BottomWorkarea) Point(RightWorkarea) } Add(Math,10619224,427,336) { OpType=1 ResultType=0 link(onResult,901007:doLeft,[(485,342)(485,265)]) link(Op1,6172066:RightWorkarea,[(433,327)(384,327)]) link(Op2,901007:Width,[(440,326)(517,326)]) } Add(Math,10737364,434,406) { OpType=1 ResultType=0 link(onResult,901007:doTop,[(498,412)(498,272)]) link(Op1,6172066:BottomWorkarea,[(440,395)(377,395)]) link(Op2,901007:Height,[(447,396)(524,396)]) } Add(Hub,8148952,329,336) { link(onEvent1,10619224:doOperation,[]) link(onEvent2,10737364:doOperation,[(358,349)(358,412)]) } Add(HubEx,14830639,551,245) { Angle=3 link(onEvent,8148952:doEvent1,[(555,221)(303,221)(303,342)]) }
|