From: George H. <geo...@us...> - 2012-08-14 14:20:13
|
Update of /cvsroot/win32forth/win32forth/Help/html In directory vz-cvs-4.sog:/tmp/cvs-serv17875 Modified Files: class-controls.htm Log Message: Updated docs. Index: class-controls.htm =================================================================== RCS file: /cvsroot/win32forth/win32forth/Help/html/class-controls.htm,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class-controls.htm 18 Nov 2011 14:17:01 -0000 1.3 --- class-controls.htm 14 Aug 2012 14:20:10 -0000 1.4 *************** *** 473,479 **** </p><p><b><code>:M SetSelection: ( n -- ) </code></b><br>Select a string in the list of a combo box. </p><p><b><code>:M GetSelectedString: ( -- addr cnt ) ! </code></b><br>Get the selected from the combo box. ! Note: The string is returned in the global <i> NEW$ </i>. </p><p><b><code>:M Setfont: ( handle -- ) </code></b><br>Set the font in the control. --- 473,488 ---- </p><p><b><code>:M SetSelection: ( n -- ) </code></b><br>Select a string in the list of a combo box. + </p><p><b><code>:M GetSelection: ( -- n ) + </code></b><br>Retrieve the index of the currently selected item, if any. + </p><p>The return value is the zero-based index of the currently selected item. If there is no + selection, the return value is CB_ERR. + </p><p><b><code>:M GetString: ( index -- addr n ) + </code></b><br>Retrieve a string from the combo box. + </p><p>The return value is the address and length of the string. + If <i> n </i> does not specify a valid index, the length is CB_ERR. </p><p><b><code>:M GetSelectedString: ( -- addr cnt ) ! </code></b><br>Retrieve the currently selected string from the combo box. ! Note: The string is returned in a dynamicly allocated buffer of medium persistance. If a ! permenant copy is needed it should be moved. </p><p><b><code>:M Setfont: ( handle -- ) </code></b><br>Set the font in the control. *************** *** 600,608 **** </p><p><b><code>:M GetString: ( index -- addr n ) </code></b><br>Retrieve a string from the list box. ! </p><p>The return value is the length of the string, in chars, excluding the terminating null character. ! If <i> n </i> does not specify a valid index, the return value is LB_ERR. </p><p><b><code>:M GetSelectedString: ( -- addr cnt ) </code></b><br>Retrieve the currently selected string from the list box. ! Note: The string is returned in the global <i> NEW$ </i>. </p><p><b><code>:M GetCount: ( -- n ) </code></b><br>Retrieve the number of items in the list box. --- 609,618 ---- </p><p><b><code>:M GetString: ( index -- addr n ) </code></b><br>Retrieve a string from the list box. ! </p><p>The return value is the address and length of the string. ! If <i> n </i> does not specify a valid index, the length is LB_ERR. </p><p><b><code>:M GetSelectedString: ( -- addr cnt ) </code></b><br>Retrieve the currently selected string from the list box. ! Note: The string is returned in a dynamicly allocated buffer of medium persistance. If a ! permenant copy is needed it should be moved. </p><p><b><code>:M GetCount: ( -- n ) </code></b><br>Retrieve the number of items in the list box. |