static/manual-en.txt in green_shoes-1.0.273 vs static/manual-en.txt in green_shoes-1.0.282

- old
+ new

@@ -636,11 +636,11 @@ para fg(FONTS.join(', '), green) para COLORS.map{|k, v| [k, v]} end }}} -=== alert(message: a string) » nil === +=== alert(message: a string, :block => true or false) » nil === Pops up a window containing a short message. {{{ #!ruby @@ -649,10 +649,12 @@ Please use alerts sparingly, as they are incredibly annoying! If you are using alerts to show messages to help you debug your program, try checking out the standard Ruby method `puts` or `p` methods. +If you want to make alert() thread safe, i.e. unblock main thread, use `:block => false` option. + === ask(message: a string) » a string === Pops up a window and asks a question. For example, you may want to ask someone their name. @@ -2207,10 +2209,15 @@ Creates a Link text block, which Green Shoes styles with a single underline and colors with a #06E (blue) colored stroke. The default LinkHover style is also single-underlined with a #039 (dark blue) stroke. +=== link(text){ ... } » Shoes::Link === + +Creates a Link text block. You can also write with this style. When user clicks the link text, +the block will be launched. + === list_box(:items => [strings, ...]) » Shoes::ListBox === Adds a drop-down list box containing entries for everything in the `items` array. An optional block may be attached, which is called if anything in the box becomes selected by the user. @@ -2326,14 +2333,14 @@ window. This way the child window can call the parent. {{{ #!ruby Shoes.app title: "The Owner" do - button "Pop up?" do - window do - para "Okay, popped up from [#{owner}]." - end + button "Pop up?" do + window do + para "Okay, popped up from [#{owner.inspect}]." end + end end }}} == Events ==