// first, declare the ui and the tkscript code:
... // ui code
#script
... // script code
// note the lexers of ui and script are different!
// so parse #script before even the lexer phase!
// text ex:
begin txt a
    x = 10
    y = 10
    dx = 100
    dy = 50
    font_color = 0xff0000
    font_family = `Arial` // use a pair of "`"s for a string!
    font_size = 12
    text = `aaa
bbb
ccc` // different to in simulang, a string expression in tkht may be multilined!
// and the "`"s of right-values are free, means the data-types in tkht are all dynamical! (such as =10 =`10` =0xa =`0xa` =a =`a`; but begin `begin` are different because keyword!)
end
// edit ex:
begin edit b
    name = `b` // set name = `` to disable of form
    x = 10
    y = 70
    dx = 50
    dy = 30
end
// button ex:
begin button c
    submit = `http://x0000.net/`
    x = 10
    y = 110
    dx = 20
    dy = 10
end
// common properties of elements (but not picture!)
x
y
dx
dy
back_color
font_color
font_family
font_size
text // but a select does not have a property text!
// common events of elements:
on_mouse_click(btn,x,y)
on_mouse_down(btn,x,y)
on_mouse_up(btn,x,y)
on_mouse_move(btn,x,y)
on_mouse_enter()
on_mouse_leave()
// list of all types of elemenits (but there is no table and no radio!):
link // (in C#) use TextBox instead of Label, for can select and copy
txt // (in C#) use TextBox instead of Label, for can select and copy
edit
pictrue
button
check
select
// list shows all the "form" elements but not button
edit
check
select
// use a button with submit = true to submit a "form"
// syntax of select: (a select does not have a property text!)
begin select s
    x = 10
    y = 10
    dx = 20
    dy = 10
    options = `a|b|c` // use a "|" in the string to split options
    default = `a` // and there are no differences between text and value of options!
end