wrb 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (271) hide show
  1. checksums.yaml +7 -0
  2. data/README +28 -0
  3. data/Rakefile +66 -0
  4. data/bin/wrb +41 -0
  5. data/bin/wrb.bat +6 -0
  6. data/ext/rwin/aatree.c +192 -0
  7. data/ext/rwin/aatree.h +55 -0
  8. data/ext/rwin/extconf.rb +47 -0
  9. data/ext/rwin/rw_api.c +2058 -0
  10. data/ext/rwin/rw_devices.c +215 -0
  11. data/ext/rwin/rw_gdiplus.h +278 -0
  12. data/ext/rwin/rw_graphics.c +1583 -0
  13. data/ext/rwin/rw_resources.c +1988 -0
  14. data/ext/rwin/rw_ubfuncs.c +281 -0
  15. data/ext/rwin/rw_windows.c +1936 -0
  16. data/ext/rwin/rwin.c +451 -0
  17. data/ext/rwin/rwin.h +442 -0
  18. data/lib/rwin.rb +820 -0
  19. data/lib/wrb.rb +20 -0
  20. data/lib/wrb/applications/frmdesigner/angle.cur +0 -0
  21. data/lib/wrb/applications/frmdesigner/angle2.cur +0 -0
  22. data/lib/wrb/applications/frmdesigner/controls/Button.bmp +0 -0
  23. data/lib/wrb/applications/frmdesigner/controls/Button.rb +34 -0
  24. data/lib/wrb/applications/frmdesigner/controls/Checkbox.bmp +0 -0
  25. data/lib/wrb/applications/frmdesigner/controls/Checkbox.rb +10 -0
  26. data/lib/wrb/applications/frmdesigner/controls/Combobox.bmp +0 -0
  27. data/lib/wrb/applications/frmdesigner/controls/Combobox.rb +88 -0
  28. data/lib/wrb/applications/frmdesigner/controls/ComboboxEx.rb +97 -0
  29. data/lib/wrb/applications/frmdesigner/controls/Comboboxex.bmp +0 -0
  30. data/lib/wrb/applications/frmdesigner/controls/DateTimePicker.bmp +0 -0
  31. data/lib/wrb/applications/frmdesigner/controls/DateTimePicker.rb +11 -0
  32. data/lib/wrb/applications/frmdesigner/controls/Edit.bmp +0 -0
  33. data/lib/wrb/applications/frmdesigner/controls/Edit.rb +8 -0
  34. data/lib/wrb/applications/frmdesigner/controls/Groupbox.bmp +0 -0
  35. data/lib/wrb/applications/frmdesigner/controls/Groupbox.rb +9 -0
  36. data/lib/wrb/applications/frmdesigner/controls/Hotkeyctrl.bmp +0 -0
  37. data/lib/wrb/applications/frmdesigner/controls/Hotkeyctrl.rb +9 -0
  38. data/lib/wrb/applications/frmdesigner/controls/Imagelist.bmp +0 -0
  39. data/lib/wrb/applications/frmdesigner/controls/Imagelist.rb +115 -0
  40. data/lib/wrb/applications/frmdesigner/controls/Listbox.bmp +0 -0
  41. data/lib/wrb/applications/frmdesigner/controls/Listbox.rb +77 -0
  42. data/lib/wrb/applications/frmdesigner/controls/Listview.bmp +0 -0
  43. data/lib/wrb/applications/frmdesigner/controls/Listview.rb +157 -0
  44. data/lib/wrb/applications/frmdesigner/controls/Menu.bmp +0 -0
  45. data/lib/wrb/applications/frmdesigner/controls/Menu.rb +198 -0
  46. data/lib/wrb/applications/frmdesigner/controls/Menubar.bmp +0 -0
  47. data/lib/wrb/applications/frmdesigner/controls/Menubar.rb +9 -0
  48. data/lib/wrb/applications/frmdesigner/controls/MonthCalender.bmp +0 -0
  49. data/lib/wrb/applications/frmdesigner/controls/Monthcalender.rb +9 -0
  50. data/lib/wrb/applications/frmdesigner/controls/Panel.bmp +0 -0
  51. data/lib/wrb/applications/frmdesigner/controls/Panel.rb +30 -0
  52. data/lib/wrb/applications/frmdesigner/controls/Progressbar.rb +10 -0
  53. data/lib/wrb/applications/frmdesigner/controls/Radiobutton.bmp +0 -0
  54. data/lib/wrb/applications/frmdesigner/controls/Radiobutton.rb +13 -0
  55. data/lib/wrb/applications/frmdesigner/controls/Rebar.bmp +0 -0
  56. data/lib/wrb/applications/frmdesigner/controls/Rebar.rb +162 -0
  57. data/lib/wrb/applications/frmdesigner/controls/Splitter.bmp +0 -0
  58. data/lib/wrb/applications/frmdesigner/controls/Splitter.rb +66 -0
  59. data/lib/wrb/applications/frmdesigner/controls/Static.bmp +0 -0
  60. data/lib/wrb/applications/frmdesigner/controls/Static.rb +9 -0
  61. data/lib/wrb/applications/frmdesigner/controls/Statusbar.bmp +0 -0
  62. data/lib/wrb/applications/frmdesigner/controls/Statusbar.rb +103 -0
  63. data/lib/wrb/applications/frmdesigner/controls/Tabctrl.bmp +0 -0
  64. data/lib/wrb/applications/frmdesigner/controls/Tabctrl.rb +136 -0
  65. data/lib/wrb/applications/frmdesigner/controls/Timer.bmp +0 -0
  66. data/lib/wrb/applications/frmdesigner/controls/Timer.rb +36 -0
  67. data/lib/wrb/applications/frmdesigner/controls/Toolbar.bmp +0 -0
  68. data/lib/wrb/applications/frmdesigner/controls/Toolbar.rb +165 -0
  69. data/lib/wrb/applications/frmdesigner/controls/Trackbar.bmp +0 -0
  70. data/lib/wrb/applications/frmdesigner/controls/Trackbar.rb +34 -0
  71. data/lib/wrb/applications/frmdesigner/controls/Treeview.bmp +0 -0
  72. data/lib/wrb/applications/frmdesigner/controls/Treeview.rb +107 -0
  73. data/lib/wrb/applications/frmdesigner/controls/Updown.bmp +0 -0
  74. data/lib/wrb/applications/frmdesigner/controls/Updown.rb +31 -0
  75. data/lib/wrb/applications/frmdesigner/controls/default.bmp +0 -0
  76. data/lib/wrb/applications/frmdesigner/controls/progressbar.bmp +0 -0
  77. data/lib/wrb/applications/frmdesigner/controls/unselect.bmp +0 -0
  78. data/lib/wrb/applications/frmdesigner/fddialogs.rb +87 -0
  79. data/lib/wrb/applications/frmdesigner/fdesign.rb +1315 -0
  80. data/lib/wrb/applications/frmdesigner/fdmodules.rb +1394 -0
  81. data/lib/wrb/applications/frmdesigner/fdparseform.rb +197 -0
  82. data/lib/wrb/applications/frmdesigner/img13.bmp +0 -0
  83. data/lib/wrb/base.rb +1294 -0
  84. data/lib/wrb/combocommon.rb +77 -0
  85. data/lib/wrb/commctrlconst.rb +139 -0
  86. data/lib/wrb/commdlg.rb +77 -0
  87. data/lib/wrb/components/animate.rb +114 -0
  88. data/lib/wrb/components/bitmap.rb +116 -0
  89. data/lib/wrb/components/button.rb +134 -0
  90. data/lib/wrb/components/canvas.rb +266 -0
  91. data/lib/wrb/components/checkbox.rb +118 -0
  92. data/lib/wrb/components/choosecolordlg.rb +87 -0
  93. data/lib/wrb/components/choosefontdlg.rb +142 -0
  94. data/lib/wrb/components/clipboard.rb +174 -0
  95. data/lib/wrb/components/combobox.rb +282 -0
  96. data/lib/wrb/components/comboboxex.rb +574 -0
  97. data/lib/wrb/components/cursor.rb +91 -0
  98. data/lib/wrb/components/datetimepicker.rb +197 -0
  99. data/lib/wrb/components/ddeclient.rb +180 -0
  100. data/lib/wrb/components/ddeserver.rb +131 -0
  101. data/lib/wrb/components/dialog.rb +228 -0
  102. data/lib/wrb/components/edit.rb +412 -0
  103. data/lib/wrb/components/font.rb +35 -0
  104. data/lib/wrb/components/form.rb +65 -0
  105. data/lib/wrb/components/groupbox.rb +122 -0
  106. data/lib/wrb/components/header.rb +479 -0
  107. data/lib/wrb/components/hotkeyctrl.rb +72 -0
  108. data/lib/wrb/components/icon.rb +109 -0
  109. data/lib/wrb/components/imagelist.rb +396 -0
  110. data/lib/wrb/components/inifile.rb +97 -0
  111. data/lib/wrb/components/listbox.rb +149 -0
  112. data/lib/wrb/components/listview.rb +1467 -0
  113. data/lib/wrb/components/menu.rb +592 -0
  114. data/lib/wrb/components/menubar.rb +84 -0
  115. data/lib/wrb/components/monthcalender.rb +164 -0
  116. data/lib/wrb/components/openfilenamedlg.rb +147 -0
  117. data/lib/wrb/components/pager.rb +199 -0
  118. data/lib/wrb/components/panel.rb +103 -0
  119. data/lib/wrb/components/picture.rb +55 -0
  120. data/lib/wrb/components/printdlg.rb +148 -0
  121. data/lib/wrb/components/printdlgex.rb +117 -0
  122. data/lib/wrb/components/printer.rb +97 -0
  123. data/lib/wrb/components/progressbar.rb +140 -0
  124. data/lib/wrb/components/radiobutton.rb +49 -0
  125. data/lib/wrb/components/rebar.rb +830 -0
  126. data/lib/wrb/components/registry.rb +408 -0
  127. data/lib/wrb/components/richedit.rb +1181 -0
  128. data/lib/wrb/components/savefilenamedlg.rb +27 -0
  129. data/lib/wrb/components/scintilla.rb +1298 -0
  130. data/lib/wrb/components/scrollbar.rb +239 -0
  131. data/lib/wrb/components/splitter.rb +494 -0
  132. data/lib/wrb/components/static.rb +198 -0
  133. data/lib/wrb/components/statusbar.rb +490 -0
  134. data/lib/wrb/components/tabctrl.rb +686 -0
  135. data/lib/wrb/components/timer.rb +117 -0
  136. data/lib/wrb/components/toolbar.rb +1107 -0
  137. data/lib/wrb/components/tooltip.rb +651 -0
  138. data/lib/wrb/components/trackbar.rb +298 -0
  139. data/lib/wrb/components/treeview.rb +845 -0
  140. data/lib/wrb/components/updown.rb +198 -0
  141. data/lib/wrb/ddeml.rb +241 -0
  142. data/lib/wrb/documents/animate.html +46 -0
  143. data/lib/wrb/documents/bitmap.html +69 -0
  144. data/lib/wrb/documents/button.html +78 -0
  145. data/lib/wrb/documents/canvas.html +137 -0
  146. data/lib/wrb/documents/checkbox.html +77 -0
  147. data/lib/wrb/documents/choosecolordlg.html +29 -0
  148. data/lib/wrb/documents/choosefontdlg.html +31 -0
  149. data/lib/wrb/documents/clipboard.html +31 -0
  150. data/lib/wrb/documents/combobox.html +117 -0
  151. data/lib/wrb/documents/comboboxex.html +139 -0
  152. data/lib/wrb/documents/control.html +53 -0
  153. data/lib/wrb/documents/cursor.html +45 -0
  154. data/lib/wrb/documents/datetimepicker.html +70 -0
  155. data/lib/wrb/documents/ddeclient.html +33 -0
  156. data/lib/wrb/documents/ddeserver.html +26 -0
  157. data/lib/wrb/documents/dialog.html +78 -0
  158. data/lib/wrb/documents/edit.html +169 -0
  159. data/lib/wrb/documents/empty.html +11 -0
  160. data/lib/wrb/documents/favicon.png +0 -0
  161. data/lib/wrb/documents/font.html +38 -0
  162. data/lib/wrb/documents/form.html +63 -0
  163. data/lib/wrb/documents/groupbox.html +57 -0
  164. data/lib/wrb/documents/header.html +85 -0
  165. data/lib/wrb/documents/hotkeyctrl.html +42 -0
  166. data/lib/wrb/documents/icon.html +45 -0
  167. data/lib/wrb/documents/imagelist.html +101 -0
  168. data/lib/wrb/documents/images/button.png +0 -0
  169. data/lib/wrb/documents/images/checkbox.png +0 -0
  170. data/lib/wrb/documents/images/combobox.png +0 -0
  171. data/lib/wrb/documents/images/comboboxex.png +0 -0
  172. data/lib/wrb/documents/images/datetimepicker.png +0 -0
  173. data/lib/wrb/documents/images/edit.png +0 -0
  174. data/lib/wrb/documents/images/groupbox.png +0 -0
  175. data/lib/wrb/documents/images/hotkeyctrl.png +0 -0
  176. data/lib/wrb/documents/images/listbox.png +0 -0
  177. data/lib/wrb/documents/images/listview.png +0 -0
  178. data/lib/wrb/documents/images/menu.png +0 -0
  179. data/lib/wrb/documents/images/menubar.png +0 -0
  180. data/lib/wrb/documents/images/monthcalender.png +0 -0
  181. data/lib/wrb/documents/images/progressbar.png +0 -0
  182. data/lib/wrb/documents/images/radiobutton.png +0 -0
  183. data/lib/wrb/documents/images/rebar.png +0 -0
  184. data/lib/wrb/documents/images/richedit.png +0 -0
  185. data/lib/wrb/documents/images/splitter.png +0 -0
  186. data/lib/wrb/documents/images/static.png +0 -0
  187. data/lib/wrb/documents/images/statusbar.png +0 -0
  188. data/lib/wrb/documents/images/tabctrl.png +0 -0
  189. data/lib/wrb/documents/images/toolbar.png +0 -0
  190. data/lib/wrb/documents/images/tooltip.png +0 -0
  191. data/lib/wrb/documents/images/trackbar.png +0 -0
  192. data/lib/wrb/documents/images/treeview.png +0 -0
  193. data/lib/wrb/documents/images/updown.png +0 -0
  194. data/lib/wrb/documents/index.html +155 -0
  195. data/lib/wrb/documents/inifile.html +36 -0
  196. data/lib/wrb/documents/license.txt +22 -0
  197. data/lib/wrb/documents/listbox.html +96 -0
  198. data/lib/wrb/documents/listview.html +277 -0
  199. data/lib/wrb/documents/make_doc.rb +596 -0
  200. data/lib/wrb/documents/menu.html +144 -0
  201. data/lib/wrb/documents/menubar.html +54 -0
  202. data/lib/wrb/documents/monthcalender.html +48 -0
  203. data/lib/wrb/documents/openfilenamedlg.html +36 -0
  204. data/lib/wrb/documents/pager.html +63 -0
  205. data/lib/wrb/documents/panel.html +32 -0
  206. data/lib/wrb/documents/picture.html +48 -0
  207. data/lib/wrb/documents/printdlg.html +35 -0
  208. data/lib/wrb/documents/printdlgex.html +35 -0
  209. data/lib/wrb/documents/printer.html +40 -0
  210. data/lib/wrb/documents/progressbar.html +69 -0
  211. data/lib/wrb/documents/radiobutton.html +51 -0
  212. data/lib/wrb/documents/rebar.html +143 -0
  213. data/lib/wrb/documents/registry.html +36 -0
  214. data/lib/wrb/documents/richedit.html +232 -0
  215. data/lib/wrb/documents/samples/editimg.bmp +0 -0
  216. data/lib/wrb/documents/samples/editimg.iml +0 -0
  217. data/lib/wrb/documents/samples/fileimg.bmp +0 -0
  218. data/lib/wrb/documents/samples/fileimg.iml +0 -0
  219. data/lib/wrb/documents/samples/sample_button.rb +21 -0
  220. data/lib/wrb/documents/samples/sample_checkbox.rb +18 -0
  221. data/lib/wrb/documents/samples/sample_combobox.rb +18 -0
  222. data/lib/wrb/documents/samples/sample_comboboxex.rb +23 -0
  223. data/lib/wrb/documents/samples/sample_datetimepicker.rb +11 -0
  224. data/lib/wrb/documents/samples/sample_edit.rb +25 -0
  225. data/lib/wrb/documents/samples/sample_groupbox.rb +19 -0
  226. data/lib/wrb/documents/samples/sample_hotkeyctrl.rb +12 -0
  227. data/lib/wrb/documents/samples/sample_listbox.rb +12 -0
  228. data/lib/wrb/documents/samples/sample_listview.rb +32 -0
  229. data/lib/wrb/documents/samples/sample_menu.rb +21 -0
  230. data/lib/wrb/documents/samples/sample_menubar.rb +23 -0
  231. data/lib/wrb/documents/samples/sample_monthcalender.rb +11 -0
  232. data/lib/wrb/documents/samples/sample_progressbar.rb +14 -0
  233. data/lib/wrb/documents/samples/sample_radiobutton.rb +14 -0
  234. data/lib/wrb/documents/samples/sample_rebar.rb +25 -0
  235. data/lib/wrb/documents/samples/sample_richedit.rb +60 -0
  236. data/lib/wrb/documents/samples/sample_splitter.rb +33 -0
  237. data/lib/wrb/documents/samples/sample_static.rb +15 -0
  238. data/lib/wrb/documents/samples/sample_statusbar.rb +17 -0
  239. data/lib/wrb/documents/samples/sample_tabctrl.rb +19 -0
  240. data/lib/wrb/documents/samples/sample_toolbar.rb +29 -0
  241. data/lib/wrb/documents/samples/sample_tooltip.rb +50 -0
  242. data/lib/wrb/documents/samples/sample_trackbar.rb +30 -0
  243. data/lib/wrb/documents/samples/sample_treeview.rb +19 -0
  244. data/lib/wrb/documents/samples/sample_updown.rb +18 -0
  245. data/lib/wrb/documents/samples/sampleimg16.iml +0 -0
  246. data/lib/wrb/documents/samples/sampleimg32.iml +0 -0
  247. data/lib/wrb/documents/samples/samplemg16.png +0 -0
  248. data/lib/wrb/documents/samples/samplemg32.png +0 -0
  249. data/lib/wrb/documents/samples/wrb.ico +0 -0
  250. data/lib/wrb/documents/savefilenamedlg.html +19 -0
  251. data/lib/wrb/documents/scrollbar.html +60 -0
  252. data/lib/wrb/documents/splitter.html +96 -0
  253. data/lib/wrb/documents/static.html +84 -0
  254. data/lib/wrb/documents/statusbar.html +110 -0
  255. data/lib/wrb/documents/tabctrl.html +151 -0
  256. data/lib/wrb/documents/timer.html +43 -0
  257. data/lib/wrb/documents/toolbar.html +181 -0
  258. data/lib/wrb/documents/tooltip.html +131 -0
  259. data/lib/wrb/documents/trackbar.html +107 -0
  260. data/lib/wrb/documents/treeview.html +210 -0
  261. data/lib/wrb/documents/updown.html +85 -0
  262. data/lib/wrb/documents/wincontrol.html +258 -0
  263. data/lib/wrb/documents/window.html +499 -0
  264. data/lib/wrb/documents/wrb.css +228 -0
  265. data/lib/wrb/gmem.rb +26 -0
  266. data/lib/wrb/imecommon.rb +59 -0
  267. data/lib/wrb/listcommon.rb +185 -0
  268. data/lib/wrb/lzss.rb +126 -0
  269. data/lib/wrb/scrollinfo.rb +142 -0
  270. data/lib/wrb/toplevelcommon.rb +634 -0
  271. metadata +315 -0
@@ -0,0 +1,69 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html lang="en">
3
+ <head>
4
+ <meta content="text/html; charset=utf-8" http-equiv="content-type">
5
+ <title>Bitmap</title>
6
+ <link href="wrb.css" type="text/css" rel="stylesheet">
7
+ <link rel="shortcut icon" href="favicon.png">
8
+ </head>
9
+ <body>
10
+ <h3> Bitmap &lt; <a href="rwin::bitmap.html">RWin::Bitmap</a> <span class=gohome> <a href="index.html">Home </a></span></h3>
11
+ <p>A memory-image which consists of the pixel data for a graphics image and its attributes.
12
+ <br>See also <a href="https://docs.microsoft.com/en-us/windows/desktop/gdi/windows-gdi">
13
+ GDI section of Microsft Docs</a>
14
+ </p>
15
+ <h4> Singleton methods </h4>
16
+ <dl>
17
+ <dt><code>self.new(name=nil, width, height, initalcolor=nil)</code></dt>
18
+ <dd>Creates empty bitmap with the specified arguments.<br>If <i>initialcolor</i> is given, this bitmap will be filled with it.<br>`name' is for adding on the toplevel window, give a Symbol if needed.</dd>
19
+ <dt><code>self._load(str)</code></dt>
20
+ <dd>Loads from a string. Give a String as <i>str</i>.</dd>
21
+ <dt><code>self.fromfile(path)</code></dt>
22
+ <dd>Loads from a image file. Give a String as path to image file.</dd>
23
+ <dt><code>self.fromhandle(hbitmap)</code></dt>
24
+ <dd>Creates new Bitmap object from handle of another bitmap.<br>Give an 32/64 bits integer as <i>hbitmap</i>.</dd>
25
+ <dt><code>self.frompicture(pic, background)</code></dt>
26
+ <dd>Creates new Bitmap object from a Pcture object.<br>Give a Picture object as <i>pic</i>, an RGB integer as <i>background</i> color.</dd>
27
+ <dt><code>self.loadb64(str)</code></dt>
28
+ <dd>Loads new bitmap object from a LZSS compressd string.Give a String as <i>str</i>.</dd>
29
+ <dt><code>self.monochrome(newwidth, newhight)</code></dt>
30
+ <dd>Creates new monochrome Bitmap object from self.<br>Give two integers as <i>newwidth</i> and <i>newheight</i>.</dd>
31
+ </dl>
32
+ <h4> Instance methods </h4>
33
+ <dl>
34
+ <dt><code>GetPixel(x, y)</code></dt>
35
+ <dd>Retrieves the RGB color value of the pixel at the specified coordinates.<br>Give two integers as <i>x</i> and <i>y</i>. Returns an integer as RGB color.</dd>
36
+ <dt><code>SetPixel(x, y, color)</code></dt>
37
+ <dd>Sets the pixel at the specified coordinates to the specified color.<br>Give two integers as <i>x</i>, <i>y</i> and a integer as RGB <i>color</i>.</dd>
38
+ <dt><code>_dump()</code></dt>
39
+ <dd>Dumps self to a string for Marshal object.</dd>
40
+ <dt><code>_hbitmap()</code></dt>
41
+ <dd>Retrieves a bitmap handle of self. Returns 32/64 bits integer as it.</dd>
42
+ <dt><code>_hdc()</code></dt>
43
+ <dd>Retrieves a device context handle of self. Returns 32/64 bits integer as it.</dd>
44
+ <dt><code>_hddbitmap()</code></dt>
45
+ <dd>Retrieves a device dependent bitmap handle of self. Returns 32/64 bits integer as it.</dd>
46
+ <dt><code>depth()</code></dt>
47
+ <dd>Gets color depth of self. Retruns an integer of one of 1, 4, 8, 16, 24 and 32.</dd>
48
+ <dt><code>dispose()</code></dt>
49
+ <dd>Disposes self from resource table and sets hbitmap to 0. Returns true/false.</dd>
50
+ <dt><code>draw(){|cv| ...}</code></dt>
51
+ <dd>Draws on this bitmap if block given. Argument <i>cv</i> will be given as a Canvas object.</dd>
52
+ <dt><code>dumpb64()</code></dt>
53
+ <dd>Dumps self to a LZSS compressed string.</dd>
54
+ <dt><code>height()</code></dt>
55
+ <dd>Gets a height of this bitmap. Returns an integer.</dd>
56
+ <dt><code>to_24()</code></dt>
57
+ <dd>Converts self to a 24 bit Bitmap objct.</dd>
58
+ <dt><code>to_imgmask(maskcolor=nil)</code></dt>
59
+ <dd>Creates a reverse mask image from <i>to_mask()</i> method.</dd>
60
+ <dt><code>to_mask(maskcolor=nil)</code></dt>
61
+ <dd>Creates a new monochrome bitmap for mask image. <br>Give an integer as RGB color for <i>maskcolor</i> which will be set to black and other clolors will be set to white.<br>If no maskcolor was given then color of (0, 0) position will be used as maskcolor.</dd>
62
+ <dt><code>to_picture()</code></dt>
63
+ <dd>Converts self to a Picture object.</dd>
64
+ <dt><code>width()</code></dt>
65
+ <dd>Gets a width of this bitmap. Returns an integer.</dd>
66
+ </dl>
67
+
68
+ </body>
69
+ </html>
@@ -0,0 +1,78 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html lang="en">
3
+ <head>
4
+ <meta content="text/html; charset=utf-8" http-equiv="content-type">
5
+ <title>Button</title>
6
+ <link href="wrb.css" type="text/css" rel="stylesheet">
7
+ <link rel="shortcut icon" href="favicon.png">
8
+ </head>
9
+ <body>
10
+ <h3> Button &lt; <a href="wincontrol.html">WinControl</a> <span class=gohome> <a href="index.html">Home </a> <div class=imgright><img src="images/button.png"></div>
11
+ </span></h3>
12
+ <p class=fixedh>This is a control the user can click to provide input to an application.
13
+ <br>See also <a href="https://docs.microsoft.com/en-us/windows/desktop/Controls/
14
+ window-controls"> Windows Control section of Microsoft Docs.</a>
15
+ </p>
16
+ <h4> Button styles <span class=spl>( both the symbols and the integers can be used )</span></h4>
17
+ <p></p>
18
+ <table>
19
+ <tr><th>Symbol</th><th>Integer value</th><th>Symbol</th><th>Integer value</th></tr>
20
+ <tr><td class=name1><code>:bitmap</code></td><td class=type><code>BS_BITMAP</code></td><td class=name1><code>:bottom</code></td><td class=type><code>BS_BOTTOM</code></td></tr>
21
+ <tr><td class=name1><code>:center</code></td><td class=type><code>BS_CENTER</code></td><td class=name1><code>:flat</code></td><td class=type><code>BS_FLAT</code></td></tr>
22
+ <tr><td class=name1><code>:icon</code></td><td class=type><code>BS_ICON</code></td><td class=name1><code>:left</code></td><td class=type><code>BS_LEFT</code></td></tr>
23
+ <tr><td class=name1><code>:lefttext</code></td><td class=type><code>BS_LEFTTEXT</code></td><td class=name1><code>:multiline</code></td><td class=type><code>BS_MULTILINE</code></td></tr>
24
+ <tr><td class=name1><code>:notify</code></td><td class=type><code>BS_NOTIFY</code></td><td class=name1><code>:ownerdraw</code></td><td class=type><code>BS_OWNERDRAW</code></td></tr>
25
+ <tr><td class=name1><code>:pushbox</code></td><td class=type><code>BS_PUSHBOX</code></td><td class=name1><code>:pushlike</code></td><td class=type><code>BS_PUSHLIKE</code></td></tr>
26
+ <tr><td class=name1><code>:right</code></td><td class=type><code>BS_RIGHT</code></td><td class=name1><code>:text</code></td><td class=type><code>BS_TEXT</code></td></tr>
27
+ <tr><td class=name1><code>:top</code></td><td class=type><code>BS_TOP</code></td><td class=name1><code>:typemask</code></td><td class=type><code>BS_TYPEMASK</code></td></tr>
28
+ <tr><td class=name1><code>:vcenter</code></td><td class=type><code>BS_VCENTER</code></td></tr>
29
+ </table>
30
+ <h4> Pre-defined events <span class=spl> ( can be added by `events=` method )</span></h4>
31
+ <p></p>
32
+ <table>
33
+ <tr><th width=20%>Symbol</th><th width=20%>Notification code</th><th>Definition <span class=spl>( `???' is name of the control )</span></th></tr>
34
+ <tr><td class=name1><code>:clicked</code></td><td class=type><code>BN_CLICKED</code></td><td class=desc><code>???_clicked(idcmd, code, hwnd)</code></td></code></tr>
35
+ <tr><td class=name1><code>:dblclk</code></td><td class=type><code>BN_DBLCLK</code></td><td class=desc><code>???_dblclk(idcmd, code, hwnd)</code></td></code></tr>
36
+ <tr><td class=name1><code>:disable</code></td><td class=type><code>BN_DISABLE</code></td><td class=desc><code>???_disable(idcmd, code, hwnd)</code></td></code></tr>
37
+ <tr><td class=name1><code>:doubleclicked</code></td><td class=type><code>BN_DOUBLECLICKED</code></td><td class=desc><code>???_doubleclicked(idcmd, code, hwnd)</code></td></code></tr>
38
+ <tr><td class=name1><code>:hilight</code></td><td class=type><code>BN_HILITE</code></td><td class=desc><code>???_hilight(idcmd, code, hwnd)</code></td></code></tr>
39
+ <tr><td class=name1><code>:killfocus</code></td><td class=type><code>BN_KILLFOCUS</code></td><td class=desc><code>???_killfocus(idcmd, code, hwnd)</code></td></code></tr>
40
+ <tr><td class=name1><code>:paint</code></td><td class=type><code>BN_PAINT</code></td><td class=desc><code>???_paint(idcmd, code, hwnd)</code></td></code></tr>
41
+ <tr><td class=name1><code>:pushed</code></td><td class=type><code>BN_PUSHED</code></td><td class=desc><code>???_pushed(idcmd, code, hwnd)</code></td></code></tr>
42
+ <tr><td class=name1><code>:setfocus</code></td><td class=type><code>BN_SETFOCUS</code></td><td class=desc><code>???_setfocus(idcmd, code, hwnd)</code></td></code></tr>
43
+ <tr><td class=name1><code>:unhilight</code></td><td class=type><code>BN_UNHILITE</code></td><td class=desc><code>???_unhilight(idcmd, code, hwnd)</code></td></code></tr>
44
+ <tr><td class=name1><code>:unpushed</code></td><td class=type><code>BN_UNPUSHED</code></td><td class=desc><code>???_unpushed(idcmd, code, hwnd)</code></td></code></tr>
45
+ </table>
46
+ <h4> Default events <span class=spl>( can be defined without using `events=' method )</h4>
47
+ <p></p>
48
+ <dl>
49
+ <dt><code>???_clicked(idcmd, code, hwnd)</code></dt>
50
+ <dt><code>???_killfocus(idcmd, code, hwnd)</code></dt>
51
+ </dl>
52
+ <h4> Sample script </h4>
53
+ <pre class=cd>
54
+ require <span class="str">'wrb'</span>
55
+ <span class="kwd">module</span> WR
56
+ <span class="kwd">class</span> MyForm < Form
57
+ <span class="kwd">def</span> initialize()
58
+ <span class="kwd">self</span>.size =268, 201
59
+ <span class="kwd">self</span>.inheritfont = [<span class="str">'Meiryo'</span>, -12]
60
+ _<< Button[<span class="sym">:button1</span>, <span class="str">"button"</span>, 10, 10, 80, 24]
61
+ _<< Button[<span class="sym">:button1</span>, <span class="str">"left"</span>, 10, 46, 80, 24, <span class="sym">:left</span>]
62
+ _<< Button[<span class="sym">:button1</span>, <span class="str">"right"</span>, 10, 82, 80, 24, <span class="sym">:right</span>]
63
+ _<< Button[<span class="sym">:button1</span>, <span class="str">"rightbtn"</span>, 10, 118, 80, 24,<span class="sym">:center</span>]
64
+ _<< Button[<span class="sym">:button1</span>, <span class="str">"top"</span>, 110, 10, 80, 40, <span class="sym">:top</span>]
65
+ _<< Button[<span class="sym">:button1</span>, <span class="str">"bottom"</span>, 110, 56, 80, 40, <span class="sym">:bottom</span>]
66
+ _<< Button[<span class="sym">:button1</span>, <span class="str">"multi\nline"</span>, 110, 102, 80, 40, <span class="sym">:multiline</span>]
67
+ <span class="kwd">end</span>
68
+
69
+ <span class="kwd">def</span> button1_clicked(id, cmd, hwnd)
70
+ MessageBox APP.hwnd2ref(hwnd).caption, <span class="kwd">self</span>.class.to_s
71
+ <span class="kwd">end</span>
72
+ <span class="kwd">self</span>.start
73
+ <span class="kwd">end</span>
74
+ <span class="kwd">end</span>
75
+ </pre>
76
+
77
+ </body>
78
+ </html>
@@ -0,0 +1,137 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html lang="en">
3
+ <head>
4
+ <meta content="text/html; charset=utf-8" http-equiv="content-type">
5
+ <title>Canvas</title>
6
+ <link href="wrb.css" type="text/css" rel="stylesheet">
7
+ <link rel="shortcut icon" href="favicon.png">
8
+ </head>
9
+ <body>
10
+ <h3> Canvas &lt; <a href="rwin::canvas.html">RWin::Canvas</a> <span class=gohome> <a href="index.html">Home </a></span></h3>
11
+ <p>This is wrapper of <i>hDC</i> operation of the window.<br>
12
+ See <a href="https://docs.microsoft.com/en-us/windows/desktop/api/_gdi/">
13
+ GDI section of Microsoft Docs </a> for more information.
14
+ </p>
15
+ <h4> Singleton methods </h4>
16
+ <dl>
17
+ <dt><code>self.new(arg)</code></dt>
18
+ <dd>Creates a new canvas from a window or a hdc (device context handle).<br>Not recommended to use directly, recommended to use in the <i>paint</i> message handler or in the `self.draw' method.</dd>
19
+ <dt><code>self.draw(window | hdc)</code></dt>
20
+ <dd>Creates a new canvas from a window or a hdc (device context handle).<br>This method needs a block. A canvas object will be given as block parameter.You can use all following methods in this block.<br>Note: This drawing is only at once. If you want to continue, draw in the <i>paint</i> message handler.</dd>
21
+ </dl>
22
+ <h4> Instance methods </h4>
23
+ <dl>
24
+ <dt><code>AngleArc(x, y, r, startAngle, sweepAngle)</code></dt>
25
+ <dd>Draws a line segment and an arc.</dd>
26
+ <dt><code>Arc(x1, y1, x2, y2, x3, y3)</code></dt>
27
+ <dd>Draws an elliptical arc.</dd>
28
+ <dt><code>ArcTo(left, top, right, bottom, xr1, yr1, xr2, yr2)</code></dt>
29
+ <dd>Draws an elliptical arc</dd>
30
+ <dt><code>BitBlt(xdest, ydest[, w, h], source[, xsrc, ysrc][, rop])</code></dt>
31
+ <dd>Performs a bit-block transfer of the data corresponding to a rectangle of pixels from the source object to this canvas.<br></dd>
32
+ <dt><code>Chord(x1, y1, x2, y2, x3, y3, x4, y4)</code></dt>
33
+ <dd>Draws a chord.</dd>
34
+ <dt><code>DrawIcon(icon, x, y)</code></dt>
35
+ <dd>Draws an image of specified icon.</dd>
36
+ <dt><code>DrawImagelist(imagelist, index, x, y, style=0)</code></dt>
37
+ <dd>Draws an image of specified index of the image list.</dd>
38
+ <dt><code>DrawText(text, [left, top[, right, bottm]] | rect, format=0)</code></dt>
39
+ <dd>Draws formatted text in the specified rectangle.</dd>
40
+ <dt><code>Ellipse(left, top, right, bottom)</code></dt>
41
+ <dd>Draws an ellipse.</dd>
42
+ <dt><code>FillRect(left, top, right, bottom, burush)</code></dt>
43
+ <dd>Fills a rectangle by using the specified brush. Give a RWin::Brush as <i>brush</i>.</dd>
44
+ <dt><code>FloodFill(x, y, color, filltype=FLOODFILLBORDER)</code></dt>
45
+ <dd>Fills an area of the display surface with the current brush.</dd>
46
+ <dt><code>FrameRect(left, top, right, bottom, brush)</code></dt>
47
+ <dd>Draws a border around the specified rectangle by using the specified brush.</dd>
48
+ <dt><code>GetArcDirection()</code></dt>
49
+ <dd>Retrieves the current arc direction for this canvas. <br>Arc and rectangle functions use the arc direction.</dd>
50
+ <dt><code>GetBkColor()</code></dt>
51
+ <dd>Retreives the current background color of this canvas.</dd>
52
+ <dt><code>GetDeviceCaps(index)</code></dt>
53
+ <dd>Retrieves the device-specific information for this canvas by given index.</dd>
54
+ <dt><code>GetLogPixels()</code></dt>
55
+ <dd>Gets number of pixels per logical inch along the screen width.(Not GDI function)</dd>
56
+ <dt><code>GetROP2()</code></dt>
57
+ <dd>Retrieves the foreground mix mode of this canvas.</dd>
58
+ <dt><code>GetStretchBltMode()</code></dt>
59
+ <dd>Retrieves the current stretching mode.</dd>
60
+ <dt><code>GetSysColor(index)</code></dt>
61
+ <dd>Retrieves the current color of specified index of display element.</dd>
62
+ <dt><code>GetTextColor()</code></dt>
63
+ <dd>Retrieves the current text color for this canvas.</dd>
64
+ <dt><code>GetTextExtent()</code></dt>
65
+ <dd>Computes the width and height of the specified string of text.<br>Returns array of [width, height].</dd>
66
+ <dt><code>InvertRect(left, top, right, bottom)</code></dt>
67
+ <dd>Inverts a rectangle in a window by performing a logical NOT operation on the color values for each pixel in the given rectangle's interior.</dd>
68
+ <dt><code>LineTo(x, y)</code></dt>
69
+ <dd>Draws a line from the current position up to, but not including, the specified point.</dd>
70
+ <dt><code>MaskBlt(xdest, ydest[, w, h], source[, xsrc, ysrc], mask[, rop])</code></dt>
71
+ <dd>Performs a bit-block transfer with mask image. Give a monochrome bitmap as <i>mask</i>.</dd>
72
+ <dt><code>MoveTo(x, y)</code></dt>
73
+ <dd>Updates the current position to the specified point.Retruns previous point as an array.</dd>
74
+ <dt><code>Opaque()</code></dt>
75
+ <dd>Sets back mode of this canvas to opaque.</dd>
76
+ <dt><code>PatBlt(x, y, w, h[, rop])</code></dt>
77
+ <dd>Paints the specified rectangle using the currently selected brush and the specified raster operation.</dd>
78
+ <dt><code>Pie(left, top, right, bottom, xr1, yr1, xr2, yr2)</code></dt>
79
+ <dd>Draws a pie-shaped wedge bounded by the intersection of an ellipse and two radials.</dd>
80
+ <dt><code>PlgBlt(point1, point2, point3, src[, xsrc, ysrc[, wsrc, hsrc]], xdst, ydst)</code></dt>
81
+ <dd>Performs a bit-block transfer from the specified rectangle in the source to the specified parallelogram in this canvas.Give an array of two integers such as [x1, y1] as <i>points</i>.</dd>
82
+ <dt><code>PolyBezier(point1, point1, ... )</code></dt>
83
+ <dd>Draws one or more Bezier curves.Give an array of two integers such as [x, y] as each <i>points</i>.</dd>
84
+ <dt><code>PolyBezierTo(point1, point2, ... )</code></dt>
85
+ <dd>Draws a PolyBezier from the current position and update the current position.</dd>
86
+ <dt><code>PolyDraw(arpoint, arjoint)</code></dt>
87
+ <dd>Draws a set of line segments and Bezier curves.<br>Give an array of point such as [[x1, y1], [x2, y2], [x3, y3] ... ] as <i>arpoint</i>.<br>And give an array of integer as <i>arjoint</i>.</dd>
88
+ <dt><code>PolyPolygon(polygon1, polygon2, ... )</code></dt>
89
+ <dd>Draws the polygons by given array of polygons. (Not tested, so can anyone test it?)Give an array of points such as [[x1, y1], [x2, y2] ... ] as each <i>polygons</i>.</dd>
90
+ <dt><code>PolyPolyline(polyline1, polyline2, ... )</code></dt>
91
+ <dd>Draws the polylines by given array of polylines. (Not tested, so can anyone test it?)Give an array of points such as [[x1, y1], [x2, y2] ... ] as each <i>polylines</i>.</dd>
92
+ <dt><code>Polygon(point1, point2, ... )</code></dt>
93
+ <dd>Draws a polygon.<br>Give an array of two integers such as [x, y] as each <i>points</i>.</dd>
94
+ <dt><code>Polyline(point1, point2, ... )</code></dt>
95
+ <dd>Draws a series of line segments by connecting the points in the specified array.<br>Give an array of two integers such as [x, y] as each <i>points</i>.</dd>
96
+ <dt><code>PolylineTo(point1, point1, ... )</code></dt>
97
+ <dd>Draws a Polyline from the current position and update the current position.</dd>
98
+ <dt><code>Rectangle(left, top, right, bottom)</code></dt>
99
+ <dd>Draws a rectangle.</dd>
100
+ <dt><code>RoundRect(left, top, right, bottom, width, height)</code></dt>
101
+ <dd>Draws a rectangle with rounded corners.</dd>
102
+ <dt><code>SetArcDirection(dir)</code></dt>
103
+ <dd>Sets the drawing direction to be used for arc and rectangle functions.<br>Give AD_CLOCKWISE/AD_COUNTERCLOCKWISE as <i>dir</i>.</dd>
104
+ <dt><code>SetBkColor(color)</code></dt>
105
+ <dd>Sets the text back color for this canvas to the specified color.</dd>
106
+ <dt><code>SetBrush(brush)</code></dt>
107
+ <dd>Sets the current brush style by giving RWin::Brush or RGB color.</dd>
108
+ <dt><code>SetFont(font)</code></dt>
109
+ <dd>Sets the current font by giving the RWin::Font.</dd>
110
+ <dt><code>SetHBrush(hbrush)</code></dt>
111
+ <dd>Sets the current burush style by giving a handle of the burush.</dd>
112
+ <dt><code>SetHFont(hfont)</code></dt>
113
+ <dd>Sets the current font by giving a handle of the font.</dd>
114
+ <dt><code>SetHPen(hpen)</code></dt>
115
+ <dd>Sets the current pen style by giving a handle of the pen.</dd>
116
+ <dt><code>SetPen(pen)</code></dt>
117
+ <dd>Sets the current pen style by giving a RWin::Pen or a RGB color.</dd>
118
+ <dt><code>SetROP2(rop2)</code></dt>
119
+ <dd>Sets the current foreground mix mode.</dd>
120
+ <dt><code>SetStretchBltMode(mode)</code></dt>
121
+ <dd>Sets the bitmap stretching mode in this canvas.</dd>
122
+ <dt><code>SetTextColor(color)</code></dt>
123
+ <dd>Sets the text color for this canvas to the specified color.</dd>
124
+ <dt><code>StretchBlt(xdst, ydst, wdst, hdst, source[, xsrc, ysrc, wsrc, hsrc][, rop])</code></dt>
125
+ <dd>Performs a bit-block transfer with streching or complessing to fit the dimensions of the specfyed rectangle, if necessary.</dd>
126
+ <dt><code>TextOut(x, y, text)</code></dt>
127
+ <dd>Writes a string at the specified location, using the currently selected font, background color, and text color.</dd>
128
+ <dt><code>Transparent()</code></dt>
129
+ <dd>Sets back mode of this canvas to transparent.</dd>
130
+ <dt><code>_hdc()</code></dt>
131
+ <dd>Retreives device context handle of this canvas.</dd>
132
+ <dt><code>release()</code></dt>
133
+ <dd>Releases this canvas. This must be used at out of block.</dd>
134
+ </dl>
135
+
136
+ </body>
137
+ </html>
@@ -0,0 +1,77 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html lang="en">
3
+ <head>
4
+ <meta content="text/html; charset=utf-8" http-equiv="content-type">
5
+ <title>Checkbox</title>
6
+ <link href="wrb.css" type="text/css" rel="stylesheet">
7
+ <link rel="shortcut icon" href="favicon.png">
8
+ </head>
9
+ <body>
10
+ <h3> Checkbox &lt; <a href="button.html">Button</a> <span class=gohome> <a href="index.html">Home </a> <div class=imgright><img src="images/checkbox.png"></div>
11
+ </span></h3>
12
+ <p class=fixedh>This control consists of a square box that indicates a choice the user can make by selecting the button.
13
+ <br>See also <a href="https://docs.microsoft.com/en-us/windows/desktop/Controls/
14
+ window-controls">Windows Control section of Microsoft Docs.</a>
15
+ </p>
16
+ <h4> Instance methods </h4>
17
+ <dl>
18
+ <dt><code>checked()</code></dt>
19
+ <dt><code>checked?()</code></dt>
20
+ <dd>Retreives check state of the control. Retuens true/false.</dd>
21
+ <dt><code>checked=(state)</code></dt>
22
+ <dd>Sets a check-state of the control. Give true/false as state.</dd>
23
+ <dt><code>style=(st)</code></dt>
24
+ <dd>Following Checkbox styles are available.</dd>
25
+ </dl>
26
+ <h4> Checkbox styles <span class=spl>( both the symbols and the integers can be used )</span></h4>
27
+ <p>Any other Button's style changes this style to other. So, do not set except following.</p>
28
+ <table>
29
+ <tr><th>Symbol</th><th>Integer value</th><th>Symbol</th><th>Integer value</th></tr>
30
+ <tr><td class=name1><code>:auto3state</code></td><td class=type><code>BS_AUTO3STATE</code></td><td class=name1><code>:lefttext</code></td><td class=type><code>BS_LEFTTEXT</code></td></tr>
31
+ <tr><td class=name1><code>:rightbutton</code></td><td class=type><code>BS_RIGHTBUTTON</code></td><td class=name1><code>:threestate</code></td><td class=type><code>BS_3STATE</code></td></tr>
32
+ </table>
33
+ <h4> Pre-defined events <span class=spl> ( can be added by `events=` method )</span></h4>
34
+ <p></p>
35
+ <table>
36
+ <tr><th width=20%>Symbol</th><th width=20%>Notification code</th><th>Definition <span class=spl>( `???' is name of the control )</span></th></tr>
37
+ <tr><td class=name1><code>:clicked</code></td><td class=type><code>BN_CLICKED</code></td><td class=desc><code>???_clicked(idcmd, code, hwnd)</code></td></code></tr>
38
+ <tr><td class=name1><code>:dblclk</code></td><td class=type><code>BN_DBLCLK</code></td><td class=desc><code>???_dblclk(idcmd, code, hwnd)</code></td></code></tr>
39
+ <tr><td class=name1><code>:disable</code></td><td class=type><code>BN_DISABLE</code></td><td class=desc><code>???_disable(idcmd, code, hwnd)</code></td></code></tr>
40
+ <tr><td class=name1><code>:doubleclicked</code></td><td class=type><code>BN_DOUBLECLICKED</code></td><td class=desc><code>???_doubleclicked(idcmd, code, hwnd)</code></td></code></tr>
41
+ <tr><td class=name1><code>:hilight</code></td><td class=type><code>BN_HILITE</code></td><td class=desc><code>???_hilight(idcmd, code, hwnd)</code></td></code></tr>
42
+ <tr><td class=name1><code>:killfocus</code></td><td class=type><code>BN_KILLFOCUS</code></td><td class=desc><code>???_killfocus(idcmd, code, hwnd)</code></td></code></tr>
43
+ <tr><td class=name1><code>:paint</code></td><td class=type><code>BN_PAINT</code></td><td class=desc><code>???_paint(idcmd, code, hwnd)</code></td></code></tr>
44
+ <tr><td class=name1><code>:pushed</code></td><td class=type><code>BN_PUSHED</code></td><td class=desc><code>???_pushed(idcmd, code, hwnd)</code></td></code></tr>
45
+ <tr><td class=name1><code>:setfocus</code></td><td class=type><code>BN_SETFOCUS</code></td><td class=desc><code>???_setfocus(idcmd, code, hwnd)</code></td></code></tr>
46
+ <tr><td class=name1><code>:unhilight</code></td><td class=type><code>BN_UNHILITE</code></td><td class=desc><code>???_unhilight(idcmd, code, hwnd)</code></td></code></tr>
47
+ <tr><td class=name1><code>:unpushed</code></td><td class=type><code>BN_UNPUSHED</code></td><td class=desc><code>???_unpushed(idcmd, code, hwnd)</code></td></code></tr>
48
+ </table>
49
+ <h4> Default events <span class=spl>( can be defined without using `events=' method )</h4>
50
+ <p></p>
51
+ <dl>
52
+ <dt><code>???_clicked(idcmd, code, hwnd)</code></dt>
53
+ </dl>
54
+ <h4> Sample script </h4>
55
+ <pre class=cd>
56
+ require <span class="str">'wrb'</span>
57
+ <span class="kwd">module</span> WR
58
+ <span class="kwd">class</span> MyForm < Form
59
+ <span class="kwd">def</span> initialize
60
+ <span class="kwd">self</span>.size = [268, 201]
61
+ <span class="kwd">self</span>.inheritfont = [<span class="str">'Meiryo'</span>, -12]
62
+ _<< Checkbox[<span class="sym">:cbox1</span>, <span class="str">"check me"</span>, 10, 10, 84, 24]
63
+ _<< Checkbox[<span class="sym">:cbox2</span>, <span class="str">"lefttext"</span>, 10, 40, 84, 24, <span class="sym">:lefttext</span>]
64
+ _<< Checkbox[<span class="sym">:cbox3</span>, <span class="str">"auto3state"</span>, 10, 70, 84, 24, 0x6, <span class="sym">:auto3state</span>]
65
+ <span class="kwd">end</span>
66
+
67
+ <span class="kwd">def</span> cbox3_clicked(idcmd, *)
68
+ msgbox <span class="str">"state = #{controls.cbox3.checked.inspect}"</span>, <span class="str">"sample_checkbox"</span>, 0
69
+ <span class="kwd">end</span>
70
+
71
+ <span class="kwd">self</span>.start
72
+ <span class="kwd">end</span>
73
+ <span class="kwd">end</span>
74
+ </pre>
75
+
76
+ </body>
77
+ </html>
@@ -0,0 +1,29 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html lang="en">
3
+ <head>
4
+ <meta content="text/html; charset=utf-8" http-equiv="content-type">
5
+ <title>ChooseColorDlg</title>
6
+ <link href="wrb.css" type="text/css" rel="stylesheet">
7
+ <link rel="shortcut icon" href="favicon.png">
8
+ </head>
9
+ <body>
10
+ <h3> ChooseColorDlg &lt; <a href="commondialog.html">CommonDialog</a> <span class=gohome> <a href="index.html">Home </a></span></h3>
11
+ <p>A dialog box that enables the user to select a color.
12
+ </p>
13
+ <h4> Singleton methods </h4>
14
+ <dl>
15
+ <dt><code>self.show(owner=nil, flags: nil, custcolors: nil)</code></dt>
16
+ <dt><code>self.show2(owner=nil, flags: nil, custcolors: nil)</code></dt>
17
+ </dl>
18
+ <h4> Instance methods </h4>
19
+ <dl>
20
+ <dt><code>custcolors()</code></dt>
21
+ <dt><code>custcolors=(*clrs)</code></dt>
22
+ <dt><code>flags()</code></dt>
23
+ <dt><code>flags=(f)</code></dt>
24
+ <dt><code>show(owner=nil)</code></dt>
25
+ <dt><code>show2(owner=nil)</code></dt>
26
+ </dl>
27
+
28
+ </body>
29
+ </html>
@@ -0,0 +1,31 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html lang="en">
3
+ <head>
4
+ <meta content="text/html; charset=utf-8" http-equiv="content-type">
5
+ <title>ChooseFontDlg</title>
6
+ <link href="wrb.css" type="text/css" rel="stylesheet">
7
+ <link rel="shortcut icon" href="favicon.png">
8
+ </head>
9
+ <body>
10
+ <h3> ChooseFontDlg &lt; <a href="commondialog.html">CommonDialog</a> <span class=gohome> <a href="index.html">Home </a></span></h3>
11
+ <p>A dialog box that enables the user to choose attributes for a logical font.
12
+ </p>
13
+ <h4> Singleton methods </h4>
14
+ <dl>
15
+ <dt><code>self.show(owner=nil, name: '', height: -11, flags: nil, color: 0, type: nil)</code></dt>
16
+ </dl>
17
+ <h4> Instance methods </h4>
18
+ <dl>
19
+ <dt><code>color()</code></dt>
20
+ <dt><code>color=(clr)</code></dt>
21
+ <dt><code>flags()</code></dt>
22
+ <dt><code>flags=(f)</code></dt>
23
+ <dt><code>fonttype()</code></dt>
24
+ <dt><code>fonttype=(typ)</code></dt>
25
+ <dt><code>pointsize()</code></dt>
26
+ <dt><code>pointsize=(i)</code></dt>
27
+ <dt><code>show(owner=nil)</code></dt>
28
+ </dl>
29
+
30
+ </body>
31
+ </html>
@@ -0,0 +1,31 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html lang="en">
3
+ <head>
4
+ <meta content="text/html; charset=utf-8" http-equiv="content-type">
5
+ <title>Clipboard</title>
6
+ <link href="wrb.css" type="text/css" rel="stylesheet">
7
+ <link rel="shortcut icon" href="favicon.png">
8
+ </head>
9
+ <body>
10
+ <h3> Clipboard <span class=gohome> <a href="index.html">Home </a></span></h3>
11
+ <p>Provides an interface that enable applications to transfer data.
12
+ </p>
13
+ <h4> Singleton methods </h4>
14
+ <dl>
15
+ <dt><code>self.open(win=nil)</code></dt>
16
+ </dl>
17
+ <h4> Instance methods </h4>
18
+ <dl>
19
+ <dt><code>bitmap()</code></dt>
20
+ <dt><code>bitmap=(bmp)</code></dt>
21
+ <dt><code>clear()</code></dt>
22
+ <dt><code>close()</code></dt>
23
+ <dt><code>formats()</code></dt>
24
+ <dt><code>get_string(uformat=CF_TEXT)</code></dt>
25
+ <dt><code>set_string(str, uformat=CF_TEXT)</code></dt>
26
+ <dt><code>text()</code></dt>
27
+ <dt><code>text=(str)</code></dt>
28
+ </dl>
29
+
30
+ </body>
31
+ </html>