<HTML>
<HEAD>
<TITLE>fix for select control?</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>J&aacute;chym,<BR>
<BR>
I sort of understand what is happening to cause the bug you encountered with the select.Select control. When the mapset group item in the selection tree is expanded, it generates a wx.EVT_TREE_ITEM_EXPANDING event. This gets propagated up through the hierarchy or controls to the grandparent object, the GIS Manager layer tree, where it is handled by the wx.EVT_TREE_ITEM_EXPANDING handler method onExpandNode. <BR>
<BR>
There may be a way to limit event propagation up the hierarchy that I don&#8217;t understand, but what I&#8217;ve done is added an explicit binding for this event (and the wx.EVT_TREE_ITEM_COLLAPSED event too) in the selection tree class. This calls a dummy handler in that class. Hopefully, this will keep the item expand event in the class where it belongs. If we can fix this, it may be possible to put the selection tree inside a different kind of widget if that is desirable. Please uncomment line #131 in select and try it out. Let me know what happens.<BR>
<BR>
Michael<BR>
__________________________________________<BR>
Michael Barton, Professor of Anthropology<BR>
School of Human Evolution &amp; Social Change &nbsp;&nbsp;&nbsp;<BR>
Center for Social Dynamics &amp; Complexity<BR>
Arizona State University<BR>
<BR>
phone: 480-965-6213<BR>
fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a> <BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>