You wrote:
I'm trying to show a menu when the header of a listbox is
control-clicked (Mac).
Is is possible to do that?
Yes: put a Canvas over the header of the listbox in the IDE. This
canvas will have nothing in its Paint event, so it'll be invisible,
but its MouseDown event will check IsCMMClick, and if that's true,
pop up the contextual menu (and return true to terminate further
mouse processing). Otherwise, it'll return false, and the click
will fall through to the listbox as normal.
HTH,
- Joe
Thanks Joe,
Dan
--
-------------------------------------------------------------------------
Let's get connected!
Download from:
http://www.reconnector.com
-------------------------------------------------------------------------
Dan Berghult
Infomaker
Sweden
[EMAIL PROTECTED]
Phone: +46 60 66 89 00
Mobile: +46 70-698 68 68
Fax: What is that?
Web: http://www.infomaker.se
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>