[Lazarus] TPopupMenu bug

Mattias Gärtner nc-gaertnma at netcologne.de
Mon May 18 16:25:41 CEST 2009


Zitat von Paul Ishenin <webpirat at mail.ru>:

> Mattias Gärtner wrote:
>> Zitat von Michael Van Canneyt <michael at freepascal.org>:
>>
>>> [...]
>>> I think that if I specify my own TPopupMenu, then that should replace
>>> whatever GTK thinks it should put there. If I don't specify one, then
>>> the standard GTK one is used. I don't want merging or whatever.
>>>
>>> It's the same as what happens on Windows.
>>
>> I don't know what windows has as default menu items.
>>
>> Ok, so you vote against using the gtk2 bidi system and easy  
>> switching input methods, which afaik is needed by many asian  
>> languages. But I'm no expert - maybe you are right.
>> Perhaps there is some one here who knows about the gtk2 imm  
>> features and can tell what we will loose?
>> Should I ask on the gtk2 list?
> How one relates with other?
>
> If I want my own popup menu I must have a way to set it.
> If I want to mix my items with the starndard I must have a way to do so.

Yes, that's what I'm trying to say. :)


> VCL and LCL allows only the first. If you want the second let's  
> invent how to do so.
>
> For example: TPopupMenu.AddDefaultItems(AControl: TWinControl)

This is an implementation of my second proposal. It needs parameters  
to define what to add. For example:

TPopupMenu.AddDefaultItems(AControl: TWinControl; SkipMenuEntries:  
TInterfaceMenuEntries);

type
   TInterfaceMenuEntry = (
     imeClipboardFunctions,
     imeSelectionFunctions,
     imeInputMethods,
     imeUnicodeFunctions
     );
   TInterfaceMenuEntries = set of TInterfaceMenuEntry;


Mattias

--
Powered by NetMail




More information about the Lazarus mailing list