From: George H. <geo...@us...> - 2011-11-18 14:17:03
|
Update of /cvsroot/win32forth/win32forth/Help/html In directory vz-cvs-4.sog:/tmp/cvs-serv26080 Modified Files: class-controls.htm w32f-classes.htm Log Message: Updated docs. Index: class-controls.htm =================================================================== RCS file: /cvsroot/win32forth/win32forth/Help/html/class-controls.htm,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** class-controls.htm 18 Nov 2011 11:04:29 -0000 1.2 --- class-controls.htm 18 Nov 2011 14:17:01 -0000 1.3 *************** *** 727,731 **** </code></b><br>End of DragListbox class </p><a name="UpDownControl"></a> ! <h2>UpDownControl class </h2><p><b><code>:Class UpDownControl <Super Control </code></b><br>Up-Down control --- 727,731 ---- </code></b><br>End of DragListbox class </p><a name="UpDownControl"></a> ! <h2>Up-Down Control class </h2><p><b><code>:Class UpDownControl <Super Control </code></b><br>Up-Down control *************** *** 775,780 **** </code></b><br>Disable the control. </p><p><b><code>;Class ! </code></b><br>End of UpDownControl control ! </p><p><b><code>:Class SpinnerControl <Super UpDownControl </code></b><br>Spinner Control Class. </p><p>This class is a combination of an up-down control and a Text Box (the buddy). --- 775,782 ---- </code></b><br>Disable the control. </p><p><b><code>;Class ! </code></b><br>End of Up-Down Control Class ! </p><a name="SpinnerControl"></a> ! <h2>Spinner Control class ! </h2><p><b><code>:Class SpinnerControl <Super UpDownControl </code></b><br>Spinner Control Class. </p><p>This class is a combination of an up-down control and a Text Box (the buddy). *************** *** 1688,1756 **** </code></b><br>End of MultiLineTabControl class </p><p>For a demo how to use the TabControl see: TabControlDemo.f - </p><a name="UpDownControl"></a> - <h2>UpDownControl class - </h2><p><b><code>:Class UpDownControl <Super Control - </code></b><br>Up-Down control - </p><p>An up-down control is a pair of arrow buttons that the user can click to - increment or decrement a value, such as a scroll position or a number displayed - in a companion control. - </p><p>For 16 Bit values only. - </p><p><b><code>:M ClassInit: ( -- ) - </code></b><br>Initialise the class. - </p><p><b><code>:M WindowStyle: ( -- style ) - </code></b><br>Get the window style of the control. Default style is: - WS_BORDER, UDS_ARROWKEYS, UDS_SETBUDDYINT and UDS_ALIGNRIGHT. - </p><p><b><code>:M AddStyle: ( n -- ) - </code></b><br>Set any additional style of the control. Must be done before the control - is created. - </p><p><b><code>:M Start: ( Parent -- ) - </code></b><br>Create the control. - </p><p><b><code>:M StartSize: ( -- cx cy ) - </code></b><br>default window size - </p><p><b><code>:M StartPos: ( -- x y ) - </code></b><br>default window position - </p><p><b><code>:M SetBuddy: ( hBuddy -- ) - </code></b><br>Sets the buddy window for the up-down control. - </p><p><b><code>:M GetValue: ( -- n ) - </code></b><br>Retrieves the current position of the up-down control. - Note: This method ABORT's on error. - </p><p><b><code>:M SetValue: ( n -- ) - </code></b><br>Set the current position for the up-down control. - </p><p><b><code>:M SetDecimal: ( -- ) - </code></b><br>Sets the radix base for the control to decimal. - Decimal numbers are signed. - </p><p><b><code>:M SetHex: ( -- ) - </code></b><br>Sets the radix base for the control to hexadecimal. - Hexadecimal numbers are always unsigned. - </p><p><b><code>:M GetBase: ( -- n ) - </code></b><br>Get the current radix base (that is, either base 10 or 16). - </p><p><b><code>:M SetRange: ( lower upper -- ) - </code></b><br>Sets the minimum and maximum positions (range) the control. - Neither position can be greater than the UD_MAXVAL value or less than - the UD_MINVAL value. In addition, the difference between the two positions - cannot exceed UD_MAXVAL. - </p><p><b><code>:M GetRange: ( -- lower upper ) - </code></b><br>Retrieves the minimum and maximum positions (range) for the control. - </p><p><b><code>:M Enable: ( f -- ) - </code></b><br>Enable the control. - </p><p><b><code>:M Disable: ( -- ) - </code></b><br>Disable the control. - </p><p><b><code>;Class - </code></b><br>End of UpDownControl control - </p><p><b><code>:Class SpinnerControl <Super UpDownControl - </code></b><br>Spinner Control Class. - </p><p>This class is a combination of an up-down control and a Text Box (the buddy). - </p><p><b><code>:m start: ( parent -- ) - </code></b><br>Start the control. - </p><p><b><code>:m TheBox: ( -- spinbox ) - </code></b><br>Object address of the text box for directly manipulating it (though it shouldn't really be done). - </p><p><b><code>:m Move: ( x y w h -- ) - </code></b><br>Move the text box to the specified positon and the up-down control as well. - </p><p><b><code>:m SetFont: ( hndl -- ) - </code></b><br>Set the font of the text box. - </p><p><b><code>:M Close: ( -- ) - </code></b><br>Close the control. - </p><p><b><code> - </code></b><br>End of Spinner Control Class. </p><h1>ExControls -- More (enhanced) classes for non-standard windows controls. </h1><a name="VertButtonBar"></a> --- 1690,1693 ---- Index: w32f-classes.htm =================================================================== RCS file: /cvsroot/win32forth/win32forth/Help/html/w32f-classes.htm,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** w32f-classes.htm 17 Nov 2011 21:57:09 -0000 1.2 --- w32f-classes.htm 18 Nov 2011 14:17:01 -0000 1.3 *************** *** 75,79 **** <li><b>Other controls</b></li> <ul type=circle> ! <li><a href="class-Controls.htm#TabControl">TabControl</a> Class for tabulator controls.</li> </ul> </ul> --- 75,81 ---- <li><b>Other controls</b></li> <ul type=circle> ! <li><a href="class-Controls.htm#TabControl">Tab Control</a> Class for tabulator controls.</li> ! <li><a href="class-Controls.htm#UpDownControl">Up-down Control</a> Class for up-down controls.</li> ! <li><a href="class-Controls.htm#SpinnerControl">Spinner Control</a> Class for spinner controls.</li> </ul> </ul> |