That's pretty standard behavior.  If you want to be able to close
the popup menu without making a command choice, then add a close or cancel
menu item without an event.   

from "Robert Meek" dba "Tangentals Design"
Creative Concepts Programming for Windows Vista
E-mail:  ffo...@comcast.net

"...There no longer exists any communities...only special Interests."  as
remarked by one Photojournalist and Writer in relation to the infamous
'Mapplethorp trial' of Cinncinate.  I'm happy to know why this is true and
the protection it provides everyone from 1st amendment rights
violations...escpecially those in L.A. and Seattle!
As for New York, it's difficult to get worked up over a conglomerate of
special  interests such as it represents, when opposition to every one and
every thing not their own has become its most apparent trait and appalling
attribute!     
 

        


-----Original Message-----
From: delphi-boun...@elists.org [mailto:delphi-boun...@elists.org] On Behalf
Of Cédric Joubert
Sent: Tuesday, June 09, 2009 9:36 AM
To: Borland's Delphi Discussion List
Subject: Re: Detect Popup Release

Thanks for your reply.

In fact, i have a modal form with a datagrid, and when i display a popup
(automatic mode = false) from the OnMouseDown event, all works fine when the
popup is used in a normal way (clicking the item option that close the
popup).
But when my popup is opened and then i left click on the datagrid at another
position, the popup window moves and it displays at the new mouse position
but the old rect (the previous menu position rect) is not refreshed. I don't
know why...
Any idea ?

so if i had an OnPopupRelease, i could refresh the old rect...

Cédric


>        Sorry my modem was defunct for the last two weeks and so I hadn't
> seen your message before this morning.
>        What are you popping up?  If a form or dialog the OnClose might be
> the way to go.  If a menu, maybe you could add code for this as the last
> lines of the menu's OnClick.  Or even the OnMouseUp?
>
> from "Robert Meek" dba "Tangentals Design"
>
_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to