mfc >> ctList : Problem when double click on subject

by vani » Thu, 27 Nov 2003 10:24:10 GMT

Hi

we know that 'ctList' component is an advanced list
box control.
I have a ctList control which has first the
name 'Tasks'.Then followed by columns named as col1.. and
last one named as Subject.Then followed by place to enter
your task information.
Now the problem is when i Doubleclick on the space it
opens a modal box inorder to enter task
information.However when i am Doubleclicking on the
columns it also opens a modal box but when i cancel it,it
again opens modal box second time.
It looks bad.
Pls help me




Similar Threads

1. How to capture Mouse Single click and mouse double click event

Hi All,

How to capture Mouse Single click and mouse double click event on Commnad
Button.
I am doing as follows.

Private void Button1_MouseUp(Object sender,
System.Windows.Forms.MouseEventArgs e)

{

    If (e.Clicks = 1)

        {MsgBox("1");}

    Else

        {MsgBox("2");}

}

But each time I gets single click.
Even after clicking mouse button twice, events gets fired on first click and
I am not been able to capture double click event.

Any suggestions will be appreciated.

Thanks in advance
Sakharam Phapale






2. How can I distinguish between a Click and a double click event in an UserControl - CSharp/C#

3. Treating Double Clicks as Two Single Clicks

I'm developing an owner-drawn checkbox.  Its working well with the exception
of double-clicks.  A normal checkbox treats double-clicks as two single
clicks.  My checkbox treats a double-click as a single click (this is not a
big deal, but I would like my control to behave "normally" for purity sake).

I've tried modifying the control's style via:
    ModifyStyle(CS_DBLCLKS, BS_CHECKBOX|WS_TABSTOP|BS_OWNERDRAW);
without affect.  If I'm understanding the documentation correctlly, the
CS_DBLCLKS style is used at window registration time.  It may be that when
I'm sublassing a dialog control to create my checkbox that I don't have any
option of "removing" the double-click behavior.

Any suggestions?

...mcs


4. how to differentiate a single click from a double click in CTreeviewCtrl

5. Single Click / Double Click

Hi,
  I have a list box on my form.  If I single click on the list box,  I fill 
a label with information relating to the item in the list box.  If I double 
click, I move the item to another list box, and then fill in the label.
I also enable / disable a button, based on the single click or double click.
What happens is that the first part of the double click fires the single 
click event, which makes sense, but, if the button is disabled, it causes 
the button to flash. Is there a way to keep it from happening?
Thanks,
Kerry 


6. TreeView Double Click Event Strange Problem - CSharp/C#

7. mouse double click event problem

Hi im trying to create a double click event on a list view and i have
it working perfectly ish, problem is the event will even fire if i
double click on the scroll bars any ideas on how i stop this from
happening?

Here is what i have already done..

Added this to the designer of the form:

this.uList.MouseDoubleClick += new
System.Windows.Forms.MouseEventHandler(this.uList_DoubleClick);


and then created this in my form:

 private void uList_DoubleClick(object sender, System.EventArgs e)
        {

            string sKey =
Convert.ToString(uList.SelectedItems.First.Key);

            MessageBox.Show(sKey);
        }

8. problems with listview to do double click in c# - CSharp/C#