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);