General information
Category:
Forms & Form designer
Thank You John!!!
Resolved the problem. I moved the code to create the menu to the activate method of the top form. No more errors messages and the menu disables with _screen.activeform.windowstate = 1 in the skip for of the menu option for modal forms. I'll know next time not to believe everything I read in the manuals and books. I guess that is what they call experience.
I tried 'oMainform = this' in the init of the top level form but it didn't create a form object. I can reference the oMainform object if I create the form with 'do xxxx name oMainform'.
Thanks a lot - Hope to see you Wednesday.
Gaylen
>Hi Gaylen!
>
>As to the hotkeys and the menu working right, in the main.prg of the application, assuming you have one, SET SYSMENU OFF. Then in the Init of the Top-Level form:
>
>oMainForm=THIS
>DO mainmenu.mpr WITH THIS
>SET SYSMENU AUTO
>
>Now in the menu, anything that refers to the top-level form should refer to oMainForm. By the way, the menu should be saved with "top level form" option set to true (Check out View - > General Options while editing the menu).
>
>
>>I am converting an application to a top level application. I am having trouble with two items(so far).
>>
>>On the main screen(top level form) which has several fields, how do I get the cursor to focus on the first field when the program starts. Right now the screen doesn't seem activated until I use the mouse. I tried setfocus() in the init method, but that didn't have any effect. I need to use the mouse and click on the first field to start entering data.
>>
>>The menu on the main screen comes up fine, however, the shortcut keys do not work. Alt plus the underscored letter in the menu doesn't have any effect. I can click on the menu items and they work fine.
>>
>>Any suggestions
>>Thanks
>>Gaylen
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only