Ok...I see what you have done...sort of...!<br><br>You are using &quot;Presenters&quot; and &quot;PluggableWidgets&quot; to do what I asked, I think.<br><br>Take care,<br><br>Rob<br><br><div class="gmail_quote">On Sat, Jan 10, 2009 at 10:58 AM, Rob Rothwell <span dir="ltr">&lt;<a href="mailto:r.j.rothwell@gmail.com">r.j.rothwell@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Sat, Jan 10, 2009 at 9:18 AM, Rob Gayvert <span dir="ltr">&lt;<a href="mailto:rtg@rochester.rr.com" target="_blank">rtg@rochester.rr.com</a>&gt;</span> wrote:<br>
<div class="gmail_quote"><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Rob Rothwell wrote:<br><br></div>
All of the wx classes inherit from WxBase, which has WxConstants as a pool dictionary. There&#39;s a bit of magic here, in that WxConstants is actually loaded at startup from the VM, so that it gets the correct values of these constants for the current platform (e.g., some values are different for Windows vs OS X).</blockquote>

</div><div><br>Ok...so if I want to add my own menu Id&#39;s, say, I would use the traditional method of, say, #fileDoSomethingNew...<br><br>Always the magic...!<br><br>&nbsp;</div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Also, I am just trying to learn how to get around in WxSqueak by creating a simple tabbed editor. &nbsp;I can&#39;t figure out which event lets me know I have switched tabs (pages) so I can give the focus to the text editor without having to click in the edit window as well. &nbsp;Any hints? &nbsp;The wxWidgets documentation indicates a *EVT_NOTEBOOK_PAGE_CHANGED* message, so I was looking for something like wxEvtNotebookPageChanged, but it doesn&#39;t exist. &nbsp;Just not implemented?<br>


</blockquote>
<br></div>
Figuring out which events to use is one of the hardest parts of using wxWidgets, especially if you&#39;re not using a GUI builder. In this case the documentation references the *macro* EVT_NOTEBOOK_PAGE_CHANGED, but the actual event is wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED (you have to keep in mind that the manual is written for C++ programmers).<br>


<br>
Take a look at the controls sample, in particular WxControlsSamplePanel&gt;&gt;setupEvents.</blockquote></div><div><br>Late last night (or early this morning), I did find the controls sample, and tried something like:<br>
<br>&nbsp;&nbsp;&nbsp; panel on: #wxEvtCommandNotebookPageChanged send: [:evt | tc setFocus. tc setInsertionPoint: 0. evt skip],&nbsp; but still the notebook tab retains the focus.&nbsp; You&#39;re right about searching for the proper events; it&#39;s VB6 all over again!<br>

<br></div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Sometimes the most basic questions are the hardest, especially when they reveal weaknesses in the framework ;)</blockquote>

</div><div><br>On the &quot;VB6&quot; note, how would you recommend wiring controls to your model?&nbsp; I was thinking about doing something like Aida does with the concept of WebElements.&nbsp; You know, create something like a wxCheckBoxElement that does the event handling for you and wires the value of the check to your domain model, and then being able to build new elements containing other elements.<br>

<br>Otherwise, it DOES feel very much like standard Windows event driven programming with your code spread out all over the place...<br><br>However, since I have a background with windows controls, understanding the widgets is easier for me than Morphic widgets, or VW controls, so I think I could actually wrap my mind around wiring a real model to a view--I just thought I&#39;d ask if you found something worked better in your experience!<br>

<br>Thank you,<br><br>Rob<br></div></div>
</blockquote></div><br>