Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Right Mouse Drag and Scroll Plugin

<< < (3/7) > >>

Pecan:
2/4/2006 4:39 PM

Attached: cbDragScrollV016.zip

Fixes for Unix/GTK users of cbDragScroll

thanks
pecan


[attachment deleted by admin]

Pecan:
2/13/2006 10:10 PM

Attached: cbDragScrollV017.zip

Added: required CB_IMPLEMENT_PLUGIN(cbDragScroll, "cbDragScroll" );
Added: Focus editor when mouse enters windows

thanks
pecan



[attachment deleted by admin]

tiwag:

--- Quote from: Pecan on February 14, 2006, 04:13:49 am ---Added: Focus editor when mouse enters windows

--- End quote ---

is this feature configurable ?
i didn't try your latest version - but id don't like it.

kkez:
Could you please provide a binary version too? I don't have wxwidgets headers..

Pecan:

--- Quote from: tiwag on February 14, 2006, 08:30:38 am ---
--- Quote from: Pecan on February 14, 2006, 04:13:49 am ---Added: Focus editor when mouse enters windows

--- End quote ---

is this feature configurable ?
i didn't try your latest version - but id don't like it.

--- End quote ---

I will make it configurable soon. In the meantime, comment out the following
lines in cbdragscroll.cpp at line 610

--- Code: ---     // set focus to editor window if mouse is in it
     if (event.GetEventType() eq wxEVT_ENTER_WINDOW)
       if (p_cbStyledTextCtrl && (m_pEvtObject == p_cbStyledTextCtrl))
            p_cbStyledTextCtrl->SetFocus();



--- End code ---

As an aside, could you tell me why you would not want the editor to have
the focus if the mouse cursor is in the editor window?
Just for my own education.

thanks
pecan

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version