scrollbar - Shoes problems: clipboard and scroll bar -
The code below (at least) has two problems: copy button is not updated Does the clipboard, and edit_box do not see a vertical scroll bar when it should.
Boot.app (: title = & gt; "test" ,: width = & gt; 1000 ,: height => 600) Background "# DFA" stack: margin = & gt; 30 Do-Do-Do-Do Button "Paste" @ sql.text = "Copy" Clipboard & Button,: Margin_bound => 15 Clipboard = @ sql.text Alert (@ sql.text.length.to_s + "Characters copied to clipboard.") End end stack: margin_top = & gt; 10 ,: width = & gt; "100%" ,: height = & gt; 500 ,: Scroll = & gt; True is @ sql = edit_box: width = & gt; "100%" ,: height = & gt; "100%" End End Paste button pastes clipboard contents in edit_box . If you make changes, click on copy , alert message displays the correct number of characters. If you click on Paste again, the original clipboard content sticks. Copy button never updates the clipboard correctly.
In addition, if you generate more lines than fit in edit_box , then by editing or pasting, no book is ever displayed.
Any help on these two issues will be highly appreciated. My environment is Windows XP if it helps.
Update with the answer: Thanks to Pesto for answering the clipboard question it shows that the clipboard or app or Self. with paste and both work as expected copy button.
After digging deep into the scrollbar issue, I think that I understand why edit_box does not show a scrollbar, the scrollbar in the shoes applies only to slots (< Not for personal elements like code> stack and flow ), and edit_box The edit_box height is specified in such a way that the stack does not always require a scrollbar to attach to stack . This has inspired me to do one thing that is not ideal, but it is acceptable for my application. Just replace the edit_box height as a big-to-required value like "10000px" and the scrollbar appears. Unfortunately, this is not necessary or not, but it is not better than a scrollbar. I'm sure that some additional shuffle dynamic edit_box height really, to fit the content so that the scrollbar will only show the requirement.
First, the easiest one:. app.clipboard = @ sql.text
Second, as far as the scrollbar goes, it's on a Windows XP bug in the bug report on this Not listed, but the latest version (R1229) still does not have a scrollbar.
Comments
Post a Comment