Article View: borland.public.delphi.opentoolsapi
Article #128Re: Create Main Menu item..
From: Erik Berry
Date: Sun, 24 Feb 2008 21:27
Date: Sun, 24 Feb 2008 21:27
33 lines
2069 bytes
2069 bytes
Linces wrote: > How i create a Main Menu item in the Delphi IDE "Like GExperts do", i do > like code below, but dont work, plz look: When reporting problem, it is best to provide more information about what isn't working. For example, is there a menu item but it is disabled, do you get a crash, or do you get no menu item at all? Have you set breakpoints in your code to see what is failing? If so, where does it fail? > type > TADPCHStickerWizard = class(TNotifierObject, IOTAWizard, IOTAMenuWizard) IOTAMenuWizard is only meant to create a help menu item for your addin. It isn't designed to add menu items anywhere in the main menu. > procedure Register; Set a breakpoint here, and be sure your addin is loading. > procedure TADPCHStickerWizard.Execute; This only runs when the user selects your help menu item, which probably isn't what you want. > procedure InitWizard; You probably don't want this to be an empty method. If you have access to Delphi 7, look at the "D7IOTA.HLP" file for help on the OTA. Also, see here for some examples: http://www.gexperts.org/opentools/ Erik
Technical Details
Message-ID:
<47c1e158$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<47bec376@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10c3df,f02deeab2ac06d1b X-Google-Attributes: gid10c3df,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 24 Feb 2008 15:27:27 -0600 From: Erik Berry <eb@techie.zzzcom> User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Newsgroups: borland.public.delphi.opentoolsapi Subject: Re: Create Main Menu item.. References: <47bec376@newsgroups.borland.com> In-Reply-To: <47bec376@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 65.70.230.111 Message-ID: <47c1e158$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1203888472 65.70.230.111 (24 Feb 2008 13:27:52 -0700) Lines: 33 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail