diff --git a/Merger.js b/Merger.js index 4275200..386d35c 100644 --- a/Merger.js +++ b/Merger.js @@ -898,6 +898,9 @@ */ function checkbox(id, def) { var c = control("checkbox", id, core.mkDefinition({ + style: { + margin: "0", + }, setChecked: function (value) { this.checked = value; }, diff --git a/MergerTester.js b/MergerTester.js index 60fa3af..0248028 100644 --- a/MergerTester.js +++ b/MergerTester.js @@ -36,7 +36,7 @@ text: "Test", items: [merger.ui.menuItem("mt_controls", { text: "Test Controls Dialog", - onClick:function(){ + onClick: function () { this.getApplication().windows.controls.show(); } }) @@ -57,10 +57,25 @@ merger.ui.label("Linfo", { top: 20, left: 40, - width: 400 - 37, + width: 200 - 37, height: 32, text: "Control samples dialog.", }), + merger.ui.textbox("sample_textbox", { + top: 40, + left: 0, + width: 200, + text: "Textbox", + }), + merger.ui.checkbox("sample_checkbox", { + top: 60, + left: 0, + }), + merger.ui.label("sample_checkbox_label", { + top: 60, + left: 20, + text: "Checkbox", + }), merger.ui.button("Bok", { top: 200 - 20, left: 200 - 35,