Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Top Level Form
Message
From
30/12/2000 10:51:08
 
 
To
29/12/2000 23:53:13
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00457084
Message ID:
00458083
Views:
16
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
Map
View

Click here to load this message in the networking platform