com
Used to manage app's background codes.
The basics
Basicly add method.
access {Def: public}
args {Def: {}}
name {Def: String.Empty}
code {Def: String.Empty}
isfield {Def: false}
returntype {Def: void}
fielddefualt {Def: String.Empty}
com new method -> $windowName as cs:
"name": "methodname",
"args": "sender, e",
"code": "
MessageBox.Show(\"Hi\");
".
;
Example
//Made with BH
set $windowName (window):
"Title": "Calc",
"Width": "270",
"Height": "330"
;
com new method -> $windowName as cs:
"name": "methodname",
"args": "sender, e",
"code": "
MessageBox.Show(\"Hi\");
".
;
app new comp -> $windowName as Button:
"inner": "1",
"Width": "50",
"Height": "50",
"Click": "methodname".
;
show $windowName;
//Coded with BH Beta 0.5.2

Last updated