File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 2626 ' handler' :
2727 ' prefix' : ' handler'
2828 ' body' : ' handler ${1:/* name */}(${2:/* args */}) returns ${3:/* type */}\n\t ${4:/* code */}\n end handler'
29+
30+ ' lcbtemplate' :
31+ ' prefix' : ' lcbt'
32+ ' body' : ' -- declaring extension as widget, followed by identifier\n
33+ widget community.livecode.username.identifier\n
34+ use com.livecode.canvas\n
35+ use com.livecode.widget\n
36+ use com.livecode.engine\n
37+ metadata title is "title"\n
38+ metadata author is "author"\n
39+ metadata version is "1.0.0"\n
40+ \n
41+ -- property yourProperty get mYourVariable set yourSetCommand
42+ \n
43+ \n
44+ public handler OnLoad(in pProperties as Array)\n
45+ -- your code here\n
46+ put pProperties["myProperty"] into mMyVariable\n
47+ end handler\n
48+ \n
49+ public handler OnSave(out rProperties as Array)\n
50+ -- your code here\n
51+ put the empty array into rProperties\n
52+ put mMyVariable into rProperties["myProperty"]\n
53+ return rProperties\n
54+ end handler\n
55+ \n
56+ public handler OnCreate()\n
57+ -- your code here\n
58+ end handler\n
59+ \n
60+ public handler OnPaint()\n
61+ -- your code here\n
62+ end handler\n
63+ \n
64+ end widget'
65+
You can’t perform that action at this time.
0 commit comments