TMainMenu lazarus / 13-General ---------------------------------------------------------------------- lewjoubert · 2006-07-24 05:41 Can TMainMenu be configured to function as in Delphi and as with other language MainMenu objects. What I mean is this. I place a TMainMenu on a form and have say, 4 submenus branching from one of the menu items. Each of the submenus is used to invoke a form, say forms 1 to 4. Now if I only want to select Form3, then as I scroll over submenus for Form1 and 2, those Forms)1 and 2) are invoked without me having to click them?!? Is there a way to configure the TMainMenu object so that this does not occur - so that only when the submenu is clicked does that Form be invoked? ---------------------------------------------------------------------- CCRDude · 2006-07-24 06:56 Have you tried? I'm not actually sure what you're trying to get at... invoking forms is a task for menu items, not submenus usually, and you should stick to that, since the user is expecting that behaviour from menus. Same goes for other passiv behaviour. Actually, when I just took a look (but my daily is a few weeks old already), TMenuItem did have only an OnClick. But from my Delphi documentation, I saw only draw-related other events there anyway. Wait. You're not talking about behaviour you want, but about behaviour that actually happens? A bug? So what you are describing would be that the OnClick event is fired even when you select menu items (or submenus?) by keyboard, without "clicking" them? I can't reproduce this here... which Lazarus version is it? ---------------------------------------------------------------------- lewjoubert · 2006-07-24 07:07 Wait. You're not talking about behaviour you want, but about behaviour that actually happens? A bug? So what you are describing would be that the OnClick event is fired even when you select menu items (or submenus?) by keyboard, without "clicking" them? I can't reproduce this here... which Lazarus version is it? .... you got it, Exactly so - e.g: onMouseOver fires them. Lazarus v0.9.16 Beta ---------------------------------------------------------------------- CCRDude · 2006-07-24 08:14 Sorry, I don't really understand There is not OnMouserOver on TMenuItem? Do you mean that OnClick behaves like OnMouseOver should? I'ld suggest to better try a newer beta (when the daily page works again ), since it seems to have been fixed on 0.9.17 releases (I'm using a June 24th daily... oh, I just noticed how long I didn't update ) ---------------------------------------------------------------------- lewjoubert · 2006-07-24 11:05 Yes, the OnClick is acting like a OnMouseOver - quite distressing! I'll install a later beta - it'd beta work!!! ---------------------------------------------------------------------- lewjoubert · 2006-07-24 12:02 Upgraded to 0.9.17 and problem persists. I'm running on Fedora core 5, I wonder if that's got something to do with it? I've used a work-around, albeit a bit clumbsy, but its all I can do in the meanwhile. I tried on another machine running Windows XP and Laz 0.19.16 - similar problem, only one out of three submenu OnClicks work. Think I need to dump TMainMenu and use another style of menu selection. ---------------------------------------------------------------------- felipemdc · 2006-07-24 12:53 please submit a bug report. ---------------------------------------------------------------------- matthijs · 2006-07-26 07:19 Could you submit a small sample application which shows the problem? Place it somewhere on the net where it can be downloaded from.  If you file a bug report, a sample project is needed as well. ---------------------------------------------------------------------- Marc · 2006-07-26 09:46 You don't have to put it somewhere on the net, you can opload your sample together with the bugrep if you want. ---------------------------------------------------------------------- lewjoubert · 2006-07-26 10:34 I'm not sure how to submit a bug report. I checked out "Bug Tracking" from the menu select on the left here, but still couldn't figure out how to submit the bug report. So in the meanwhile I've placed a file with a sample of my problem(s) at this URL: www.contact51.com/lazarusMM/MM.zip Can some kind soul teach me how to submit a bug??? - Thanks. ---------------------------------------------------------------------- matthijs · 2006-07-26 11:18 If you enter Mantis you will be logged in as guest. Click "logout" and on login screen click "Sign up for new account". Follow directions. After login with your obtained login, login and click on "Report Issue". Directly to login screen?This is the login screen for the issue tracker.