GPU-Calc: remove Alloc_Host_Ptr for clmem of NAN vector
[LibreOffice.git] / odk / examples / python / toolpanel / toolPanelPocBasic / Module1.xba
blob9d44f7f011b6b22fbcfb7028bdb7c2870bd4d857
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
3 <script:module xmlns:script="http://openoffice.org/2000/script" script:name="Module1" script:language="StarBasic">
4 global theDialog
7 Sub dialogOnLoad(event)
9 theDialog = event.source
11 End Sub
13 sub buttonClick(event)
16 theButton = theDialog.getControl(&quot;CommandButton1&quot;)
17 theTextField = theDialog.getControl(&quot;TextInfo&quot;)
19 colors = Array(rgb(255,0,0),rgb(0,255,0),rgb(0,0,255))
20 rank = getSystemTicks() mod 3
22 theDialog.Model.BackgroundColor = colors(rank)
23 theTextField.text = cstr(Now) + chr(10)+&quot;Color &quot; + cstr(rank) + &quot; randomly applied&quot;
25 theButton.label = &quot;Click Me to change color&quot;
28 end sub
29 </script:module>