Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
Get timeslot edit context menu
posted
hi everyone! I has set the context menu for an ultradayview object. But the object call it, even with the timeslot editor mouse down. 1. how can i get the mouse down event inside the timeslot editor? 2. is there a way i can set a different context menu strip for the timeslot editor? thanks in advance, Marcelo
Parents
No Data
Reply
  • 69832
    Offline posted

    EditorWithText editor = new EditorWithText();
    this.dayView.AppointmentEditor = editor;
    editor.AfterEnterEditMode += new EventHandler(this.editor_AfterEnterEditMode);
    editor.BeforeExitEditMode += new BeforeExitEditModeEventHandler(editor_BeforeExitEditMode);

    private void editor_AfterEnterEditMode(object sender, EventArgs e)
    {
        this.dayView.Controls[0].MouseDown += new MouseEventHandler(editor_MouseDown);
    }

    private void editor_BeforeExitEditMode(object sender, BeforeExitEditModeEventArgs e)
    {
        this.dayView.Controls[0].MouseDown -= new MouseEventHandler(editor_MouseDown);
    }

    private void editor_MouseDown(object sender, MouseEventArgs e)
    {
        bool stop = true;
    }

    Regarding how to set the context menu, see your post of 10/14/08.

Children
No Data