with (Maplets[Elements]): maplet := Maplet('onstartup'='Action1','reference'='Maplet1', Plotter('background'="#FFFFFF",'continuous'='true','delay'='100','height'='220','reference'='Plotter1','visible'='true','width'='220'), Label('background'="#D6D3CE",'caption'="Zadejte funkci x:",'enabled'='true','foreground'="#000000",'reference'='Label1','visible'='true'), TextField('background'="#FFFFFF",'editable'='true','enabled'='true','foreground'="#000000",'halign'='left','reference'='TextField1','visible'='true','width'='20'), Action('reference'='clickButton1', Evaluate('function'='plot(TextField1, x=-10..10)',`option`="value",'target'='Plotter1','waitforresult'='true')), Button('background'="#D6D3CE",'caption'="Vykreslit",'enabled'='true','foreground'="#000000",'onclick'='clickButton1','reference'='Button1','visible'='true'), Return('reference'='Return1'), Action('reference'='clickButton2', Shutdown(`return`='Return1')), Button('background'="#D6D3CE",'caption'="Konec",'enabled'='true','foreground'="#000000",'onclick'='clickButton2','reference'='Button2','visible'='true'), BoxLayout('background'="#D6D3CE",'border'='false','halign'='center','inset'='5','reference'='BoxLayout1','valign'='center','vertical'='false','visible'='true', BoxColumn( BoxRow( BoxCell('hscroll'='never','value'='Plotter1','vscroll'='never')), BoxRow( BoxColumn( BoxCell('hscroll'='never','value'='Label1','vscroll'='never')), BoxColumn( BoxCell('hscroll'='never','value'='TextField1','vscroll'='never'))), BoxRow( BoxCell('hscroll'='never','value'='Button1','vscroll'='never'), BoxCell('hscroll'='never','value'='Button2','vscroll'='never')))), Window('layout'='BoxLayout1','reference'='Window1','resizable'='true','title'="Maplet"), Action('reference'='Action1', RunWindow('window'='Window1'))): Maplets[Display](maplet);