equal
deleted
inserted
replaced
|
1 \raw HTML |
|
2 //! [0] |
|
3 <script language="javascript"> |
|
4 function setColor( form ) |
|
5 { |
|
6 Ax1.fillColor = form.colorEdit.value; |
|
7 } |
|
8 |
|
9 function setWidth( form ) |
|
10 { |
|
11 Ax2.lineWidth = form.widthEdit.value; |
|
12 } |
|
13 </script> |
|
14 |
|
15 <p /> |
|
16 This is one QWidget subclass:<br /> |
|
17 <object ID="Ax1" CLASSID="CLSID:1D9928BD-4453-4bdd-903D-E525ED17FDE5" |
|
18 CODEBASE="http://qt.nokia.com/demos/multipleax.cab"> |
|
19 [Object not available! Did you forget to build and register the server?] |
|
20 </object><br /> |
|
21 <form> |
|
22 Fill Color: <input type="edit" ID="colorEdit" value = "red" /> |
|
23 <input type="button" value = "Set" onClick="setColor(this.form)" /> |
|
24 <input type="button" value = "Hide" onClick="Ax1.hide()" /> |
|
25 <input type="button" value = "Show" onClick="Ax1.show()" /> |
|
26 </form> |
|
27 |
|
28 <p /> |
|
29 This is another QWidget subclass:<br /> |
|
30 <object ID="Ax2" CLASSID="CLSID:58139D56-6BE9-4b17-937D-1B1EDEDD5B71" |
|
31 CODEBASE="http://qt.nokia.com/demos/multipleax.cab"> |
|
32 [Object not available! Did you forget to build and register the server?] |
|
33 </object><br /> |
|
34 <form> |
|
35 Line width: <input type="edit" ID="widthEdit" value = "1" /> |
|
36 <input type="button" value = "Set" onClick="setWidth(this.form)" /> |
|
37 </form> |
|
38 //! [0] |
|
39 \endraw |