🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools.owl
Article #13

Re: How do you hide/show menu items?

#13
From: Johannes Stahl
Date: Wed, 29 Nov 1995 15:09
29 lines
1534 bytes
(Gooseman) wrote:

>I am teaching myself C++ and the application that I am writing starts
>out with a simple "registration" dialog box.  If the user cancels, the
>program continues and they can choose Help | Register to bring up the
>dialog box again.

>The problem I have is, how I hide the registration menu item after the
>user has completed it?  The CmRegister() function is a member of
>TApplication.

>I am used to Visual Basic, so please have mercy.  Email responses
>would be preferred!

>Thanks,


Do you want to hide the item completely or do you want do disable it
(gray it out) ? In the latter case you can simply use the
CommandEnabler method for enabling/disabling the menu items.

(Email answer did not work since the return address was invalid)

--
Dr. Johannes Stahl   Abt. Radiodiagnostik
Radiologische Klinik, D66421 Homburg/Saar (GERMANY)
Tel.: +49 6841 164600  Fax: +49 6841 164696
e-mail: rajsta@med-rz.uni-sb.de
http://www.med-rz.uni-sb.de/med_fak/radiodiagnostik/index.html
Technical Details
Message-ID: <49ht7q$fbq@hades.rz.uni-sb.de>
Path: arc1-ca.pugleaf.net!hades.rz.uni-sb.de!news
References: <49essn$qbj@news.ameritel.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!hades.rz.uni-sb.de!news
From: rajsta@med-rz.uni-sb.de (Johannes Stahl)
Newsgroups: comp.os.ms-windows.programmer.tools.owl,comp.lang.c++,comp.os.ms-windows.programmer.tools
Subject: Re: How do you hide/show menu items?
Date: Wed, 29 Nov 1995 15:09:07 GMT
Organization: University of Saarland, Computing Center, Germany.
Message-ID: <49ht7q$fbq@hades.rz.uni-sb.de>
References: <49essn$qbj@news.ameritel.net>
NNTP-Posting-Host: ukdra02.med-ra.uni-sb.de
X-Newsreader: Forte Free Agent 1.0.82