From: <mie...@us...> - 2012-09-29 03:32:24
|
Revision: 8450 http://sourceforge.net/p/oorexx/code-0/8450 Author: miesfeld Date: 2012-09-29 03:32:21 +0000 (Sat, 29 Sep 2012) Log Message: ----------- ooDialog - remove test code in example that was accidently committed Modified Paths: -------------- ooDialog/trunk/examples/treeViewCustomDraw.rex Modified: ooDialog/trunk/examples/treeViewCustomDraw.rex =================================================================== --- ooDialog/trunk/examples/treeViewCustomDraw.rex 2012-09-29 03:26:36 UTC (rev 8449) +++ ooDialog/trunk/examples/treeViewCustomDraw.rex 2012-09-29 03:32:21 UTC (rev 8450) @@ -177,12 +177,9 @@ end -- Read the file containing the tree input data and build the tree. - counter = 0 do while lines(self~TREE_FILE) args = self~makeArgs(linein(self~TREE_FILE)) - hItem = tv~sendWith('add', args) - counter += 1 - tv~setItemData(hItem, counter) + tv~sendWith('add', args) end -- Select the item with the text of Computers. @@ -469,14 +466,6 @@ * is no help. */ ::method help unguarded - expose tv - item = tv~selected - say 'selected:' item 'user data:' tv~getItemData(item) - old = tv~setItemData(item) - say 'removed old data:' old 'error code:' .systemErrorCode - say 'deleting all' - ret = tv~deleteAll - say 'ret:' ret title = self~APPLICATION_TITLE msg = "There is no help available for this example program." ret = MessageDialog(msg, self~hwnd, title, "OK", "INFORMATION") |
From: <mie...@us...> - 2012-10-10 03:12:09
|
Revision: 8498 http://sourceforge.net/p/oorexx/code-0/8498 Author: miesfeld Date: 2012-10-10 03:12:08 +0000 (Wed, 10 Oct 2012) Log Message: ----------- ooDialog - fix comment in one the tree-view example Modified Paths: -------------- ooDialog/trunk/examples/treeViewCustomDraw.rex Modified: ooDialog/trunk/examples/treeViewCustomDraw.rex =================================================================== --- ooDialog/trunk/examples/treeViewCustomDraw.rex 2012-10-10 03:10:46 UTC (rev 8497) +++ ooDialog/trunk/examples/treeViewCustomDraw.rex 2012-10-10 03:12:08 UTC (rev 8498) @@ -391,9 +391,9 @@ * * This is our comparison callback function. We are passed the user item data * for the first tree-view item and the user item data for the second tree-view - * item. The method needs to return 1 if the first item is greater than the - * second, -1 if the first item is less than the second, and 0 if the two items - * are equivalent. + * item. The method needs to return a positive number if the first item is + * greater than the second, a negative number if the first item is less than the + * second, and 0 if the two items are equivalent. * * In this program, for every tree-view item inserted, we set the item data for * that item to be the text of the item. Then, in our comparison function here, |