doc/src/examples/activeqt/simple-demo.qdocinc
branchRCL_3
changeset 7 3f74d0d4af4c
parent 0 1918ee327afb
equal deleted inserted replaced
6:dee5afe5301f 7:3f74d0d4af4c
       
     1 \raw HTML
       
     2 //! [0]
       
     3 <object ID="QSimpleAX" CLASSID="CLSID:DF16845C-92CD-4AAB-A982-EB9840E74669"
       
     4 CODEBASE="http://qt.nokia.com/demos/simpleax.cab">
       
     5     <PARAM NAME="text" VALUE="A simple control" />
       
     6     <PARAM NAME="value" VALUE="1" />
       
     7 [Object not available! Did you forget to build and register the server?]
       
     8 </object>
       
     9 //! [0] //! [1]
       
    10 
       
    11 <FORM>
       
    12     <INPUT TYPE="BUTTON" VALUE="About..." onClick="QSimpleAX.about()" />
       
    13 </FORM>
       
    14 //! [1]
       
    15 
       
    16 //! [2]
       
    17 <object ID="Calendar" CLASSID="CLSID:8E27C92B-1264-101C-8A2F-040224009C02">
       
    18 [Standard Calendar control not available!]
       
    19     <PARAM NAME="day" VALUE="1" />
       
    20 </object>
       
    21 //! [2]
       
    22 
       
    23 <FORM>
       
    24     <INPUT TYPE="BUTTON" VALUE="Today" onClick="Calendar.Today()" />
       
    25 </FORM>
       
    26 
       
    27 //! [3]
       
    28 <SCRIPT LANGUAGE="VBScript">
       
    29 Sub Calendar_Click()
       
    30     MsgBox( "Calendar Clicked!" )
       
    31 End Sub
       
    32 
       
    33 Sub QSimpleAX_TextChanged( str )
       
    34     document.title = str
       
    35 End Sub
       
    36 </SCRIPT>
       
    37 
       
    38 <SCRIPT LANGUAGE="JavaScript">
       
    39 function QSimpleAX::ValueChanged( Newvalue )
       
    40 {
       
    41     Calendar.Day = Newvalue;
       
    42 }
       
    43 </SCRIPT>
       
    44 //! [3]
       
    45 \endraw