[fpc-pascal] Lazarus IDE Question
Micha Nelissen
micha at neli.hopto.org
Tue Oct 18 11:20:25 CEST 2005
David Chandler wrote:
> I am trying to create a menu bar using Lazarus. I drop the TMainMenu
> icon onto the form. Then I modify the Items in the Object Inspector and
> can get the first menu item, but that is all. I can't enter more menu
> headings or submenu items. I checked a Delphi reference and saw a
> similar mechanism, but it provides little dashed boxes to lay out the
> whole menu structure. The corresponding structure in Lazarus seems inert.
The trick is to right-click, then you get a menu, choose "insert item
after" or something alike.
> I then tried bypassing the IDE and duplicated the code on the form,
> changing the menu items to item1, item2, item3, etc. There must be
> other necessary code hidden somewhere else because this attempt failed
> to compile.
Did you create menuitems on the fly with Item1 := TMenuItem.Create and
setting the relevant properties ? This should also work, but try first
with the designer, I'd say.
> Is this one of the things that doesn't work in Lazarus? Am I doing
> something wrong? Any suggstions? Is there a Lazarus-specific forum to
> discuss questions like this?
There is also a lazarus mailing list: lazarus at miraclec.com. Visit:
http://www.lazarus.freepascal.org/modules.php?op=modload&name=StaticPage&file=index&sURL=maill
for help regarding subscribing.
HTH,
Micha
More information about the fpc-pascal
mailing list