Page 1 of 1

PostPosted: Sat May 11, 2002 2:37 pm
by Bolan
Any idea why when I create a Menu off of a for now, there are no event handlers visible (such as onSelect) in the inspection tool? I opened other small projects I have created and they are always there....?

Two possible contributing factors are I have created a top level .oc file with lots of object definitions, something I haven't done in previous projects and I have also upgraded to v1.1 since I made all the other projects....

any clues?

PostPosted: Sat May 11, 2002 6:03 pm
by dewey
Menu items have onselect, but menus do not. Is this the confusion?

PostPosted: Sun May 12, 2002 11:16 am
by Bolan
Nope, it appears they are missing from multiple Object types.

The structure I am looking at has a mainform, with a menu bar, with two menu items. There are no onSelect handlers for the menu items.

How about changing the name of mainform once the project is underway? Is that a bad idea? Possibly does it mess up the auto creation of the handlers? Can I just code the handlers myself or does OrbForms need to build them internally for things to work?

PostPosted: Sun May 12, 2002 2:05 pm
by Bolan
Okay, mystery solved.

To reproduce this behvior:

1. Create a project
2. Add a menu bar
3. Add a menu
4. Add a menu item

(Use all defaults)

Select the menu item - onselect event handler is there.

5. Select mainform
6. Modify mainform property file name to be anything other than mainform.oc
7. Select menu item again and event handler is gone

This is probably not a bug but a "why would anyone want to do that" thing. I've learned my lesson <grin>.