with (Maplets[Elements]): maplet := Maplet('onstartup'='Action1','reference'='Maplet1', Action('reference'='clickButton4', Evaluate('function'='op([{solve({diff(TextField1,x) = 0},{x})}])','target'='MathMLViewer1','waitforresult'='true')), MathMLViewer('background'="#FFFFFF",'fontsize'='16','foreground'="#000000",'height'='100','reference'='MathMLViewer1','width'='400'), Label('background'="#D6D3CE",'caption'="Zadejte funkci jedné proměnné f(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'), BoxLayout('background'="#D6D3CE",'border'='false','halign'='center','inset'='5','reference'='BoxLayout2','valign'='center','vertical'='true','visible'='true', BoxRow( BoxCell('hscroll'='never','value'='Label1','vscroll'='never'), BoxCell('hscroll'='never','value'='TextField1','vscroll'='never'))), Button('background'="#D6D3CE",'caption'="Stacionární body",'enabled'='true','foreground'="#000000",'onclick'='clickButton4','reference'='Button4','visible'='true'), Button('background'="#D6D3CE",'caption'="Konec",'enabled'='true','foreground'="#000000",'onclick'='Action9','reference'='Button3','visible'='true'), BoxLayout('background'="#D6D3CE",'border'='false','halign'='center','inset'='5','reference'='BoxLayout6','valign'='center','vertical'='true','visible'='true', BoxRow( BoxCell('hscroll'='never','value'='Button4','vscroll'='never'), BoxCell('hscroll'='never','value'='Button3','vscroll'='never'))), BoxLayout('background'="#D6D3CE",'border'='false','halign'='center','inset'='5','reference'='BoxLayout1','valign'='center','vertical'='false','visible'='true', BoxColumn( BoxColumn( BoxCell('hscroll'='never','value'='MathMLViewer1','vscroll'='never')), BoxColumn( BoxCell('hscroll'='never','value'='BoxLayout2','vscroll'='never')), BoxColumn( BoxCell('hscroll'='never','value'='BoxLayout6','vscroll'='never')))), Window('layout'='BoxLayout1','reference'='Window1','resizable'='true','title'="Maplet"), Action('reference'='Action1', RunWindow('window'='Window1')), Return('reference'='Return1'), Action('reference'='Action9', Shutdown(`return`='Return1'))): Maplets[Display](maplet);