Update of /cvsroot/win32forth/win32forth/doc/classes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19224/doc/classes
Modified Files:
HTMLcontrol.htm
Log Message:
Some minor chaged to the MDI classes, docs for the HTML control updated and docs for the MDI classes added.
Index: HTMLcontrol.htm
===================================================================
RCS file: /cvsroot/win32forth/win32forth/doc/classes/HTMLcontrol.htm,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** HTMLcontrol.htm 11 Jan 2006 17:45:20 -0000 1.1
--- HTMLcontrol.htm 14 Jan 2006 12:28:21 -0000 1.2
***************
*** 58,63 ****
</p><pre><b><a name="0">;CLASS
</a></b></pre><p>End of HTML control class
! </p><h2>Example
! </h2><p>For an example see: demos\HtmlControlDemo.f
! </p><hr><p>Document $Id$</p>
</body></html>
--- 58,114 ----
</p><pre><b><a name="0">;CLASS
</a></b></pre><p>End of HTML control class
! </p><h2>Example (demos\HtmlControlDemo.f)
! </h2><pre>
! needs HtmlControl.f
!
! \ Create a simple browser window
! :class Browserwin <super window
!
! HTMLcontrol html
!
! :M On_Init: ( -- )
! On_Init: super
! self Start: html ;M
!
! :M On_Size: ( h m w -- )
! 2drop drop autosize: html ;M
!
! :M GoURL: ( str len -- ) GoURL: html ;M
! :M GetLocationURL: ( -- str len ) GetLocationURL: html ;M
! :M GetLocationName: ( -- str len ) GetLocationName: html ;M
! :M Busy?: ( -- flag ) Busy?: html ;M
! :M Offline?: ( -- flag ) Offline?: html ;M
! :M GetType: ( -- str len ) GetType: html ;M
!
! :M Wait: ( -- )
! \ Wait until the browser has finished all
! \ downloading operation or other activity.
! begin winpause
! Busy?: self 0=
! until ;M
!
! ;class
!
! BrowserWin bwin
!
! : test
! \ start the window
! start: bwin
!
! \ let the browser load a document
! Offline?: bwin
! if s" doc\p-index.htm" Prepend<home>\
! else s" www.win32forth.org\doc\p-index.htm"
! then GoURL: bwin
!
! \ wait until browser is ready
! Wait: bwin
!
! \ display some information about the document
! cr GetLocationURL: bwin type
! cr GetLocationName: bwin type
! cr GetType: bwin type
! ; test
!
! </pre><hr><p>Document $Id$</p>
</body></html>
|