Diff of /ooDialog/branches/4.2.3/trunk/examples/AnimalGame.rex [r9605] .. [r9606] Maximize Restore

  Switch to unified view

a/ooDialog/branches/4.2.3/trunk/examples/AnimalGame.rex b/ooDialog/branches/4.2.3/trunk/examples/AnimalGame.rex
...
...
47
 *
47
 *
48
 * This is a better way to get the same effect as installBitmapButton() because
48
 * This is a better way to get the same effect as installBitmapButton() because
49
 * the OS draws the button with the same look and feel of other buttons.  On
49
 * the OS draws the button with the same look and feel of other buttons.  On
50
 * Windows 7, the buttons look like Windows 7 buttons.  Whereas with
50
 * Windows 7, the buttons look like Windows 7 buttons.  Whereas with
51
 * installBitmapButton() the buttons look like Windows 95 buttons.
51
 * installBitmapButton() the buttons look like Windows 95 buttons.
52
 *
53
 * Note: this program uses the public routine, locate(), to get the full path
54
 * name to the directory this source code file is located. In places, the
55
 * variable holding this value has been callously abbreviated to 'sd' which
56
 * stands for source directory.
57
 *
52
 */
58
 */
53
59
54
 -- Ensure this program can be executed from any directory.
60
 -- Ensure this program can be executed from any directory.
55
 prgDir = locate()
61
 prgDir = locate()
56
62
...
...
109
                        IDC_PB_GOAT,  IDC_PB_DOG,   IDC_PB_SEAL,     IDC_PB_HORSE)
115
                        IDC_PB_GOAT,  IDC_PB_DOG,   IDC_PB_SEAL,     IDC_PB_HORSE)
110
116
111
  -- Load all our bitmaps from a resource only DLL.  Since the .Size argument is
117
  -- Load all our bitmaps from a resource only DLL.  Since the .Size argument is
112
  -- omitted from the getImages() method, the operating system uses the actual
118
  -- omitted from the getImages() method, the operating system uses the actual
113
  -- size of the bitmap.
119
  -- size of the bitmap.
120
  sd = locate()
114
  res = .ResourceImage~new(.application~srcDir'res\AnimalGame.dll')
121
  res = .ResourceImage~new(sd'res\AnimalGame.dll')
115
  bitmaps = res~getImages(imageIDs)
122
  bitmaps = res~getImages(imageIDs)
116
123
117
  -- Connect each button to a method with the same name as the symbolic ID of
124
  -- Connect each button to a method with the same name as the symbolic ID of
118
  -- the button
125
  -- the button
119
  do i = 1 to buttonIDs~items
126
  do i = 1 to buttonIDs~items