
Các control c b nơ ả

Tổng quan
Maple cung c p cho ng i dùng công c l p trình form ấ ườ ụ ậ
n m trong gói Mapletsằ
Đ dùng Maplets:ể
with(Maplets[Elements]);
Đ xu t m t bi n maplet ta dùng l nh:ể ấ ộ ế ệ
Maplets[Display](TenBienMaplet);

Hello world
Ví d c b n v Maplets:ụ ơ ả ề
with(Maplets[Elements]):
hello1:=Maplet([
"Hello World !”
]):
Maplets[Display](hello1);

Các control
Button
Button[refID](opts)
Label
Label[refID](opts)
TextField
TextField[refID](opts)
Alert
Alert(msg, opts)

Các control
hello2:=Maplet(Window(title=“My first program”,[
[Label("Hello World !")],
[Button("Exit-Print",Shutdown("Hello World !")),
Button("Exit",Shutdown())]
])):
Maplets[Display](hello2);

