Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TOP Level Form Control

Status
Not open for further replies.

PaulBarbeau

Programmer
Nov 23, 2000
109
CA
I am look at working with a Top Level Form/Window and i want to use the Max, Min, Close and menu bar on it however when i popup and other forms inside it those controls do not work. The other forms are set as "1 — In Top-Level Form" so why can i not use these. Do i have to use form sets?

Thanks for any help you can give me

Paul
 
PaulBarbeau

'Do i have to use form sets?' No - that would be an act of desperation, IMHO.

You can use menu and toolbars in a top-level form, menu being launched form the .Init() event and toolbars from the .Activate() event, both menu and toolbars being configured to run in a top-level form.

FAQ184-2483 - the answer to getting answered.​
Chris [pc2]
 
I have done that in my main form init load my menu and it is there however when inside that form i call another form (do form client_search) the menu becomes disables and the Button on the top right beep when i try to click them.

Paul
 
PaulBarbeau

You could add a new method to the top-level form, and call the 'child' form of the top-level from the new method.

You need to create an object reference for the top-level form with

PUBLIC oForm1
DO FORM Form1 NAME oForm1

In the menu command put

oForm1.mNewMethod()

In the .Unload() event of the top-level form put

RELEASE oForm1




FAQ184-2483 - the answer to getting answered.​
Chris [pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top