|
From: Kevin A. <al...@se...> - 2001-12-21 03:38:40
|
The resourceEditor (aka Layout Editor) continues to improve. Here's a bit from the cvs checkin message: added Component menu, moved Add Button... to the Component menu fixed Duplicate so duplicated component is in front of other components cleaned up menu names added Send to Back, Move Backward, Move Forward, Bring to Front commands I'm starting to use the name 'component' in place of 'widget'. ka > -----Original Message----- > From: pyt...@li... > [mailto:pyt...@li...]On Behalf Of Kevin > Altis > Sent: Thursday, December 20, 2001 1:56 PM > To: pythoncard-Users > Subject: [Pythoncard-users] resourceEditor - widget ordering > > > 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 > > > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > |