with (Maplets[Elements]): maplet := Maplet('onstartup'='Action1','reference'='Maplet1', Action('reference'='clickButton2', Evaluate('function'='(TextField2-TextField4)/(TextField1-TextField3)','target'='MathMLViewer3','waitforresult'='true')), Action('reference'='clickButton3', Evaluate('function'='TextField2 - (TextField2-TextField4)/(TextField1-TextField3)*TextField1',`option`="value",'target'='MathMLViewer2','waitforresult'='true')), Action('reference'='clickButton1'), Label('background'="#D6D3CE",'caption'="x-ová souřadnice bodu A",'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'='BoxLayout3','valign'='center','vertical'='true','visible'='true', BoxRow( BoxCell('hscroll'='never','value'='Label1','vscroll'='never'), BoxCell('hscroll'='never','value'='TextField1','vscroll'='never'))), Label('background'="#D6D3CE",'caption'="x-ová souřadnice bodu B",'enabled'='true','foreground'="#000000",'reference'='Label4','visible'='true'), TextField('background'="#FFFFFF",'editable'='true','enabled'='true','foreground'="#000000",'halign'='left','reference'='TextField3','visible'='true','width'='20'), BoxLayout('background'="#D6D3CE",'border'='false','halign'='center','inset'='5','reference'='BoxLayout4','valign'='center','vertical'='true','visible'='true', BoxRow( BoxCell('hscroll'='never','value'='Label4','vscroll'='never'), BoxCell('hscroll'='never','value'='TextField3','vscroll'='never'))), BoxLayout('background'="#D6D3CE",'border'='false','halign'='center','inset'='5','reference'='BoxLayout2','valign'='center','vertical'='false','visible'='true', BoxColumn( BoxCell('hscroll'='never','value'='BoxLayout3','vscroll'='never'), BoxCell('hscroll'='never','value'='BoxLayout4','vscroll'='never'))), Label('background'="#D6D3CE",'caption'="y-ová souřadnice bodu A",'enabled'='true','foreground'="#000000",'reference'='Label2','visible'='true'), TextField('background'="#FFFFFF",'editable'='true','enabled'='true','foreground'="#000000",'halign'='left','reference'='TextField2','visible'='true','width'='20'), BoxLayout('background'="#D6D3CE",'border'='false','halign'='center','inset'='5','reference'='BoxLayout6','valign'='center','vertical'='true','visible'='true', BoxRow( BoxCell('hscroll'='never','value'='Label2','vscroll'='never'), BoxCell('hscroll'='never','value'='TextField2','vscroll'='never'))), Label('background'="#D6D3CE",'caption'="y-ová souřadnice bodu B",'enabled'='true','foreground'="#000000",'reference'='Label5','visible'='true'), TextField('background'="#FFFFFF",'editable'='true','enabled'='true','foreground'="#000000",'halign'='left','reference'='TextField4','visible'='true','width'='20'), BoxLayout('background'="#D6D3CE",'border'='false','halign'='center','inset'='5','reference'='BoxLayout7','valign'='center','vertical'='true','visible'='true', BoxRow( BoxCell('hscroll'='never','value'='Label5','vscroll'='never'), BoxCell('hscroll'='never','value'='TextField4','vscroll'='never'))), BoxLayout('background'="#D6D3CE",'border'='false','halign'='center','inset'='5','reference'='BoxLayout5','valign'='center','vertical'='false','visible'='true', BoxColumn( BoxCell('hscroll'='never','value'='BoxLayout6','vscroll'='never'), BoxCell('hscroll'='never','value'='BoxLayout7','vscroll'='never'))), Button('background'="#D6D3CE",'caption'="Výpočet směrnice",'enabled'='true','foreground'="#000000",'onclick'='clickButton2','reference'='Button2','visible'='true'), Button('background'="#D6D3CE",'caption'="Výpočet konstanty",'enabled'='true','foreground'="#000000",'onclick'='clickButton3','reference'='Button3','visible'='true'), Button('background'="#D6D3CE",'caption'="Button1",'enabled'='true','foreground'="#000000",'onclick'='clickButton1','reference'='Button1','visible'='true'), Label('background'="#D6D3CE",'caption'="y=",'enabled'='true','foreground'="#000000",'reference'='Label6','visible'='true'), MathMLViewer('background'="#FFFFFF",'fontsize'='18','foreground'="#000000",'height'='100','reference'='MathMLViewer3','width'='300'), Label('background'="#D6D3CE",'caption'="x +",'enabled'='true','foreground'="#000000",'reference'='Label7','visible'='true'), MathMLViewer('background'="#FFFFFF",'fontsize'='18','foreground'="#000000",'height'='100','reference'='MathMLViewer2','width'='300'), BoxLayout('background'="#D6D3CE",'border'='false','halign'='center','inset'='5','reference'='BoxLayout1','valign'='center','vertical'='false','visible'='true', BoxColumn( BoxRow( BoxCell('hscroll'='never','value'='BoxLayout2','vscroll'='never'), BoxCell('hscroll'='never','value'='BoxLayout5','vscroll'='never')), BoxRow( BoxCell('hscroll'='never','value'='Button2','vscroll'='never'), BoxCell('hscroll'='never','value'='Button3','vscroll'='never'), BoxCell('hscroll'='never','value'='Button1','vscroll'='never')), BoxRow( BoxCell('hscroll'='never','value'='Label6','vscroll'='never'), BoxCell('hscroll'='never','value'='MathMLViewer3','vscroll'='never'), BoxCell('hscroll'='never','value'='Label7','vscroll'='never'), BoxCell('hscroll'='never','value'='MathMLViewer2','vscroll'='never')))), Window('layout'='BoxLayout1','reference'='Window1','resizable'='true','title'="Maplet"), Action('reference'='Action1', RunWindow('window'='Window1'))): Maplets[Display](maplet);