Вверх ↑
Разработчик
Ответов: 26161
Рейтинг: 2127
#1: 2008-03-14 03:07:35 ЛС | профиль | цитата
HikeR, на вот тебе ссылку на обновление StringTableMT до версии 6.60 (добавлены три точки -- TopItem, PerPage и ItemAtPos (только отстань, а то достала меня эта таблица ))

[svn]StringTableMT.pas[/svn]

и пример определения пункта под курсором в двух вариантах под новую версию



Add(MainForm,1258690,224,189)
{
Left=20
Top=105
Height=187
Position=1
}
Add(StringTableMT,12838812,287,189)
{
Left=10
Top=10
Width=360
Height=95
Columns=#4:1=80|4:2=80|4:3=80|
AssignedIList=0
IconsCheck=[]
MiscIcons=[]
Icons=['Icon'=[ZIP7E03000078DAAD524B4B0251143EE11F900A9322132D5444A894284BB40423487053D1A645ABFE86B86897CF747C35E32B48A1962D5BF44BA2A06DBB7306023BB79932650217DE997399F9EE77BEF3B807608A1FB31978B7C28509C002006E3686C00E1A2E56C404935B811A85158A28B4DB200DF1D7F48FF82D19BAECC8E491D05741DEED055C2909DA61878EBBEA694FFD2F90E31AAD599C49E3415BF0B7650A370CF467D3C847A2F212CEE7F017774BB47963C05F2EA225236891864EE094E6B2E2DD6B8EF2B94C5B01A7D378D41D1CAD57C95512228B790CC9037CA34E6B55E2B43D1271E6C1E1E89CA4B388ECF857DC5736C8D096C7C4DD685BA24DDAFA11641D0EEDFCEE0FFF066511CE5124BE9AA842C1FA90A63583E62B5CC8894E6A88562FEF81BA414BCF1FD4B37B95AB58CAEB7C76F74A186F51A243FE8AF115C7DAE42DEB7CEED83883B4DFA69042E30FDE494F8DB5685263DCEF03BC3C027C38013E5D006FEF6C9700CF2980E42B802C03AC269993D24C7D625E5F33E1FB05FD63BEC1],'Icon'=[ZIP7E03000078DA63606004420101062029C190C1CCC020C6C0C0A001C440210605068838083830330C49F01F0911A38CA020A9E6C3A5886120EB62C0A68C015525A6D5FF3118F89531E09522E8485C528327FC6999B690C01FFBFFFF1F1F87D0933CFFFF7F15FEFFBFEC8EFFFFDF95FFFF3FF924AA3C0C00009DE778F9],'Icon'=[ZIP7E03000078DA63606004420101062029C190C1CCC020C6C0C0A001C440210605068838083830338C48D00006C42B3B70E000880141B8151F000384FAFFFFF1A83F000368EAE100AE00EE06AAA8C7E59E67CF9E91A41EA2050888578F1C5004C3132D1688892FAA00A02710F83310373230FC638060740012FB0F74D7FFC7083D00C1A6957E],'Icon'=[ZIP7E03000078DABD90B10E82301086AF7426210C8D6172F4317C1C5F80C242CA60E22BC843149E8208F2026EAE8E8E6E786DA5514C695CFC7BFF059AEF8E3B00089E2802CC2BD8510006001B345EC11ACCBDD29682432521F08BFEC69FDA561445C679CE39669EA679A6C5B98B97B2C6570C7CA865DD68CD785B82BC816D485DF2CDAB125DB50FC332A02208108BE323868B37FD0F8C0942C4D47F99EFDEE637CD17E641F55DD77CCAC3F7BDC192A4C2E68C55AEFFF39AA73B6343BBA6775FCB1BD866F73C8AB79FF0EE3B0C83E167E1E2BDBA8EE338F9428D6FE83BFAE1B1D2139D2CD897],'Icon'=[ZIP9605000078DA636060044221210620A9C0D0C0CAC020C6C0C0A001C4402106150688380844B032D003F040AD3580D212487C74AC02558F0D80E4728078021057007102949E800583C46DB099E56C6AFADF565FFFBF1D900672B7987A86FF379AF3E0BFD1BC2760AC33FDEE7FED796FFEDBFB7A81E5A166A960B8A6B3F33F434DCD7F91AC8CFF9ED179FFE3EEFFFFAFBBF0E57F535B93FFFAF6B6FFEB664DFB5F3E6DF2FFF2C2C2FFE56565FFA1EE32C030A7B4E63F4366C17FD198B8FF46DEA920752B4EBC7EFA7FCBDD7BFF773F7FF13F1BA837BBBAEAFFDAB5EBF09AA3F87FEF7F996F6BFFEBECEFFDEFEDE4FA3F2825FD7F0810A796E5FC8FCE4B05EB8761BCEE4102A74F9F86EB6160B803C7EBD7AF27CB1C64FD3036B9E6C0CC80D1D4F01725E1830D8F863351E19C83357F911ECEF8CA0EB2C17F2038C008C40C98F807911804007155A5FA],'Icon'=[ZIP7E03000078DA63606004420101062029C190C1CCC020C6C0C0A001C440210605068838083830330C02F01F156182063082A884B3D1180D1822FF51D978D4E351F61FD5344C27E1B29D01554B030EF41F87FAFFB88D856B44538F2685DF7CB4C064C0117A0C1856E08AAFFFB86316AB764AD2036D532314FC91FFFF7FA2C2FFFF1D407C90F9FFFF13AAFFFF1F6005B215FFFFBF00A41F2BFFFFFF46FAFFFFCFE910B5300000FAFD7FC3],'Icon'=[ZIP7E03000078DA63606004420101062029C190C1CCC020C6C0C0A001C440210605068838083830330C49F01F0911A30C011AC088688DFF61EAB12AC0C240528FE9BCFFA8E47F1CEE417776035E84613E31EA31DD8F163E0C78839760F8D03AFC6999B690C01FFBFFFF1F1F07D2FCFFFF4FF2FCFFFF95FBFFFF3240156F8078F24988384C1E0600F7027838]]
StringsStrLst=#16:0;0000;1111;2222|16:1;1111;2222;3333|16:2;2222;3333;4444|17:3;3333;44444;5555|16:4;6666;7777;8888|16:5;7777;8888;9999|16:6;8888;9999;0000|
AutoTblStrLst=0
Point(MouseY)
Point(onMouseMove)
Point(ImgSize)
Point(TopItem)
Point(PerPage)
Point(ItemAtPos)
link(onMouseMove,10325462:doEvent1,[(351,202)(351,262)(233,262)(233,321)])
}
Add(Math,16329455,301,315)
{
OpType=1
Op2=19
ResultType=0
link(onResult,14550431:doCompare,[])
link(Op1,12838812:MouseY,[])
}
Add(If_else,14550431,357,315)
{
Type=4
link(onTrue,4517733:doCalc,[])
}
Add(MathParse,4517733,413,315)
{
DataCount=3
MathStr="%1 div (%2 + 1) + %3"
ResultType=0
link(onResult,9347758:doText,[])
link(X2,12838812:ImgSize,[(426,271)(314,271)])
link(X3,12838812:TopItem,[(433,271)(321,271)])
}
Add(Edit,9347758,469,315)
{
Left=100
Top=110
Text=""
link(onChange,633828:doText,[(513,321)(513,342)(443,342)(443,363)])
}
Add(InfoTip,14835596,175,287)
{
Info=#23:Correct Shift on Header|
Width=169
Height=67
}
Add(Edit,633828,455,357)
{
Left=155
Top=110
Text=""
link(Str,12838812:PerPage,[(461,292)(328,292)])
}
Add(Edit,16705098,399,420)
{
Left=100
Top=130
Text=""
link(Str,12838812:ItemAtPos,[(405,310)(335,310)])
}
Add(InfoTip,15271026,315,399)
{
Info=#17:Example ItemAtPos|
Width=169
Height=67
}
Add(Hub,10325462,245,315)
{
link(onEvent1,16329455:doOperation,[])
link(onEvent2,16705098:doText,[(289,328)(289,426)])
}

карма: 22

0