I don't use shortcut menus much but am trying to now. I've got a
scenario where I want to right-click on the form and launch a shortcut
menu to offer a couple choices to the user (one of which is for that
changing of font sizes that I mentioned in an earlier thread).
I designed the shortcut menu in VFP's IDE. In my base form class, I put
this code in the RightClick event: DO config_help.mpr WITH this
I've checked out VFP Help and noticed that the SampleMenu.MPR file has a
parameter statement in it. However, when I generate the menu, it
doesn't put a PARAMETER statement in. So I added it to the MPR code,
but when I run the app, it errors and says NO PARAMETER STATEMENT FOUND
and then when I step into the code, it says Source out of date. So I
feel like it's a chicken-or-egg first scenario here.
Any help understanding how to get the Menu Designer to put that
PARAMETER statement in would be appreciated.
Tia,
--Mike
--
Michael J. Babcock, MCP
Chief Software Architect
MB Software Solutions, LLC
http://www.mbsoftwaresolutions.com
p: 717-350-2759
f: 815-642-9707
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/4DB70400.5070905@mbsoftwaresolutions.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
When editing, or creating, a menu, under the top menu option View is General
Options... In the General Options screen, select Setup under Menu code and
edit. Should allow you to create the parameter statement that you
want/need.
::michael
On Apr 26, 2011 10:42 AM, "Michael J. Babcock, MCP" <
mbabcock@mbsoftwaresolutions.com> wrote:
> I don't use shortcut menus much but am trying to now. I've got a
> scenario where I want to right-click on the form and launch a shortcut
> menu to offer a couple choices to the user (one of which is for that
> changing of font sizes that I mentioned in an earlier thread).
>
> I designed the shortcut menu in VFP's IDE. In my base form class, I put
> this code in the RightClick event: DO config_help.mpr WITH this
>
>
> I've checked out VFP Help and noticed that the SampleMenu.MPR file has a
> parameter statement in it. However, when I generate the menu, it
> doesn't put a PARAMETER statement in. So I added it to the MPR code,
> but when I run the app, it errors and says NO PARAMETER STATEMENT FOUND
> and then when I step into the code, it says Source out of date. So I
> feel like it's a chicken-or-egg first scenario here.
>
> Any help understanding how to get the Menu Designer to put that
> PARAMETER statement in would be appreciated.
>
> Tia,
> --Mike
>
> --
>
> Michael J. Babcock, MCP
> Chief Software Architect
> MB Software Solutions, LLC
> http://www.mbsoftwaresolutions.com
> p: 717-350-2759
> f: 815-642-9707
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/BANLkTinwsuo9gYeWDTxfL8qjeTKa0AiCiw@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Create a procedure and execute like oApp.DoForm("Form", param1, param2),
then inside the procedure u do your Do Form command
HTH, E.
----- Mensagem original ----
De: "Michael J. Babcock, MCP" <mbabcock@mbsoftwaresolutions.com>
Para: ProFox Email List <profox@leafe.com>
Enviadas: Terça-feira, 26 de Abril de 2011 14:42:24
Assunto: Shortcut menus (VFP9SP2)
I don't use shortcut menus much but am trying to now. I've got a
scenario where I want to right-click on the form and launch a shortcut
menu to offer a couple choices to the user (one of which is for that
changing of font sizes that I mentioned in an earlier thread).
I designed the shortcut menu in VFP's IDE. In my base form class, I put
this code in the RightClick event: DO config_help.mpr WITH this
I've checked out VFP Help and noticed that the SampleMenu.MPR file has a
parameter statement in it. However, when I generate the menu, it
doesn't put a PARAMETER statement in. So I added it to the MPR code,
but when I run the app, it errors and says NO PARAMETER STATEMENT FOUND
and then when I step into the code, it says Source out of date. So I
feel like it's a chicken-or-egg first scenario here.
Any help understanding how to get the Menu Designer to put that
PARAMETER statement in would be appreciated.
Tia,
--Mike
--
Michael J. Babcock, MCP
Chief Software Architect
MB Software Solutions, LLC
http://www.mbsoftwaresolutions.com
p: 717-350-2759
f: 815-642-9707
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/4DB70400.5070905@mbsoftwaresolutions.com
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/508935.24179.qm@web37005.mail.mud.yahoo.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
If you menus are simple as in no child menus, you could use the shortcut
menu in the free classes. It's simple and apart from a statement making it
show in the vfp window which can be changed, is one of the few classes that
work well. I use this a lot.
Allen
-----Original Message-----
From: profoxtech-bounces@leafe.com [mailto:profoxtech-bounces@leafe.com] On
Behalf Of Michael J. Babcock, MCP
Sent: 26 April 2011 19:42
To: profoxtech@leafe.com
Subject: Shortcut menus (VFP9SP2)
I don't use shortcut menus much but am trying to now. I've got a
scenario where I want to right-click on the form and launch a shortcut
menu to offer a couple choices to the user (one of which is for that
changing of font sizes that I mentioned in an earlier thread).
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/001901cc0440$9be620f0$d3b262d0$@com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
On 4/26/2011 2:34 PM, Allen wrote:
> If you menus are simple as in no child menus, you could use the shortcut
> menu in the free classes. It's simple and apart from a statement making it
> show in the vfp window which can be changed, is one of the few classes that
> work well. I use this a lot.
> Allen
Well there's no child menus TODAY, but I don't know if that would
change. It very well could. Still, thanks for the tip. I'll
investigate as a possible solution "for now."
--
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/4DB71E05.6090907@mbsoftwaresolutions.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Author: MB Software Solutions, LLC
Posted: 2011-04-26 15:34:58 Link
On 4/26/2011 2:23 PM, Eurico Chagas Filho wrote:
> Create a procedure and execute like oApp.DoForm("Form", param1, param2),
> then inside the procedure u do your Do Form command
But I still need the parameter to be passed as this will be a reference
to the form, and the form could be one of many many forms, so no
hardcoded form name.
--
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/4DB71E62.1030100@mbsoftwaresolutions.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
See my prior message, it should give you something to look at.
::michael
On Apr 26, 2011 12:35 PM, "MB Software Solutions, LLC" <
mbsoftwaresolutions@mbsoftwaresolutions.com> wrote:
> On 4/26/2011 2:23 PM, Eurico Chagas Filho wrote:
>> Create a procedure and execute like oApp.DoForm("Form", param1, param2),
>> then inside the procedure u do your Do Form command
>
>
> But I still need the parameter to be passed as this will be a reference
> to the form, and the form could be one of many many forms, so no
> hardcoded form name.
>
> --
> Mike Babcock, MCP
> MB Software Solutions, LLC
> President, Chief Software Architect
> http://mbsoftwaresolutions.com
> http://twitter.com/mbabcock16
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/BANLkTimM1L8QV=gMm9ZN1DD+NydePFK35A@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Those childs can pop up unexpectedly! I can vouch for that...I have a 31
and a 30 year old that weren't planned for.
Mike
> On 4/26/2011 2:34 PM, Allen wrote:
>> If you menus are simple as in no child menus, you could use the shortcut
>> menu in the free classes. It's simple and apart from a statement making it
>> show in the vfp window which can be changed, is one of the few classes that
>> work well. I use this a lot.
>> Allen
> Well there's no child menus TODAY, but I don't know if that would
> change. It very well could. Still, thanks for the tip. I'll
> investigate as a possible solution "for now."
>
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/4DB72138.1050900@ggisoft.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
On 4/26/2011 2:17 PM, Michael Oke, II wrote:
> When editing, or creating, a menu, under the top menu option View is General
> Options... In the General Options screen, select Setup under Menu code and
> edit. Should allow you to create the parameter statement that you
> want/need.
Thanks, Michael! Got it working now!!!!
--
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/4DB73358.4060608@mbsoftwaresolutions.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.