Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: Can Gökmen
  Where is Can Gökmen?
 Istanbul
 Turkey
 Can Gökmen
 Tags
Subject: RE: Form doesn't return to Menu
Thread ID: 345125 Message ID: 345198 # Views: 48 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: VFP and .NET
Date: Sunday, May 20, 2012 11:20:02 AM         
   


Hi Can,

Not sure if I understood your description, do you want to activate a menu popup as soon as a form is getting closed?
If so, you can perhaps use the Activate Popup command - on the other hand, that would look a little DOS old-school in my opinion.



hth
-Stefan


* This sample code would create a new menu pad "Test" if you 
* copy it into a PRG and then run that one from the Command Window.
* If you click "Bar 1" in the new popup, a form will appear, 
* and on closing it, testPopup will get activated (again)

DEFINE POPUP testPopup
DEFINE BAR 1 OF testPopup PROMPT 'Bar 1' COLOR , RGB(0,0,255)
DEFINE BAR 2 OF testPopup PROMPT 'Bar 2' COLOR , RGB(0,255,0)
DEFINE BAR 3 OF testPopup PROMPT 'Bar 3' COLOR , RGB(255,0,0)
ON SELECTION BAR 1 OF testPopup ShowForm()
DEFINE PAD testPad OF _msysmenu PROMPT "Test"
ON PAD testPad OF _msysmenu ACTIVATE POPUP testPopup

ACTIVATE POPUP testPopup

RETURN


PROCEDURE ShowForm
	LOCAL o
	o = CREATEOBJECT('Form')
	o.Show(1)

	ACTIVATE POPUP testPopup
ENDPROC


ENTIRE THREAD

Form doesn't return to Menu Posted by Can Gökmen @ 5/18/2012 4:22:26 PM
RE: Form doesn't return to Menu Posted by mk sharma @ 5/19/2012 4:13:05 AM
RE: Form doesn't return to Menu Posted by Can Gökmen @ 5/22/2012 10:12:13 AM
RE: Form doesn't return to Menu Posted by Stefan Wuebbe @ 5/20/2012 11:20:02 AM
RE: Form doesn't return to Menu Posted by Can Gökmen @ 5/22/2012 9:57:50 AM
RE: Form doesn't return to Menu Posted by Stefan Wuebbe @ 5/22/2012 8:21:01 PM
RE: Form doesn't return to Menu Posted by Cetin Basoz @ 5/20/2012 3:53:12 PM
RE: Form doesn't return to Menu Posted by Can Gökmen @ 5/22/2012 10:20:15 AM
RE: Form doesn't return to Menu Posted by Cetin Basoz @ 5/22/2012 1:59:45 PM
RE: Form doesn't return to Menu Posted by Tamar Granor @ 5/22/2012 10:32:34 PM
RE: Form doesn't return to Menu Posted by Can Gökmen @ 5/23/2012 8:57:23 AM