Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /ooDialog/trunk/examples/propertySheet.tabControls/TabOwnerDemo.rex [r9762] .. [r9763] Maximize Restore

  Switch to side-by-side view

--- a/ooDialog/trunk/examples/propertySheet.tabControls/TabOwnerDemo.rex
+++ b/ooDialog/trunk/examples/propertySheet.tabControls/TabOwnerDemo.rex
@@ -206,7 +206,7 @@
     -- created without the SHAREIMAGES styles, so it takes care of releasing the
     -- image list when the program ends.
     image = .Image~getImage(.application~srcDir"rc\TabOwnerDemoListView.bmp")
-    imageList = .ImageList~create(.Size~new(16, 16), .Image~toID(ILC_COLOR8), 4, 0)
+    imageList = .ImageList~create(.Size~new(16, 16), COLOR8, 4, 0)
     if \image~isNull,  \imageList~isNull then do
         imageList~add(image)
         lv~setImageList(imageList, SMALL)
@@ -289,10 +289,10 @@
 
     -- Create and set the ImageList for the tree view items
     image = .Image~getImage(.application~srcDir"rc\TabOwnerDemoTreeView.bmp")
-    imageList = .ImageList~create(.Size~new(32, 32), .Image~toID(ILC_COLOR8), 10, 0)
+    imageList = .ImageList~create(.Size~new(32, 32), COLOR8, 10, 0)
     if \image~isNull,  \imageList~isNull then do
           imageList~add(image)
-          tv~setImageList(imageList, .Image~toID(TVSIL_NORMAL))
+          tv~setImageList(imageList, NORMAL)
           image~release
     end
 
@@ -638,7 +638,7 @@
    image = .Image~getImage(.application~srcDir"rc\TabOwnerDemoTab.bmp")
 
    -- Create our image list, as a masked image list.
-   flags = .DlgUtil~or(.Image~toID(ILC_COLOR24), .Image~toID(ILC_MASK))
+   flags = 'COLOR24 MASK'
    imageList = .ImageList~create(.Size~new(16, 16), flags, 10, 0)
    if \image~isNull,  \imageList~isNull then do
       -- The bitmap is added and the image list deduces the number of images