Вверх ↑
Ответов: 189
Рейтинг: 6
#1: 2022-06-19 16:44:28 ЛС | профиль | цитата
Подправил демо схему от andrestudio, теперь работает!
Add(MainForm,2953706,35,49)
{
Width=669
Height=531
Caption="EditEx test v1.1"
}
Add(EditEx,11613979,105,49)
{
Width=651
Align=2
Caption=" Open file"
HelpData="Open file from edit *"
AddBtn=0
BtnIcon=1
IconIdx=3
Text=""
Point(OnClickBtn)
link(OnClickBtn,16530815:doExecute,[])
}
Add(ODialog,16530815,161,63)
{
link(onExecute,11613979:doText2,[(203,69)(203,38)(93,38)(93,62)])
}
Add(Browse,6485791,161,196)
{
link(onBrowse,11008349:doText2,[(205,202)(205,175)(92,175)(92,195)])
}
Add(EditEx,15020701,105,119)
{
Top=24
Width=651
Align=2
Caption=" Save file"
HelpData="Save file from edit *"
AddBtn=0
BtnIcon=2
IconIdx=0
Text=""
Point(OnClickBtn)
link(OnClickBtn,11406189:doExecute,[])
}
Add(SDialog,11406189,161,133)
{
link(onExecute,15020701:doText2,[(205,139)(205,108)(94,108)(94,132)])
}
Add(EditEx,11008349,105,182)
{
Top=48
Width=651
Align=2
Caption=" Select folder"
HelpData="Select folder from edit files *"
AddBtn=0
BtnIcon=3
IconIdx=0
Text=""
Point(OnClickBtn)
link(OnClickBtn,6485791:doBrowse,[])
}
Add(EditEx,15282237,231,49)
{
Top=414
Width=651
Align=4
Caption=" Open file"
HelpData="Open file from edit *"
AddBtn=0
BtnIcon=1
IconIdx=3
Text=""
Alignment=1
Point(OnClickBtn)
link(OnClickBtn,8209799:doExecute,[])
}
Add(ODialog,8209799,287,63)
{
link(onExecute,15282237:doText2,[(329,69)(329,38)(219,38)(219,62)])
}
Add(Browse,5401036,287,196)
{
link(onBrowse,7430596:doText2,[(331,202)(331,175)(218,175)(218,195)])
}
Add(EditEx,10555466,231,119)
{
Top=438
Width=651
Align=4
Caption=" Save file"
HelpData="Save file from edit *"
AddBtn=0
BtnIcon=2
IconIdx=0
Text=""
Alignment=1
Point(OnClickBtn)
link(OnClickBtn,5871219:doExecute,[])
}
Add(SDialog,5871219,287,133)
{
link(onExecute,10555466:doText2,[(331,139)(331,108)(220,108)(220,132)])
}
Add(EditEx,7430596,231,182)
{
Top=462
Width=651
Align=4
Caption=" Select folder"
HelpData="Select folder from edit files *"
AddBtn=0
BtnIcon=3
IconIdx=0
Text=""
Alignment=1
Point(OnClickBtn)
link(OnClickBtn,5401036:doBrowse,[])
}
Add(EditEx,7105579,231,294)
{
Left=25
Top=140
Width=390
Caption="Icons from shell"
HelpData="Select icon from shell32.dll"
AddBtn=0
BtnIcon=4
IconIdx=1
ValidIdx=0
Text=""
Point(doSelectIconFromIndex)
Point(OnClickBtn)
link(OnClickBtn,11187712:doWork2,[])
}
Add(CounterEx,16206969,105,266)
{
Max=1000
Default=-1
Point(doPrev)
link(onNext,2036762:doEvent1,[])
}
Add(Button,2869935,42,308)
{
Left=25
Top=305
Width=40
Height=40
Caption="<"
link(onClick,16206969:doPrev,[(92,314)(92,279)])
}
Add(EditEx,8440707,231,252)
{
Left=25
Top=190
Width=390
Caption="Icons from Imageres"
HelpData="Select from ImagesRes.dll"
AddBtn=0
BtnIcon=5
IconIdx=3
ValidIdx=1
Text=""
Point(doSelectIconFromIndex)
Point(OnClickBtn)
link(OnClickBtn,11187712:doWork1,[(284,272)])
}
Add(Button,14389369,42,266)
{
Left=75
Top=305
Width=40
Height=40
Caption=">"
link(onClick,16206969:doNext,[])
}
Add(Hub,2036762,161,266)
{
OutCount=3
link(onEvent1,8440707:doSelectIconFromIndex,[])
link(onEvent2,7105579:doSelectIconFromIndex,[(212,279)(212,314)])
link(onEvent3,9965400:doString,[(198,286)(198,384)])
}
Add(Label,8928804,301,378)
{
Left=130
Top=320
}
Add(FormatStr,9965400,231,378)
{
Mask="Index - %1"
link(onFString,8928804:doText,[])
}
Add(PopupMenu,9384048,301,301)
{
Menu=#4:Open|4:Save|1:-|4:Exit|
}
Add(HubEx,11187712,280,308)
{
link(onEvent,9384048:doPopup,[])
}
Add(EditEx,2108714,231,336)
{
Left=270
Top=315
Width=145
Height=20
Caption="Edit text"
HelpData="test help ->"
AddBtn=0
ValidIdx=0
Text=""
Point(OnClickBtn)
Point(doValidInput)
link(OnClickBtn,11187712:doWork3,[(284,356)])
}
Add(StyleXP,14164755,35,105)
{
}
Add(EditEx,16078175,300,252)
{
Left=25
Top=240
Width=390
Caption="Icons from Imageres"
HelpData="Select from ImagesRes.dll"
AddBtn=0
BtnIcon=5
IconIdx=3
ValidIdx=2
Text=""
Point(doSelectIconFromIndex)
Point(OnClickBtn)
}
Add(Button,7591411,42,350)
{
Left=220
Top=310
Width=30
Height=30
Caption="Idx"
link(onClick,10583483:doNext,[])
}
Add(CounterEx,10583483,105,350)
{
Min=-1
Max=2
link(onNext,2108714:doValidInput,[])
}
Add(EditEx,11015908,44,435)
{
Left=470
Top=145
Width=150
Height=20
Caption="Ф:"
CapPosition=0
HelpData="Фамилия *"
ValidIdx=0
Text=""
}
Add(EditEx,5417156,92,435)
{
Left=470
Top=170
Width=150
Height=20
Caption="И:"
CapPosition=0
HelpData="Имя *"
ValidIdx=0
Text=""
}
Add(EditEx,6927337,142,435)
{
Left=470
Top=195
Width=150
Height=20
Caption="О:"
CapPosition=0
HelpData="Отчество *"
ValidIdx=0
Text=""
}
Add(EditEx,7402617,191,435)
{
Left=470
Top=220
Width=150
Height=20
Caption="Тел:"
CapPosition=0
HelpData="Телефон"
Text=""
}

карма: 1
HiAsm Studio
0
Редактировалось 2 раз(а), последний 2022-06-19 16:45:35