From: John <joh...@jo...> - 2004-09-15 18:32:26
|
On Wed, 15 Sep 2004, Kevin Altis wrote: > On Sep 15, 2004, at 6:07 AM, normanwinn wrote: > > > > > A pretty neat design trick in Filemaker might be easily added to the > > PythonCard resource editor. When an object is selected the arrow > > buttons move the object a pixel (or grid position) at a time. > > Yeah that was on the to do list, so I just added it and checked the > change into cvs. It supports 1 pixel movement right now. I didn't feel > like grappling with the calculation to figure the right relative grid > jump before I had some coffee, but I'll look at that later ;-) > > > If I manage to get my Python up to speed I'd like to try to generate > > the function definition header directly in the code by double clicking > > the item or event in the resource editor - =E0 la Delphi. Good or bad > > idea? > > > > This is another topic that has been brought up before. Since the > resourceEditor doesn't deal with actually editing the code yet, events > are not part of the attribute list since the assumption is that people > will be using the codeEditor or some other editor to manipulate the > source code. > > There is a codeEditorR.py program based on the codeEditor that has an > additional experimental feature. When you are editing a source file, it > reads the associated .rsrc.py file and provides a dropdown menu of all > the components. When you select one of the components from the menu, it > populates the second dropdown menu with a list of all the events for > the component type. The events that are already defined have a + in > front of the name. If you select an item with a + in front, the cursor > jumps to that event handler in the code. If you select an event that > isn't in your code, then an event handler stub for that event is > inserted at the current cursor location. > > ka > Kevin this works on the samples but not on a project I converted by hand fomr Pyhoncard prototype. Is there something else I need to add to my source or resource to enable this? Thanks. -john --------------------------------------------------------- Everything should be made as simple as possible, but not one bit simpler. Albert Einstein (attributed) |