wrb 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README +28 -0
- data/Rakefile +66 -0
- data/bin/wrb +41 -0
- data/bin/wrb.bat +6 -0
- data/ext/rwin/aatree.c +192 -0
- data/ext/rwin/aatree.h +55 -0
- data/ext/rwin/extconf.rb +47 -0
- data/ext/rwin/rw_api.c +2058 -0
- data/ext/rwin/rw_devices.c +215 -0
- data/ext/rwin/rw_gdiplus.h +278 -0
- data/ext/rwin/rw_graphics.c +1583 -0
- data/ext/rwin/rw_resources.c +1988 -0
- data/ext/rwin/rw_ubfuncs.c +281 -0
- data/ext/rwin/rw_windows.c +1936 -0
- data/ext/rwin/rwin.c +451 -0
- data/ext/rwin/rwin.h +442 -0
- data/lib/rwin.rb +820 -0
- data/lib/wrb.rb +20 -0
- data/lib/wrb/applications/frmdesigner/angle.cur +0 -0
- data/lib/wrb/applications/frmdesigner/angle2.cur +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Button.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Button.rb +34 -0
- data/lib/wrb/applications/frmdesigner/controls/Checkbox.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Checkbox.rb +10 -0
- data/lib/wrb/applications/frmdesigner/controls/Combobox.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Combobox.rb +88 -0
- data/lib/wrb/applications/frmdesigner/controls/ComboboxEx.rb +97 -0
- data/lib/wrb/applications/frmdesigner/controls/Comboboxex.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/DateTimePicker.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/DateTimePicker.rb +11 -0
- data/lib/wrb/applications/frmdesigner/controls/Edit.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Edit.rb +8 -0
- data/lib/wrb/applications/frmdesigner/controls/Groupbox.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Groupbox.rb +9 -0
- data/lib/wrb/applications/frmdesigner/controls/Hotkeyctrl.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Hotkeyctrl.rb +9 -0
- data/lib/wrb/applications/frmdesigner/controls/Imagelist.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Imagelist.rb +115 -0
- data/lib/wrb/applications/frmdesigner/controls/Listbox.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Listbox.rb +77 -0
- data/lib/wrb/applications/frmdesigner/controls/Listview.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Listview.rb +157 -0
- data/lib/wrb/applications/frmdesigner/controls/Menu.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Menu.rb +198 -0
- data/lib/wrb/applications/frmdesigner/controls/Menubar.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Menubar.rb +9 -0
- data/lib/wrb/applications/frmdesigner/controls/MonthCalender.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Monthcalender.rb +9 -0
- data/lib/wrb/applications/frmdesigner/controls/Panel.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Panel.rb +30 -0
- data/lib/wrb/applications/frmdesigner/controls/Progressbar.rb +10 -0
- data/lib/wrb/applications/frmdesigner/controls/Radiobutton.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Radiobutton.rb +13 -0
- data/lib/wrb/applications/frmdesigner/controls/Rebar.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Rebar.rb +162 -0
- data/lib/wrb/applications/frmdesigner/controls/Splitter.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Splitter.rb +66 -0
- data/lib/wrb/applications/frmdesigner/controls/Static.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Static.rb +9 -0
- data/lib/wrb/applications/frmdesigner/controls/Statusbar.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Statusbar.rb +103 -0
- data/lib/wrb/applications/frmdesigner/controls/Tabctrl.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Tabctrl.rb +136 -0
- data/lib/wrb/applications/frmdesigner/controls/Timer.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Timer.rb +36 -0
- data/lib/wrb/applications/frmdesigner/controls/Toolbar.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Toolbar.rb +165 -0
- data/lib/wrb/applications/frmdesigner/controls/Trackbar.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Trackbar.rb +34 -0
- data/lib/wrb/applications/frmdesigner/controls/Treeview.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Treeview.rb +107 -0
- data/lib/wrb/applications/frmdesigner/controls/Updown.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/Updown.rb +31 -0
- data/lib/wrb/applications/frmdesigner/controls/default.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/progressbar.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/controls/unselect.bmp +0 -0
- data/lib/wrb/applications/frmdesigner/fddialogs.rb +87 -0
- data/lib/wrb/applications/frmdesigner/fdesign.rb +1315 -0
- data/lib/wrb/applications/frmdesigner/fdmodules.rb +1394 -0
- data/lib/wrb/applications/frmdesigner/fdparseform.rb +197 -0
- data/lib/wrb/applications/frmdesigner/img13.bmp +0 -0
- data/lib/wrb/base.rb +1294 -0
- data/lib/wrb/combocommon.rb +77 -0
- data/lib/wrb/commctrlconst.rb +139 -0
- data/lib/wrb/commdlg.rb +77 -0
- data/lib/wrb/components/animate.rb +114 -0
- data/lib/wrb/components/bitmap.rb +116 -0
- data/lib/wrb/components/button.rb +134 -0
- data/lib/wrb/components/canvas.rb +266 -0
- data/lib/wrb/components/checkbox.rb +118 -0
- data/lib/wrb/components/choosecolordlg.rb +87 -0
- data/lib/wrb/components/choosefontdlg.rb +142 -0
- data/lib/wrb/components/clipboard.rb +174 -0
- data/lib/wrb/components/combobox.rb +282 -0
- data/lib/wrb/components/comboboxex.rb +574 -0
- data/lib/wrb/components/cursor.rb +91 -0
- data/lib/wrb/components/datetimepicker.rb +197 -0
- data/lib/wrb/components/ddeclient.rb +180 -0
- data/lib/wrb/components/ddeserver.rb +131 -0
- data/lib/wrb/components/dialog.rb +228 -0
- data/lib/wrb/components/edit.rb +412 -0
- data/lib/wrb/components/font.rb +35 -0
- data/lib/wrb/components/form.rb +65 -0
- data/lib/wrb/components/groupbox.rb +122 -0
- data/lib/wrb/components/header.rb +479 -0
- data/lib/wrb/components/hotkeyctrl.rb +72 -0
- data/lib/wrb/components/icon.rb +109 -0
- data/lib/wrb/components/imagelist.rb +396 -0
- data/lib/wrb/components/inifile.rb +97 -0
- data/lib/wrb/components/listbox.rb +149 -0
- data/lib/wrb/components/listview.rb +1467 -0
- data/lib/wrb/components/menu.rb +592 -0
- data/lib/wrb/components/menubar.rb +84 -0
- data/lib/wrb/components/monthcalender.rb +164 -0
- data/lib/wrb/components/openfilenamedlg.rb +147 -0
- data/lib/wrb/components/pager.rb +199 -0
- data/lib/wrb/components/panel.rb +103 -0
- data/lib/wrb/components/picture.rb +55 -0
- data/lib/wrb/components/printdlg.rb +148 -0
- data/lib/wrb/components/printdlgex.rb +117 -0
- data/lib/wrb/components/printer.rb +97 -0
- data/lib/wrb/components/progressbar.rb +140 -0
- data/lib/wrb/components/radiobutton.rb +49 -0
- data/lib/wrb/components/rebar.rb +830 -0
- data/lib/wrb/components/registry.rb +408 -0
- data/lib/wrb/components/richedit.rb +1181 -0
- data/lib/wrb/components/savefilenamedlg.rb +27 -0
- data/lib/wrb/components/scintilla.rb +1298 -0
- data/lib/wrb/components/scrollbar.rb +239 -0
- data/lib/wrb/components/splitter.rb +494 -0
- data/lib/wrb/components/static.rb +198 -0
- data/lib/wrb/components/statusbar.rb +490 -0
- data/lib/wrb/components/tabctrl.rb +686 -0
- data/lib/wrb/components/timer.rb +117 -0
- data/lib/wrb/components/toolbar.rb +1107 -0
- data/lib/wrb/components/tooltip.rb +651 -0
- data/lib/wrb/components/trackbar.rb +298 -0
- data/lib/wrb/components/treeview.rb +845 -0
- data/lib/wrb/components/updown.rb +198 -0
- data/lib/wrb/ddeml.rb +241 -0
- data/lib/wrb/documents/animate.html +46 -0
- data/lib/wrb/documents/bitmap.html +69 -0
- data/lib/wrb/documents/button.html +78 -0
- data/lib/wrb/documents/canvas.html +137 -0
- data/lib/wrb/documents/checkbox.html +77 -0
- data/lib/wrb/documents/choosecolordlg.html +29 -0
- data/lib/wrb/documents/choosefontdlg.html +31 -0
- data/lib/wrb/documents/clipboard.html +31 -0
- data/lib/wrb/documents/combobox.html +117 -0
- data/lib/wrb/documents/comboboxex.html +139 -0
- data/lib/wrb/documents/control.html +53 -0
- data/lib/wrb/documents/cursor.html +45 -0
- data/lib/wrb/documents/datetimepicker.html +70 -0
- data/lib/wrb/documents/ddeclient.html +33 -0
- data/lib/wrb/documents/ddeserver.html +26 -0
- data/lib/wrb/documents/dialog.html +78 -0
- data/lib/wrb/documents/edit.html +169 -0
- data/lib/wrb/documents/empty.html +11 -0
- data/lib/wrb/documents/favicon.png +0 -0
- data/lib/wrb/documents/font.html +38 -0
- data/lib/wrb/documents/form.html +63 -0
- data/lib/wrb/documents/groupbox.html +57 -0
- data/lib/wrb/documents/header.html +85 -0
- data/lib/wrb/documents/hotkeyctrl.html +42 -0
- data/lib/wrb/documents/icon.html +45 -0
- data/lib/wrb/documents/imagelist.html +101 -0
- data/lib/wrb/documents/images/button.png +0 -0
- data/lib/wrb/documents/images/checkbox.png +0 -0
- data/lib/wrb/documents/images/combobox.png +0 -0
- data/lib/wrb/documents/images/comboboxex.png +0 -0
- data/lib/wrb/documents/images/datetimepicker.png +0 -0
- data/lib/wrb/documents/images/edit.png +0 -0
- data/lib/wrb/documents/images/groupbox.png +0 -0
- data/lib/wrb/documents/images/hotkeyctrl.png +0 -0
- data/lib/wrb/documents/images/listbox.png +0 -0
- data/lib/wrb/documents/images/listview.png +0 -0
- data/lib/wrb/documents/images/menu.png +0 -0
- data/lib/wrb/documents/images/menubar.png +0 -0
- data/lib/wrb/documents/images/monthcalender.png +0 -0
- data/lib/wrb/documents/images/progressbar.png +0 -0
- data/lib/wrb/documents/images/radiobutton.png +0 -0
- data/lib/wrb/documents/images/rebar.png +0 -0
- data/lib/wrb/documents/images/richedit.png +0 -0
- data/lib/wrb/documents/images/splitter.png +0 -0
- data/lib/wrb/documents/images/static.png +0 -0
- data/lib/wrb/documents/images/statusbar.png +0 -0
- data/lib/wrb/documents/images/tabctrl.png +0 -0
- data/lib/wrb/documents/images/toolbar.png +0 -0
- data/lib/wrb/documents/images/tooltip.png +0 -0
- data/lib/wrb/documents/images/trackbar.png +0 -0
- data/lib/wrb/documents/images/treeview.png +0 -0
- data/lib/wrb/documents/images/updown.png +0 -0
- data/lib/wrb/documents/index.html +155 -0
- data/lib/wrb/documents/inifile.html +36 -0
- data/lib/wrb/documents/license.txt +22 -0
- data/lib/wrb/documents/listbox.html +96 -0
- data/lib/wrb/documents/listview.html +277 -0
- data/lib/wrb/documents/make_doc.rb +596 -0
- data/lib/wrb/documents/menu.html +144 -0
- data/lib/wrb/documents/menubar.html +54 -0
- data/lib/wrb/documents/monthcalender.html +48 -0
- data/lib/wrb/documents/openfilenamedlg.html +36 -0
- data/lib/wrb/documents/pager.html +63 -0
- data/lib/wrb/documents/panel.html +32 -0
- data/lib/wrb/documents/picture.html +48 -0
- data/lib/wrb/documents/printdlg.html +35 -0
- data/lib/wrb/documents/printdlgex.html +35 -0
- data/lib/wrb/documents/printer.html +40 -0
- data/lib/wrb/documents/progressbar.html +69 -0
- data/lib/wrb/documents/radiobutton.html +51 -0
- data/lib/wrb/documents/rebar.html +143 -0
- data/lib/wrb/documents/registry.html +36 -0
- data/lib/wrb/documents/richedit.html +232 -0
- data/lib/wrb/documents/samples/editimg.bmp +0 -0
- data/lib/wrb/documents/samples/editimg.iml +0 -0
- data/lib/wrb/documents/samples/fileimg.bmp +0 -0
- data/lib/wrb/documents/samples/fileimg.iml +0 -0
- data/lib/wrb/documents/samples/sample_button.rb +21 -0
- data/lib/wrb/documents/samples/sample_checkbox.rb +18 -0
- data/lib/wrb/documents/samples/sample_combobox.rb +18 -0
- data/lib/wrb/documents/samples/sample_comboboxex.rb +23 -0
- data/lib/wrb/documents/samples/sample_datetimepicker.rb +11 -0
- data/lib/wrb/documents/samples/sample_edit.rb +25 -0
- data/lib/wrb/documents/samples/sample_groupbox.rb +19 -0
- data/lib/wrb/documents/samples/sample_hotkeyctrl.rb +12 -0
- data/lib/wrb/documents/samples/sample_listbox.rb +12 -0
- data/lib/wrb/documents/samples/sample_listview.rb +32 -0
- data/lib/wrb/documents/samples/sample_menu.rb +21 -0
- data/lib/wrb/documents/samples/sample_menubar.rb +23 -0
- data/lib/wrb/documents/samples/sample_monthcalender.rb +11 -0
- data/lib/wrb/documents/samples/sample_progressbar.rb +14 -0
- data/lib/wrb/documents/samples/sample_radiobutton.rb +14 -0
- data/lib/wrb/documents/samples/sample_rebar.rb +25 -0
- data/lib/wrb/documents/samples/sample_richedit.rb +60 -0
- data/lib/wrb/documents/samples/sample_splitter.rb +33 -0
- data/lib/wrb/documents/samples/sample_static.rb +15 -0
- data/lib/wrb/documents/samples/sample_statusbar.rb +17 -0
- data/lib/wrb/documents/samples/sample_tabctrl.rb +19 -0
- data/lib/wrb/documents/samples/sample_toolbar.rb +29 -0
- data/lib/wrb/documents/samples/sample_tooltip.rb +50 -0
- data/lib/wrb/documents/samples/sample_trackbar.rb +30 -0
- data/lib/wrb/documents/samples/sample_treeview.rb +19 -0
- data/lib/wrb/documents/samples/sample_updown.rb +18 -0
- data/lib/wrb/documents/samples/sampleimg16.iml +0 -0
- data/lib/wrb/documents/samples/sampleimg32.iml +0 -0
- data/lib/wrb/documents/samples/samplemg16.png +0 -0
- data/lib/wrb/documents/samples/samplemg32.png +0 -0
- data/lib/wrb/documents/samples/wrb.ico +0 -0
- data/lib/wrb/documents/savefilenamedlg.html +19 -0
- data/lib/wrb/documents/scrollbar.html +60 -0
- data/lib/wrb/documents/splitter.html +96 -0
- data/lib/wrb/documents/static.html +84 -0
- data/lib/wrb/documents/statusbar.html +110 -0
- data/lib/wrb/documents/tabctrl.html +151 -0
- data/lib/wrb/documents/timer.html +43 -0
- data/lib/wrb/documents/toolbar.html +181 -0
- data/lib/wrb/documents/tooltip.html +131 -0
- data/lib/wrb/documents/trackbar.html +107 -0
- data/lib/wrb/documents/treeview.html +210 -0
- data/lib/wrb/documents/updown.html +85 -0
- data/lib/wrb/documents/wincontrol.html +258 -0
- data/lib/wrb/documents/window.html +499 -0
- data/lib/wrb/documents/wrb.css +228 -0
- data/lib/wrb/gmem.rb +26 -0
- data/lib/wrb/imecommon.rb +59 -0
- data/lib/wrb/listcommon.rb +185 -0
- data/lib/wrb/lzss.rb +126 -0
- data/lib/wrb/scrollinfo.rb +142 -0
- data/lib/wrb/toplevelcommon.rb +634 -0
- metadata +315 -0
|
@@ -0,0 +1,26 @@
|
|
|
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>DdeServer</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> DdeServer < <a href="ddeml.html">DDEML</a> <span class=gohome> <a href="index.html">Home </a></span></h3>
|
|
11
|
+
<p>Provides Dynamic Data Exchange server.
|
|
12
|
+
</p>
|
|
13
|
+
<h4> Singleton methods </h4>
|
|
14
|
+
<dl>
|
|
15
|
+
<dt><code>self.[](*args)</code></dt>
|
|
16
|
+
</dl>
|
|
17
|
+
<h4> Instance methods </h4>
|
|
18
|
+
<dl>
|
|
19
|
+
<dt><code>create()</code></dt>
|
|
20
|
+
<dt><code>parent()</code></dt>
|
|
21
|
+
<dt><code>parent=(win)</code></dt>
|
|
22
|
+
<dt><code>post_advise(topic, item)</code></dt>
|
|
23
|
+
</dl>
|
|
24
|
+
|
|
25
|
+
</body>
|
|
26
|
+
</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>Dialog</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> Dialog < <a href="rwin::dialog.html">RWin::Dialog</a> <span class=gohome> <a href="index.html">Home </a></span></h3>
|
|
11
|
+
<p>The dialog box that is also a container of controls.
|
|
12
|
+
<br>See also <a href="https://docs.microsoft.com/en-us/windows/desktop/api/
|
|
13
|
+
_dlgbox/index"> Dialog Boxes section of Microsoft Docs.</a>
|
|
14
|
+
</p>
|
|
15
|
+
<h4> Singleton methods </h4>
|
|
16
|
+
<dl>
|
|
17
|
+
<dt><code>self.open_modal(parent, arg=nil)</code></dt>
|
|
18
|
+
<dd>Creates and show as modal dialog box.<br>If given nil as <i>parent</i>, creates as top level dialog box.</dd>
|
|
19
|
+
<dt><code>self.open_modeless(parent, arg=nil)</code></dt>
|
|
20
|
+
<dd>Creates and show as modeless dialog box.<br>If given nil as <i>parent</i>, creates as top level dialog box.</dd>
|
|
21
|
+
</dl>
|
|
22
|
+
<h4> Instance methods </h4>
|
|
23
|
+
<dl>
|
|
24
|
+
<dt><code>MessageBox(text, caption, type=0)</code></dt>
|
|
25
|
+
<dt><code>msgbox(text, caption, type=0)</code></dt>
|
|
26
|
+
<dd>Shows a message box that is owned by this window.</dd>
|
|
27
|
+
<dt><code>acceptable_events()</code></dt>
|
|
28
|
+
<dd>Retreives acceptable events as array of symbols.</dd>
|
|
29
|
+
<dt><code>activate()</code></dt>
|
|
30
|
+
<dd>Activates this window.<br>Returns previous window.</dd>
|
|
31
|
+
<dt><code>adjust_windowsize(w, h)</code></dt>
|
|
32
|
+
<dd>Wrapper of AdjustWindowRectEx() function.</dd>
|
|
33
|
+
<dt><code>clientsize=(client-width, client-heigt)</code></dt>
|
|
34
|
+
<dd>Resizes this window according to given client size<br>Give two integers as client-width and client-height.</dd>
|
|
35
|
+
<dt><code>get_toplevel_win()</code></dt>
|
|
36
|
+
<dd>Returns self.</dd>
|
|
37
|
+
<dt><code>icon=(ico)</code></dt>
|
|
38
|
+
<dd>Sets icon into this window.</dd>
|
|
39
|
+
<dt><code>maximizebox()</code></dt>
|
|
40
|
+
<dd>Retrives whether a maximize box is shown in the title bar.<br>Returns true/false.</dd>
|
|
41
|
+
<dt><code>maximizebox=(f)</code></dt>
|
|
42
|
+
<dd>Sets whether a maximize box is shown in the title bar.<br>Give true/false as <i>f</i>.</dd>
|
|
43
|
+
<dt><code>minimizebox()</code></dt>
|
|
44
|
+
<dd>Retrives whether a minmize box is shown in the title bar.<br>Returns true/false.</dd>
|
|
45
|
+
<dt><code>minimizebox=(f)</code></dt>
|
|
46
|
+
<dd>Sets whether a minmize box is shown in the title bar.<br>Give true/false as <i>f</i>.</dd>
|
|
47
|
+
<dt><code>move_center([target=nil[, x, y])</code></dt>
|
|
48
|
+
<dd>Moves this dialog to center of specified arguments.</dd>
|
|
49
|
+
<dt><code>register_hotkey(cmd, hotkey)</code></dt>
|
|
50
|
+
<dd>Registers a paticular key code as hot key of this application.</dd>
|
|
51
|
+
<dt><code>register_keyaccel(accel, cmd)</code></dt>
|
|
52
|
+
<dd>Registers a paticular key code as key-accelarator to accelarator table of this window.</dd>
|
|
53
|
+
<dt><code>sizebox()</code></dt>
|
|
54
|
+
<dd>Retrives whether a size box is shown in the title bar.<br>Returns true/false.</dd>
|
|
55
|
+
<dt><code>sizebox=(f)</code></dt>
|
|
56
|
+
<dd>Sets whether a size box is shown in the title bar.<br>Give true/false as <i>f</i>.</dd>
|
|
57
|
+
<dt><code>transparency()</code></dt>
|
|
58
|
+
<dd>Gets transparency of this window.<br>Retrurns an integer between 0 to 255.</dd>
|
|
59
|
+
<dt><code>transparency=(tp)</code></dt>
|
|
60
|
+
<dd>Sets transparency of this window. <br>Give an integer between 0 to 255 as <i>tp</i>.</dd>
|
|
61
|
+
<dt><code>transparentcolor()</code></dt>
|
|
62
|
+
<dd>Gets traniparent color. <br>Returns an integer as RGB color.</dd>
|
|
63
|
+
<dt><code>transparentcolor=(clr)</code></dt>
|
|
64
|
+
<dd>Sets traniparent color. <br>Give an integer as RGB color.</dd>
|
|
65
|
+
<dt><code>unregister_hotkey(mod, vk)</code></dt>
|
|
66
|
+
<dd>Not implemented yet.</dd>
|
|
67
|
+
<dt><code>unregister_keyaccel(accel)</code></dt>
|
|
68
|
+
<dd>Removes a key code from accelarator table of this window.</dd>
|
|
69
|
+
</dl>
|
|
70
|
+
<h4> Dialog styles <span class=spl>( both the symbols and the integers can be used )</span></h4>
|
|
71
|
+
<p></p>
|
|
72
|
+
<table>
|
|
73
|
+
<tr><th>Symbol</th><th>Integer value</th><th>Symbol</th><th>Integer value</th></tr>
|
|
74
|
+
<tr><td class=name1><code>:contexthelp</code></td><td class=type><code>DS_CONTEXTHELP</code></td><td class=name1><code>:sysmodal</code></td><td class=type><code>DS_SYSMODAL</code></td></tr>
|
|
75
|
+
</table>
|
|
76
|
+
|
|
77
|
+
</body>
|
|
78
|
+
</html>
|
|
@@ -0,0 +1,169 @@
|
|
|
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>Edit</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> Edit < <a href="wincontrol.html">WinControl</a> <span class=gohome> <a href="index.html">Home </a> <div class=imgright><img src="images/edit.png"></div>
|
|
11
|
+
</span></h3>
|
|
12
|
+
<p class=fixedh>A rectangular control which enable the user to enter and edit text.
|
|
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>IME=(state)</code></dt>
|
|
19
|
+
<dt><code>ime=(state)</code></dt>
|
|
20
|
+
<dd>Sets state of the IME. Give a Integer or true/false for state.<br>If true or false given IME will turns on or off.</dd>
|
|
21
|
+
<dt><code>[](idx)</code></dt>
|
|
22
|
+
<dd>Gets a text of specified line index.</dd>
|
|
23
|
+
<dt><code>[]=(position, length=1, text)</code></dt>
|
|
24
|
+
<dd>Inserts and replaces at the specified <i>position</i> and <i>length</i> by the <i>text</i> in this edit control.</dd>
|
|
25
|
+
<dt><code>autohscroll=(state)</code></dt>
|
|
26
|
+
<dd>Sets edit style of this to ES_AUTOHSCROLL or not.</dd>
|
|
27
|
+
<dt><code>autovscroll=(state)</code></dt>
|
|
28
|
+
<dd>Sets edit style of this to ES_AUTOVSCROLL or not.</dd>
|
|
29
|
+
<dt><code>bkcolor=(clr)</code></dt>
|
|
30
|
+
<dd>Sets th back ground color of this. Give a RGB integer as <i>clr</i>.</dd>
|
|
31
|
+
<dt><code>clear()</code></dt>
|
|
32
|
+
<dd>Clears all text in this edit control.</dd>
|
|
33
|
+
<dt><code>copy()</code></dt>
|
|
34
|
+
<dd>Performs copy operation.</dd>
|
|
35
|
+
<dt><code>countlines()</code></dt>
|
|
36
|
+
<dd>Counts num of lines in this edit control.</dd>
|
|
37
|
+
<dt><code>currentline()</code></dt>
|
|
38
|
+
<dd>Retreives a current line number of this edit control.</dd>
|
|
39
|
+
<dt><code>cut()</code></dt>
|
|
40
|
+
<dd>Performs cut operation.</dd>
|
|
41
|
+
<dt><code>firstvisibleline()</code></dt>
|
|
42
|
+
<dd>Gets first visible line of this edit control.<br> Retruns an Integer.</dd>
|
|
43
|
+
<dt><code>length()</code></dt>
|
|
44
|
+
<dd>Gets a text length of this edit control.</dd>
|
|
45
|
+
<dt><code>limittext()</code></dt>
|
|
46
|
+
<dd>Gets the current text limit for this edit control.</dd>
|
|
47
|
+
<dt><code>limittext=(lim)</code></dt>
|
|
48
|
+
<dd>Sets the text limit of this edit control.</dd>
|
|
49
|
+
<dt><code>line2pos(line)</code></dt>
|
|
50
|
+
<dd>Retreives a first position of specified line number in this edit control.</dd>
|
|
51
|
+
<dt><code>lines()</code></dt>
|
|
52
|
+
<dd>Retreives an array of lines separated by CRLF code.</dd>
|
|
53
|
+
<dt><code>modified()</code></dt>
|
|
54
|
+
<dd>Retreives wheter this edit control was modified.</dd>
|
|
55
|
+
<dt><code>modified=(f)</code></dt>
|
|
56
|
+
<dd>Sets modified flag to true or false.</dd>
|
|
57
|
+
<dt><code>muitiline=(state)</code></dt>
|
|
58
|
+
<dd>Sets edit style of this to ES_MULTILINE or not.</dd>
|
|
59
|
+
<dt><code>password=(state)</code></dt>
|
|
60
|
+
<dd>Sets edit style of this to ES_PASSWORD or not.</dd>
|
|
61
|
+
<dt><code>passwordchar()</code></dt>
|
|
62
|
+
<dd>Gets the password character that this edit control displays when the user enters text.<br>Returns a single charactor of String or nil. If nil was given, this edit control is used system default password charactor.</dd>
|
|
63
|
+
<dt><code>passwordchar=(ch)</code></dt>
|
|
64
|
+
<dd>Sets or removes the password character for this edit control. <br>Give a single charactor of String, or nil.</dd>
|
|
65
|
+
<dt><code>paste()</code></dt>
|
|
66
|
+
<dd>Performs paste operation.</dd>
|
|
67
|
+
<dt><code>point2line(x, y)</code></dt>
|
|
68
|
+
<dd>Retreives a line number of specified coordinate(x, y) in this edit control.</dd>
|
|
69
|
+
<dt><code>point2pos(x, y)</code></dt>
|
|
70
|
+
<dd>Retreives a position of specified coordinate(x, y) in this edit control.</dd>
|
|
71
|
+
<dt><code>pos2line(pos)</code></dt>
|
|
72
|
+
<dd>Retreives a line number of specified position in this edit control.</dd>
|
|
73
|
+
<dt><code>readonly=(state)</code></dt>
|
|
74
|
+
<dd>Sets edit style of this to EM_SETREADONLY or not.</dd>
|
|
75
|
+
<dt><code>scrollcaret()</code></dt>
|
|
76
|
+
<dd>Scrolls the caret into view in this edit control.</dd>
|
|
77
|
+
<dt><code>scrolldnpage()</code></dt>
|
|
78
|
+
<dd>Scrolls down to one page.</dd>
|
|
79
|
+
<dt><code>scrolldown()</code></dt>
|
|
80
|
+
<dd>Scrolls down to one line.</dd>
|
|
81
|
+
<dt><code>scrollto(line, col)</code></dt>
|
|
82
|
+
<dd>Scrolls the text to specified line and column.</dd>
|
|
83
|
+
<dt><code>scrollup()</code></dt>
|
|
84
|
+
<dd>Scrolls up to one line.</dd>
|
|
85
|
+
<dt><code>scrolluppage()</code></dt>
|
|
86
|
+
<dd>Scrolls up to one page.</dd>
|
|
87
|
+
<dt><code>selection()</code></dt>
|
|
88
|
+
<dd>Gets the starting and ending character positions of the current selection.</dd>
|
|
89
|
+
<dt><code>selection=(starting[, ending])</code></dt>
|
|
90
|
+
<dd>Selects a range of characters in an edit control.</dd>
|
|
91
|
+
<dt><code>text()</code></dt>
|
|
92
|
+
<dd>Sets a text into this edit contlol. Same as caption().</dd>
|
|
93
|
+
<dt><code>text=(txt)</code></dt>
|
|
94
|
+
<dd>Gets a text of this edit contlol. Same as caption=(str).</dd>
|
|
95
|
+
<dt><code>undo()</code></dt>
|
|
96
|
+
<dd>Performs undo operation.</dd>
|
|
97
|
+
<dt><code>wantreturn=(state)</code></dt>
|
|
98
|
+
<dd>Sets edit style of this to ES_WANTRETRURN or not.</dd>
|
|
99
|
+
</dl>
|
|
100
|
+
<h4> Edit styles <span class=spl>( both the symbols and the integers can be used )</span></h4>
|
|
101
|
+
<p></p>
|
|
102
|
+
<table>
|
|
103
|
+
<tr><th>Symbol</th><th>Integer value</th><th>Symbol</th><th>Integer value</th></tr>
|
|
104
|
+
<tr><td class=name1><code>:autohscroll</code></td><td class=type><code>ES_AUTOHSCROLL</code></td><td class=name1><code>:autovscroll</code></td><td class=type><code>ES_AUTOVSCROLL</code></td></tr>
|
|
105
|
+
<tr><td class=name1><code>:center</code></td><td class=type><code>ES_CENTER</code></td><td class=name1><code>:lowercase</code></td><td class=type><code>ES_LOWERCASE</code></td></tr>
|
|
106
|
+
<tr><td class=name1><code>:multiline</code></td><td class=type><code>ES_MULTILINE</code></td><td class=name1><code>:nohidesell</code></td><td class=type><code>ES_NOHIDESEL</code></td></tr>
|
|
107
|
+
<tr><td class=name1><code>:number</code></td><td class=type><code>ES_NUMBER</code></td><td class=name1><code>:oemconvert</code></td><td class=type><code>ES_OEMCONVERT</code></td></tr>
|
|
108
|
+
<tr><td class=name1><code>:password</code></td><td class=type><code>ES_PASSWORD</code></td><td class=name1><code>:readonly</code></td><td class=type><code>ES_READONLY</code></td></tr>
|
|
109
|
+
<tr><td class=name1><code>:right</code></td><td class=type><code>ES_RIGHT</code></td><td class=name1><code>:uppercase</code></td><td class=type><code>ES_UPPERCASE</code></td></tr>
|
|
110
|
+
<tr><td class=name1><code>:wantreturn</code></td><td class=type><code>ES_WANTRETURN</code></td></tr>
|
|
111
|
+
</table>
|
|
112
|
+
<h4> Pre-defined events <span class=spl> ( can be added by `events=` method )</span></h4>
|
|
113
|
+
<p></p>
|
|
114
|
+
<table>
|
|
115
|
+
<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>
|
|
116
|
+
<tr><td class=name1><code>:align_ltr_ec</code></td><td class=type><code>EN_ALIGN_LTR_EC</code></td><td class=desc><code>???_align_ltr_ec(idcmd, code, hwnd)</code></td></code></tr>
|
|
117
|
+
<tr><td class=name1><code>:align_rtl_ec</code></td><td class=type><code>EN_ALIGN_RTL_EC</code></td><td class=desc><code>???_align_rtl_ec(idcmd, code, hwnd)</code></td></code></tr>
|
|
118
|
+
<tr><td class=name1><code>:change</code></td><td class=type><code>EN_CHANGE</code></td><td class=desc><code>???_change(idcmd, code, hwnd)</code></td></code></tr>
|
|
119
|
+
<tr><td class=name1><code>:errspace</code></td><td class=type><code>EN_ERRSPACE</code></td><td class=desc><code>???_errspace(idcmd, code, hwnd)</code></td></code></tr>
|
|
120
|
+
<tr><td class=name1><code>:hscroll</code></td><td class=type><code>EN_HSCROLL</code></td><td class=desc><code>???_hscroll(idcmd, code, hwnd)</code></td></code></tr>
|
|
121
|
+
<tr><td class=name1><code>:killfocus</code></td><td class=type><code>EN_KILLFOCUS</code></td><td class=desc><code>???_killfocus(idcmd, code, hwnd)</code></td></code></tr>
|
|
122
|
+
<tr><td class=name1><code>:maxtext</code></td><td class=type><code>EN_MAXTEXT</code></td><td class=desc><code>???_maxtext(idcmd, code, hwnd)</code></td></code></tr>
|
|
123
|
+
<tr><td class=name1><code>:setfocus</code></td><td class=type><code>EN_SETFOCUS</code></td><td class=desc><code>???_setfocus(idcmd, code, hwnd)</code></td></code></tr>
|
|
124
|
+
<tr><td class=name1><code>:update</code></td><td class=type><code>EN_UPDATE</code></td><td class=desc><code>???_update(idcmd, code, hwnd)</code></td></code></tr>
|
|
125
|
+
<tr><td class=name1><code>:vscroll</code></td><td class=type><code>EN_VSCROLL</code></td><td class=desc><code>???_vscroll(idcmd, code, hwnd)</code></td></code></tr>
|
|
126
|
+
</table>
|
|
127
|
+
<h4> Default events <span class=spl>( can be defined without using `events=' method )</h4>
|
|
128
|
+
<p></p>
|
|
129
|
+
<dl>
|
|
130
|
+
<dt><code>???_change(idcmd, code, hwnd)</code></dt>
|
|
131
|
+
<dt><code>???_update(idcmd, code, hwnd)</code></dt>
|
|
132
|
+
</dl>
|
|
133
|
+
<h3> Edit::Selection </h3>
|
|
134
|
+
<h4> Instance methods </h4>
|
|
135
|
+
<dl>
|
|
136
|
+
<dt><code>text()</code></dt>
|
|
137
|
+
<dt><code>text=(txt)</code></dt>
|
|
138
|
+
</dl>
|
|
139
|
+
<h4> Sample script </h4>
|
|
140
|
+
<pre class=cd>
|
|
141
|
+
require <span class="str">'wrb'</span>
|
|
142
|
+
<span class="kwd">module</span> WR
|
|
143
|
+
<span class="kwd">class</span> MyForm < Form
|
|
144
|
+
<span class="kwd">def</span> initialize
|
|
145
|
+
<span class="kwd">self</span>.size = [268, 201]
|
|
146
|
+
<span class="kwd">self</span>.inheritfont = [<span class="str">'Meiryo'</span>, -12]
|
|
147
|
+
_<< Edit[<span class="sym">:edit1</span>, <span class="str">"Edit"</span>, 4, 2, 92, 24]
|
|
148
|
+
_<< Edit[<span class="sym">:edit1</span>, <span class="str">"center"</span>, 4, 28, 92, 24, <span class="sym">:center</span>]
|
|
149
|
+
_<< Edit[<span class="sym">:edit1</span>, <span class="str">"right"</span>, 4, 54, 92, 24, <span class="sym">:right</span>]
|
|
150
|
+
_<< Edit[<span class="sym">:edit1</span>, <span class="str">"readonly"</span>, 4, 82, 92, 24,<span class="sym">:readonly</span>]
|
|
151
|
+
_<< Edit[<span class="sym">:edit1</span>, <span class="str">"123456"</span>, 4, 108, 92, 24, <span class="sym">:number</span>]
|
|
152
|
+
_<< Edit[<span class="sym">:edit1</span>, <span class="str">"abcxy"</span>, 4, 134, 92, 24, <span class="sym">:password</span>, <span class="sym">:passwordchar</span>=><span class="str">'*'</span>]
|
|
153
|
+
_<< Edit[<span class="sym">:edit2</span>, <span class="str">"multiline"</span>, 100, 2, 148, 76, <span class="sym">:multiline</span>]
|
|
154
|
+
_<< Edit[<span class="sym">:edit3</span>, <span class="str">"multiline"</span>, 100, 82, 148, 76, <span class="sym">:right</span>, <span class="sym">:multiline</span>]
|
|
155
|
+
_edit2.text = <<EEOOFF
|
|
156
|
+
This is a sample of mutiline.
|
|
157
|
+
Please use "text=" instead."
|
|
158
|
+
EEOOFF
|
|
159
|
+
_edit3.text = <<EEOOFF
|
|
160
|
+
This is a sample of right justified mutiline.
|
|
161
|
+
EEOOFF
|
|
162
|
+
<span class="kwd">end</span>
|
|
163
|
+
<span class="kwd">self</span>.start
|
|
164
|
+
<span class="kwd">end</span>
|
|
165
|
+
<span class="kwd">end</span>
|
|
166
|
+
</pre>
|
|
167
|
+
|
|
168
|
+
</body>
|
|
169
|
+
</html>
|
|
@@ -0,0 +1,11 @@
|
|
|
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>untiteld</title>
|
|
6
|
+
<link href="wrb.css" type="text/css" rel="stylesheet">
|
|
7
|
+
<link rel="shortcut icon" href="favicon.png">
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
</body>
|
|
11
|
+
</html>
|
|
Binary file
|
|
@@ -0,0 +1,38 @@
|
|
|
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>Font</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> Font <span class=gohome> <a href="index.html">Home </a></span></h3>
|
|
11
|
+
<p>Defines a particular format for text, including font face, size, and style 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(facename, fontheigt, style|bold=nil, italic=nil, underline=nil, strikeout=nil)</code></dt>
|
|
18
|
+
<dd>Creates a new font with specified arguments.<br>Give a String as facename and an Integer as fontheight.Give combination of "b", "i", "u", "s" as style. Otherwize, give true/false as each arguments.</dd>
|
|
19
|
+
<dt><code>self.wraphandle(hfont)</code></dt>
|
|
20
|
+
</dl>
|
|
21
|
+
<h4> Instance methods </h4>
|
|
22
|
+
<dl>
|
|
23
|
+
<dt><code>_hfont()</code></dt>
|
|
24
|
+
<dd>Retrieves a font handle of self. Returns 32/64 bits integer as it.</dd>
|
|
25
|
+
<dt><code>dispose()</code></dt>
|
|
26
|
+
<dd>Destroies self and removes from resource table and sets hfont to 0. Returns true/false.</dd>
|
|
27
|
+
<dt><code>external?()</code></dt>
|
|
28
|
+
<dd>Retreives whether this font is external or not.<br> Returns true/false.</dd>
|
|
29
|
+
<dt><code>facename()</code></dt>
|
|
30
|
+
<dd>Retreives name of this font, such as "Meiryo" and so on.<br> Returnes a String.</dd>
|
|
31
|
+
<dt><code>height()</code></dt>
|
|
32
|
+
<dd>Retreives height of this font as `em height'.<br> Retruns an Integer.</dd>
|
|
33
|
+
<dt><code>logfont()</code></dt>
|
|
34
|
+
<dd>Retreives a CStruct object. Wrap this with <i>LOGFONT</i> structure to handle by names.</dd>
|
|
35
|
+
</dl>
|
|
36
|
+
|
|
37
|
+
</body>
|
|
38
|
+
</html>
|
|
@@ -0,0 +1,63 @@
|
|
|
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>Form</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> Form < <a href="window.html">Window</a> <span class=gohome> <a href="index.html">Home </a></span></h3>
|
|
11
|
+
<p>The top level window that is also a container of controls.
|
|
12
|
+
<br>See also <a href="https://docs.microsoft.com/en-us/windows/desktop/api/_winmsg/">
|
|
13
|
+
Windows and Messages section of Microsoft Docs.</a>
|
|
14
|
+
</p>
|
|
15
|
+
<h4> Instance methods </h4>
|
|
16
|
+
<dl>
|
|
17
|
+
<dt><code>MessageBox(text, caption, type=0)</code></dt>
|
|
18
|
+
<dt><code>msgbox(text, caption, type=0)</code></dt>
|
|
19
|
+
<dd>Shows a message box that is owned by this window.</dd>
|
|
20
|
+
<dt><code>acceptable_events()</code></dt>
|
|
21
|
+
<dd>Retreives acceptable events as array of symbols.</dd>
|
|
22
|
+
<dt><code>activate()</code></dt>
|
|
23
|
+
<dd>Activates this window.<br>Returns previous window.</dd>
|
|
24
|
+
<dt><code>adjust_windowsize(w, h)</code></dt>
|
|
25
|
+
<dd>Wrapper of AdjustWindowRectEx() function.</dd>
|
|
26
|
+
<dt><code>clientsize=(client-width, client-heigt)</code></dt>
|
|
27
|
+
<dd>Resizes this window according to given client size<br>Give two integers as client-width and client-height.</dd>
|
|
28
|
+
<dt><code>get_toplevel_win()</code></dt>
|
|
29
|
+
<dd>Returns self.</dd>
|
|
30
|
+
<dt><code>icon=(ico)</code></dt>
|
|
31
|
+
<dd>Sets icon into this window.</dd>
|
|
32
|
+
<dt><code>maximizebox()</code></dt>
|
|
33
|
+
<dd>Retrives whether a maximize box is shown in the title bar.<br>Returns true/false.</dd>
|
|
34
|
+
<dt><code>maximizebox=(f)</code></dt>
|
|
35
|
+
<dd>Sets whether a maximize box is shown in the title bar.<br>Give true/false as <i>f</i>.</dd>
|
|
36
|
+
<dt><code>minimizebox()</code></dt>
|
|
37
|
+
<dd>Retrives whether a minmize box is shown in the title bar.<br>Returns true/false.</dd>
|
|
38
|
+
<dt><code>minimizebox=(f)</code></dt>
|
|
39
|
+
<dd>Sets whether a minmize box is shown in the title bar.<br>Give true/false as <i>f</i>.</dd>
|
|
40
|
+
<dt><code>register_hotkey(cmd, hotkey)</code></dt>
|
|
41
|
+
<dd>Registers a paticular key code as hot key of this application.</dd>
|
|
42
|
+
<dt><code>register_keyaccel(accel, cmd)</code></dt>
|
|
43
|
+
<dd>Registers a paticular key code as key-accelarator to accelarator table of this window.</dd>
|
|
44
|
+
<dt><code>sizebox()</code></dt>
|
|
45
|
+
<dd>Retrives whether a size box is shown in the title bar.<br>Returns true/false.</dd>
|
|
46
|
+
<dt><code>sizebox=(f)</code></dt>
|
|
47
|
+
<dd>Sets whether a size box is shown in the title bar.<br>Give true/false as <i>f</i>.</dd>
|
|
48
|
+
<dt><code>transparency()</code></dt>
|
|
49
|
+
<dd>Gets transparency of this window.<br>Retrurns an integer between 0 to 255.</dd>
|
|
50
|
+
<dt><code>transparency=(tp)</code></dt>
|
|
51
|
+
<dd>Sets transparency of this window. <br>Give an integer between 0 to 255 as <i>tp</i>.</dd>
|
|
52
|
+
<dt><code>transparentcolor()</code></dt>
|
|
53
|
+
<dd>Gets traniparent color. <br>Returns an integer as RGB color.</dd>
|
|
54
|
+
<dt><code>transparentcolor=(clr)</code></dt>
|
|
55
|
+
<dd>Sets traniparent color. <br>Give an integer as RGB color.</dd>
|
|
56
|
+
<dt><code>unregister_hotkey(mod, vk)</code></dt>
|
|
57
|
+
<dd>Not implemented yet.</dd>
|
|
58
|
+
<dt><code>unregister_keyaccel(accel)</code></dt>
|
|
59
|
+
<dd>Removes a key code from accelarator table of this window.</dd>
|
|
60
|
+
</dl>
|
|
61
|
+
|
|
62
|
+
</body>
|
|
63
|
+
</html>
|
|
@@ -0,0 +1,57 @@
|
|
|
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>Groupbox</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> Groupbox < <a href="button.html">Button</a> <span class=gohome> <a href="index.html">Home </a> <div class=imgright><img src="images/groupbox.png"></div>
|
|
11
|
+
</span></h3>
|
|
12
|
+
<p class=fixedh>This control is a rectangle that surrounds a set of controls, such as check boxes or radio buttons. <br>
|
|
13
|
+
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><<(ctrl)</code></dt>
|
|
19
|
+
<dd>Adds a control to this group box.<br>Give a WinControl as ctrl.</dd>
|
|
20
|
+
<dt><code>[](idx)</code></dt>
|
|
21
|
+
<dd>Retreives an control of given index in the group box.<br>Give an Integer as idx.</dd>
|
|
22
|
+
<dt><code>delete()</code></dt>
|
|
23
|
+
<dd>Removes controls from this group box ad deletes self.</dd>
|
|
24
|
+
<dt><code>index_of(ctrl)</code></dt>
|
|
25
|
+
<dd>Retreives an index of control in the group.<br>Give a WinControl as ctrl.</dd>
|
|
26
|
+
<dt><code>move(x, y[, w, h])</code></dt>
|
|
27
|
+
<dd>Moves controls of this group box according to this coordinates.<br>Give the integers as x, y, w, h.</dd>
|
|
28
|
+
<dt><code>remove(ctrl)</code></dt>
|
|
29
|
+
<dd>Removes a control from the group. (Not deleted)<br>Give a WinControl as ctrl.</dd>
|
|
30
|
+
<dt><code>visible=(f)</code></dt>
|
|
31
|
+
<dd>Changes visible state of this and controls.<br>Give true/false as f.</dd>
|
|
32
|
+
</dl>
|
|
33
|
+
<h4> Sample script </h4>
|
|
34
|
+
<pre class=cd>
|
|
35
|
+
require <span class="str">'wrb'</span>
|
|
36
|
+
|
|
37
|
+
<span class="kwd">module</span> WR
|
|
38
|
+
<span class="kwd">class</span> MyForm < Form
|
|
39
|
+
<span class="kwd">def</span> initialize
|
|
40
|
+
<span class="kwd">self</span>.inheritfont = [<span class="str">"Meiryo"</span>, -12]
|
|
41
|
+
<span class="kwd">self</span>.size = 268, 201
|
|
42
|
+
_<< Groupbox[<span class="sym">:gbox1</span>, <span class="str">"Group1"</span>, 10, 10, 110, 110]
|
|
43
|
+
_gbox1 << Radiobutton[<span class="sym">:rbtn1</span>, <span class="str">"select me"</span>, 8, 20, 84, 24]
|
|
44
|
+
_gbox1 << Radiobutton[<span class="sym">:rbtn1</span>, <span class="str">"select me"</span>, 8, 50, 84, 24]
|
|
45
|
+
_gbox1 << Radiobutton[<span class="sym">:rbtn1</span>, <span class="str">"select me"</span>, 8, 80, 84, 24]
|
|
46
|
+
_<< Groupbox[<span class="sym">:gbox2</span>, <span class="str">"Group2"</span>, 130, 10, 110, 110]
|
|
47
|
+
_gbox2 << Radiobutton[<span class="sym">:rbtn2</span>, <span class="str">"select me"</span>, 8, 20, 84, 24]
|
|
48
|
+
_gbox2 << Radiobutton[<span class="sym">:rbtn2</span>, <span class="str">"select me"</span>, 8, 50, 84, 24]
|
|
49
|
+
_gbox2 << Radiobutton[<span class="sym">:rbtn2</span>, <span class="str">"select me"</span>, 8, 80, 84, 24]
|
|
50
|
+
<span class="kwd">end</span>
|
|
51
|
+
<span class="kwd">self</span>.start
|
|
52
|
+
<span class="kwd">end</span>
|
|
53
|
+
<span class="kwd">end</span>
|
|
54
|
+
</pre>
|
|
55
|
+
|
|
56
|
+
</body>
|
|
57
|
+
</html>
|