Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top-Level Form Menu Presence
Message
From
12/03/1999 14:54:40
 
 
To
12/03/1999 13:34:55
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00196872
Message ID:
00196953
Views:
26
>>>>>>Well, I didn't get a single response so I'm reposting cause I know someone's got to have an answer for this. :-)
>>>>>>
>>>>>>How can you programmatically determine if a top-level form has a menu instantiated in it?
>>>>>
>>>>>I don't quite understand the purpose of this, but menu builder still allows to put some code to menu Setup procedure, so you may just reset some oApp.property there and check it later.
>>>>
>>>>I am creating a class which has to position itself over a specific spot on a form, so I have to know whether to allow for the menu height or not in top-level forms.
>>>>
>>>>Bill
>>>
>>>I thought that menu will shift all controls and their Top properties the same way, i.e. it will not affect relative location of controls if they are part of form's container. Or your object is not going to be part of form's container? You may still use some custom topform.property to check.
>>
>>Problem is, this will be a small form hovering over the main form at a specific location. And since this is a self-contained class, it has to determine parameters without knowing ahead of time what is available.
>>
>>Bill
>
>I have feelings that some mutual evaluation of Form.Height and returns of foxtools functions _WTop,_WBottom will shed some light here. I mean that Height will be the same for both menu and non-menu forms, but functions may return different results.

This may be possible, however I have taken the "easy route" and added property to the class that can be set .T. by the developer when the main object is placed on the form to indicate that the form will have a menu instantiated in it. Not totally automatic, but plenty good enough.

Thanks,
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform