Re: Changing Prompt message in Menu in runtime by Demetrios
Demetrios
Mon Aug 30 04:42:48 CDT 2004
Stefan,
Thanks for your reply. I will try it (Just returned from summer vacations)
Demetrios, Greece
"Stefan Wuebbe" <stefan.wuebbe@gmx.de> wrote in message
news:2o3h6dF6cvr2U1@uni-berlin.de...
> Hi Demetrios
>
> > If I use the menu useing the command:
> > DO mymenu.mpr WITH THIS,.T.
> > Is it possible to get Menu's Name?
>
> You can choose your own name
> DO mymenu.mpr WITH THIS, "YourName"
>
> or, if you want an automatic one, try
> Local cMenuName
> cMenuName=""
> DO mymenu.mpr WITH THIS, cMenuName
> ? cMenuName
>
> hth
> -Stefan
>
> "Demetrios Panayiotakopoulos" <dpanayiotakopoulos_my_dat@_my_ametro.gr>
schrieb im
> Newsbeitrag news:ezs3wPDgEHA.2984@tk2msftngp13.phx.gbl...
> > Dan,
> >
> > Sorry I didn't understand.
> > In order to define a menu you need a Name. In this case m.cMenuName
holds
> > the name
> > DEFINE MENU (m.cMenuName) IN (m.oFormRef.Name) BAR
> >
> > How do I know what is the value of m.cMenuName
> > since it was assigned automatically by m.cMenuName = SYS(2015)
> >
> > If I use the menu useing the command:
> > DO mymenu.mpr WITH THIS,.T.
> > Is it possible to get Menu's Name?
> >
> > Demetrios, Greece
> >
> > "Dan Freeman" <spam@microsoft.com> wrote in message
> > news:OW5KmV%23fEHA.2536@TK2MSFTNGP09.phx.gbl...
> >> It's only assigned a sys(2015) name if you didn't assign one yourself.
<s>
> >>
> >> In the menu designer, for each menu item you want to redefine later, go
to
> >> View->Menu Item on the menu. There, you can fill in the name you want
to
> >> use.
> >>
> >> Dan
> >>
> >> Demetrios Panayiotakopoulos wrote:
> >> > Hi Gerben,
> >> >
> >> > I did manage to change the caption of the menu bar, but I noticed
> >> > that I must reply the "Skip For".
> >> >
> >> > Define Pad "Files" of Main_Menu prompt "NewPrompt"
> >> > Define Bar 1 OF "Files" prompt "New__Prompt__1" Skip For blabla
> >> > Define Bar 2 OF "Files" prompt "New__Prompt__2"
> >> >
> >> > Just for the record (if someone else reads this), useful is the
> >> > PadName=GetPad("Main_Menu", 1)
> >> > Define Pad &PadName of Main_Menu prompt "NewPrompt"
> >> >
> >> > I didn't find out, though, how to get the Name of the Menu if this
was
> >> > assigned automatically by the:
> >> > m.cMenuName = SYS(2015)
> >> >
> >> > Demetrios, Greece
> >> >
> >> > "Gerben Kessen" <gerben.kessen(@)wantit.nl> wrote in message
> >> > news:e07G%23nxfEHA.3272@TK2MSFTNGP11.phx.gbl...
> >> >> Have you just tried the caption of the menu bar?
> >> >>
> >> >> Gerben Kessen
> >> >>
> >> >>
> >> >> "Demetrios Panayiotakopoulos"
> >> >> <dpanayiotakopoulos_my_dat@_my_ametro.gr> wrote in message
> >> >> news:%23yoeJsufEHA.3348@TK2MSFTNGP12.phx.gbl...
> >> >>> I think it's my mistake.
> >> >>> How to I get the MenuName or Define the MenuName of a menu created
> >> >>> with menu designer?
> >> >>>
> >> >>> Demetrios, Greece
> >> >>>
> >> >>> "Demetrios Panayiotakopoulos"
> >> >>> <dpanayiotakopoulos_my_dat@_my_ametro.gr> wrote in message
> >> >>> news:e4EtwYufEHA.2848@TK2MSFTNGP10.phx.gbl...
> >> >>>> Gerben,
> >> >>>> Thanks for your reply.
> >> >>>> Unfortunately this does not work because the menu was not Defined
> >> >>>> with Define Popup.
> >> >>>>
> >> >>>> Demetrios, Greece
> >> >>>>
> >> >>>> "Gerben Kessen" <gerben.kessen(@)wantit.nl> wrote in message
> >> >>>> news:u6$HpasfEHA.140@TK2MSFTNGP12.phx.gbl...
> >> >>>>> Yes it is, just redefine it.
> >> >>>>>
> >> >>>>> DEFINE BAR 3 OF yourmenu PROMPT "newname"
> >> >>>>>
> >> >>>>> Hth,
> >> >>>>>
> >> >>>>> Gerben Kessen
> >> >>>>>
> >> >>>>> "Demetrios Panayiotakopoulos"
> >> >> <dpanayiotakopoulos_my_dat@_my_ametro.gr>
> >> >>>>> wrote in message news:u3EURIsfEHA.596@TK2MSFTNGP11.phx.gbl...
> >> >>>>>
> >> >>>>>> Hi,
> >> >>>>>>
> >> >>>>>> Is there a way to modify in runtime the prompt message of an
> >> >>>>>> existing menu? I would like to be able to change on the fly the
> >> >>>>>> language in a top level form and it's menu.
> >> >>>>>>
> >> >>>>>> Demetrsios, Greece
> >>
> >>
> >
> >
>