<div dir="ltr"><div dir="ltr">Wow! Thanks!!! =) =) =)<br>But I've tried to put these five lines<br><br>  sm := SimpleSwitchMorph new.<br>  sm openInWorld.<br>  bm := SimpleButtonMorph new.<br>  bm openInWorld.<br>  bm position: bm position + (0@32).<br><br>in a topic window, and then execute the first four lines in a "do it",<br>then the fifth line in another "do it"... when I tried that I got an<br>error in this method,<br><br>  HelpBrowser >> bindingOf:<br><br>because it tried to execute<br><br>  bindings includesKey: aString<br><br>with bindings being nil... can you fix that?<br><br>  Thanks in advance! =)<br>    Eduardo Ochs<br></div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 28 Feb 2023 at 03:27, karl ramberg <<a href="mailto:karlramberg@gmail.com">karlramberg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>See change set in attachment for adding dynamic bindings to HelpBrowser.</div><div>It's a proof of concept :-)</div><div><br></div><div>Best,</div><div>Karl<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 27, 2023 at 9:42 AM Eduardo Ochs <<a href="mailto:eduardoochs@gmail.com" target="_blank">eduardoochs@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi Karl,<br><br>> In HelpBrowser you must declare the variables before using them.<br>> (...)<br>> HelpBrowser does not implement dynamic binding of variables.<br><br>Yes - my first idea was to ask here what I needed to change in my<br>class TerseGuideHelp to make the "workspace" of its help browser use<br>dynamic biding of variables... but then I spent some hours trying to<br>find the answer myself, and I stumbled on a more low-level question<br>that I found much more askworthy...<br><br>> You can right click on a Workspace window and a HelpBrowser window<br>> and inspect the model and see the differences.<br><br>I did that. Are these differences obvious to a trained eye? They<br>weren't to me.<br><br>> Also browse class Workspace and look at access to variable<br>> 'bindings'.<br><br>This may be a pointer to searching tools that I need to learn. I saw<br>that if I click on "variables" and then on "bindings" I get a list of<br>the methods in Workspace that access the variable "bindings"... I also<br>tried to fileOut the class Workspace and to read it in Emacs, and I<br>found the same occurrences.<br><br>Here is an educated guess. Is the method "hasBindingOf:" the main<br>piece needed to make a mini-workspace support dynamic variables? If<br>so, how, exactly? Is there a part of the compiler that calls<br>"hasBindingOf:" when it sees an unknown variable? I couldn't find<br>it...<br><br>  Cheers,<br>    Eduardo Ochs<br></div><div dir="ltr"><br></div></div>
<br>
</blockquote></div>
<br>
</blockquote></div></div>