|
From: Kevin A. <al...@se...> - 2001-12-20 21:55:26
|
When you hide/show a windows/control in wxPython 2.3.x it changes the ordering of the controls on the panel. This behavior is a side-effect, but as long as it is available, I decided to exploit it. The widgets for a PythonCard app are in a 'components' list in the .rsrc.py file for an app. The first widget in the list will always be in front of the second item, which will always be in front of the third item, and so on. This is the only control we have over tab order and layering that I know of until more options are added to the underlying capabilities of wxWindows/wxPython. So, to take advantage of this I changed the resourceEditor, so that when you add a new widget using the Edit menu, all of the widgets are hidden and then reshown so that the new widget is the first item in the list and appears in front of the other widgets. I'll experiment later with the logic necessary to change the widget ordering so we can have menu items for: Send to Back Move Backward Move Forward Bring to Front The source for the resourceEditor is turning into a messy hack job almost as bad as the Property Editor, but I think I will continue to glue on features before doing a complete rewrite. I would still appreciate suggestions, bug reports, etc. Once the menu dialog is added it should be okay for building non-sizer layouts from scratch even for a newbie. ka |