| Thread overview | |||||
|---|---|---|---|---|---|
|
April 07, 2002 MenuItem | ||||
|---|---|---|---|---|
| ||||
Hi there When adding a MenuItem to a menu, it stays in the disabled mode, even though I have followed the instructions in the tutorial. any help much appreciated. btw the Digital Mars CD package is fantastic! Phill | ||||
April 07, 2002 Re: MenuItem | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Phill | Are you using MFC?
If that is the case you will have to make sure there is an
implementation for the menu ID
ON_COMMAND ( <your menu id>, <Member function> )
and of course a <Member function>
Jan
Phill wrote:
> Hi there
>
> When adding a MenuItem to a menu, it stays in
> the disabled mode, even though I have followed the instructions
> in the tutorial.
>
> any help much appreciated.
>
> btw the Digital Mars CD package is fantastic!
>
> Phill
| |||
April 09, 2002 Re: MenuItem | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jan Knepper | Your right , that was the problem.
For some reason, when I add the "command" while
doing the tutorial files I get an error :
"failed to rename file"
and the "ON_COMMAND" is
not added to the file.
It works fine if I make my own GUI though.
Thanks
Phill.
Jan Knepper <jan@smartsoft.cc> wrote in message news:3CAFEC05.695CC52D@smartsoft.cc...
> Are you using MFC?
> If that is the case you will have to make sure there is an
> implementation for the menu ID
>
> ON_COMMAND ( <your menu id>, <Member function> )
>
> and of course a <Member function>
>
> Jan
>
>
>
> Phill wrote:
>
> > Hi there
> >
> > When adding a MenuItem to a menu, it stays in
> > the disabled mode, even though I have followed the instructions
> > in the tutorial.
> >
> > any help much appreciated.
> >
> > btw the Digital Mars CD package is fantastic!
> >
> > Phill
>
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply