<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Dec 6, 2010, at 5:51 PM, András Murányi wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br><div class="gmail_quote">2010/12/5 Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> <div style="word-wrap: break-word;"><div><div></div><div class="h5"><br><div><div>On Dec 4, 2010, at 8:31 PM, András Murányi wrote:</div><br><blockquote type="cite"><br><br><div class="gmail_quote">2010/12/5 Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a>&gt;</span><br> <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> <div style="word-wrap: break-word;"><br><div><div><div>On Dec 4, 2010, at 7:41 PM, András Murányi wrote:</div> <br></div><blockquote type="cite"><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> <div style="word-wrap: break-word;"> <div><div><blockquote type="cite"> <div><div><br><div class="gmail_quote">2010/9/13 Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a>&gt;</span><br> <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">   <br> Hey András,<br> <br> Since we are in bug fixing mode for 0.43, now is a good time to test your GUI plugins, so we can make sure that they work in 0.43. &nbsp;Your plugins-plugin.tcl is a good example.<br>  <br> .hc<br> </blockquote> <div>&nbsp;<br>OK, you'll find plugins-plugin rewritten and attached. Later i'll add it to the wiki too...<br><br>Now i'd rewrite my other plugins, and the first would be a simple one binding fullscreen to F11 - but it seems keypresses are already captured and i cannot get a hold of F11 any more from TCL. Is that right or am i just lost?<br>    <br>Andras<br> </div></div> </div></div><span>&lt;plugins-plugin.tcl&gt;</span></blockquote></div><br></div><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>  <div style="word-wrap: break-word;"> Excellent! &nbsp;I just tried it out, and got a problem when I unchecked "set_custom_stored_histores". &nbsp;Here's the screenshot and error log:</div></div><div style="word-wrap: break-word;">  <span>&lt;Picture 1.png&gt;</span></div><div> <div style="word-wrap: break-word;"><div style="word-wrap: break-word;">bad option "-index": must be -all, -ascii, -decreasing, -dictionary, -exact, -glob, -increasing, -inline, -integer, -not, -real, -regexp, -sorted, or -start</div>   <div style="word-wrap: break-word;">bad option "-index": must be -all, -ascii, -decreasing, -dictionary, -exact, -glob, -increasing, -inline, -integer, -not, -real, -regexp, -sorted, or -start</div><div style="word-wrap: break-word;">   &nbsp;&nbsp; &nbsp;while executing</div><div style="word-wrap: break-word;">"lsearch -index 0 -exact $startup_plugins $shortname"</div><div style="word-wrap: break-word;">&nbsp;&nbsp;&nbsp; </div></div></div></span></div></div></blockquote>  <div><div style="word-wrap: break-word;"> &nbsp;<br>oops. "<span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">lsearch -index</span>" turns out to be a 8.5 thing (and you probably have 8.4), so i'll need to require 8.5, as I cannot even work this around.<br>   Thanks for pointing it out!<br></div></div></div></blockquote><div><br></div><div>Ah, yes, works fine with Tcl/Tk 8.5</div><div><div><br></div><blockquote type="cite"><div class="gmail_quote"><div style="word-wrap: break-word;">  (can you, by any chance, give me a hint on bindings...?)<br>Andras<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word;">  <div><span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"></span></div>   </div></blockquote></div></blockquote><br></div></div><div>Sure, what help do you need with bindings?</div><div><br></div><div>.hc</div><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><br>  </span></div></div></blockquote><div>&nbsp;<br><br>...now i'd rewrite my other plugins, and the first would be a simple one binding fullscreen to F11 - but it seems keypresses are already captured and i cannot get a hold of F11 any more from TCL. Is that right or am i just lost?<br> <br>Andras<br> </div></div></blockquote><br></div></div></div><div>Hmm, as far as I know you can always bind to any keystroke. &nbsp;Just be sure to not override the built-in bindings and use a + before the proc in the bind statement.</div> <div class="im"><div><br></div><div>.hc</div></div></div></blockquote><div class="im">&nbsp;<br>Thanks, of course it was something else that i messed up.<br>btw, it refused the "+" when the command was more than one word, ie:<br> bind all &lt;F11&gt; +{toggle_fullscreen}&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; # works<br> bind all &lt;F11&gt; +{toggle_fullscreen %W} # bummer<br><br>Andras<br> </div></div></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; ">Hmm, I put the plus inside the quotes, then it seems to work:</span></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><br></span></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div class="gmail_quote"><div class="im">bind all &lt;F11&gt; {+toggle_fullscreen %W}&nbsp;<br></div><div class="im"><br></div><div class="im">.hc</div></div><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><br></div><div>----------------------------------------------------------------------------</div><div><br></div><div>Looking at things from a more basic level, you can come up with a more direct solution... It may sound small in theory, but it in practice, it can change entire economies.<span class="Apple-converted-space">&nbsp;</span>&nbsp; &nbsp; - Amy Smith</div><br class="Apple-interchange-newline"></span></span> </div><br></body></html>