[Lazarus] TPopupMenu bug
Michael Van Canneyt
michael at freepascal.org
Mon May 18 14:05:53 CEST 2009
On Mon, 18 May 2009, Mattias Gärtner wrote:
> Zitat von Paul Ishenin <ip at kmiac.ru>:
>
>> Brad Campbell wrote:
>>> Michael Van Canneyt wrote:
>>>> Hi,
>>>>
>>>> The PopupMenu property of TMemo does not work in GTK 2.
>>>> I always get some standard GTK popup menu instead of the menu which I
>>>> designed.
>>>>
>>>> Is this a known issue ?
>>>
>>> Is it related to this behaviour ?
>>
>> Not exactly. Michael just wants to replace system popup menu with his own.
>> I made a few changes today to allow this. But this needs to be fixed in a
>> bit different way with changing LCL (not only gtk interface) code. So
>> better fix will come later.
>
> "just wants to replace system popup menu with his own"
> I don't think he wants that. The system popup menu contains not only
> cut/copy/paste but also input methods needed for accessibility and multi
> language systems. Loosing them would be a bad example for the book.
>
> About cut/copy/paste:
> Apps can create better cut/copy/paste functions, so a mechanism to replace
> those is needed.
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.
Michael.
More information about the Lazarus
mailing list