[Lazarus] Is MenuItem.Commad Zero based?

Zaher Dirkey parmaja at gmail.com
Tue Jul 2 17:53:41 CEST 2013


Hi team,
Up and
And please check this patch here
http://bugs.freepascal.org/view.php?id=17519


On Sat, Apr 13, 2013 at 12:18 PM, Zaher Dirkey <parmaja at gmail.com> wrote:

> 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;
> -------------------------------------------
>
>
Best Regards
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130702/6351c40b/attachment-0002.html>


More information about the Lazarus mailing list