Hi,

DO MyMenu.mpr With myparameter,
Where are the parameters send to
when I've create the shortcutmenu with the menudesigner ?
Or where should I place "LParameters myparameter" in ?
Or is the With not used when I call a shortcutmenu.

I have a textbox with a Rclick event which activates a shortcutmenu.
and whould like to send the objectreference for that textbox to it
so I can alter the textbox upon the users menuselection.

Or is there maybe a workaround ?
What I do now is a bunch o _screen.activeform.activecontrol
but when the textbox is in a grid that is not very usefull.

regards
christophe
--

Regards
christophe

Re: DO MyMenu.mpr With myparameter ? by Dan

Dan
Fri Jun 02 11:07:49 CDT 2006

You can get your LPARAMETERS statement into the generated code by adding it
as the first line in SETUP code in the menu designer.

VFP does not automatically add LPARAMETERS to generated menu code EXCEPT for
top-level form menus.

Dan

christophe wrote:
> Hi,
>
> DO MyMenu.mpr With myparameter,
> Where are the parameters send to
> when I've create the shortcutmenu with the menudesigner ?
> Or where should I place "LParameters myparameter" in ?
> Or is the With not used when I call a shortcutmenu.
>
> I have a textbox with a Rclick event which activates a shortcutmenu.
> and whould like to send the objectreference for that textbox to it
> so I can alter the textbox upon the users menuselection.
>
> Or is there maybe a workaround ?
> What I do now is a bunch o _screen.activeform.activecontrol
> but when the textbox is in a grid that is not very usefull.
>
> regards
> christophe



Re: DO MyMenu.mpr With myparameter ? by christophe

christophe
Wed Jun 07 08:26:49 CDT 2006

Looks promissing
I'll give it a try
and keep you "informed"
if it's not working

thanks
christophe

"Dan Freeman" <spam@microsoft.com> schreef in bericht
news:%23q8uy6lhGHA.3296@TK2MSFTNGP05.phx.gbl...
> You can get your LPARAMETERS statement into the generated code by adding
it
> as the first line in SETUP code in the menu designer.
>
> VFP does not automatically add LPARAMETERS to generated menu code EXCEPT
for
> top-level form menus.
>
> Dan
>
> christophe wrote:
> > Hi,
> >
> > DO MyMenu.mpr With myparameter,
> > Where are the parameters send to
> > when I've create the shortcutmenu with the menudesigner ?
> > Or where should I place "LParameters myparameter" in ?
> > Or is the With not used when I call a shortcutmenu.
> >
> > I have a textbox with a Rclick event which activates a shortcutmenu.
> > and whould like to send the objectreference for that textbox to it
> > so I can alter the textbox upon the users menuselection.
> >
> > Or is there maybe a workaround ?
> > What I do now is a bunch o _screen.activeform.activecontrol
> > but when the textbox is in a grid that is not very usefull.
> >
> > regards
> > christophe
>
>