realbasic-nug
[Top] [All Lists]

Re: Contextual click on listbox header

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Contextual click on listbox header
From: Richard <wingsy@roadrunner.com>
Date: Fri, 27 Feb 2009 00:50:19 -0500
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <E1D852E9-A6DB-421A-9438-85A69E61256C@gsco.de>
References: <E1D852E9-A6DB-421A-9438-85A69E61256C@gsco.de>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
I may be mistaken, but I thought I did this once before. What I recall is that I determined if the contextual click occurred within the header cell (RowFromXY and ColumnfromXY) and if in the header, do this, and if not, do that.

-Richard


On Feb 25, 2009, at 2:15 PM, Frank Bitterlich wrote:

Hi,

I want users to be able to contextual-click (right-click, control- click) on the header of a listbox, so I can display a menu where the user can choose which column to show/hide. Just like many Apple apps do (iTunes, Mail, etc).

But I can't get this to work. A right-click on a listbox header acts just like a left-click; even calling IsContextualClick() in the HeaderPressed event returns "false".

Any tips on how I can make this work? Right-click on the listbox body works as expected; but I want to use that to display a different menu (giving options for the selected listbox row).

All hints welcome (even if they read "I just doesn't work" ;)

Thanks,
  Frank+++


--

Günter Schmidt GmbH
Frank Bitterlich             eMail: bitterlich@gsco.de
Ben-Gurion-Ring 21           WWW:   http://www.gsco.de/
D-60437 Frankfurt            Tel.:  069 / 156809-29
GERMANY                      Fax:   069 / 156809-28
Geschäftsführer: Jürgen Hartwich
AG Frankfurt am Main, HRB 76504 - USt.-ID: DE235219624






_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>