[Lazarus] Is MenuItem.Commad Zero based?

Zaher Dirkey parmaja at gmail.com
Sat Apr 13 11:18:14 CEST 2013


Hi
Before i post a bug
In Windows/WinCE is Menu ID (MenuItem.Commad) is Zero based?
By my logic ID must be start from 1, zero mean no ID or Command

In Menus unit MenuItem.inc line 110
-------------------------------------------
FCommand := UniqueCommand;
-------------------------------------------

UniqueCommand started from 0

Look at line 209 when destroying the menu item, zero here not set to false.
-------------------------------------------
if FCommand <> 0 then CommandPool[FCommand] := False;
-------------------------------------------

-- 
I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3

Best Regards
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130413/07c85a9f/attachment-0002.html>


More information about the Lazarus mailing list