I'm having 2 problems with a couple of things I want to get into my scintilla control.
First I wanted to detect mousedown in scintilla so I could pass an event to the control when the mouse was pressed. Whas I came up with was this:
Case WM_LBUTTONDOWN
lP = GetWindowCursorPos(sci)
RaiseEvent MouseDown(1, 0, lP.x, lP.Y)
Case WM_RBUTTONDOWN
lP = GetWindowCursorPos(sci)
RaiseEvent MouseDown(2, 0, lP.x, lP.Y)
Case WM_LBUTTONUP
lP = GetWindowCursorPos(sci)
RaiseEvent MouseUp(1, 0, lP.x, lP.Y)
Case WM_RBUTTONUP
lP = GetWindowCursorPos(sci)
RaiseEvent MouseUp(2, 0, lP.x, lP.Y)
This works as far as detecting the clicking of the mouse but left click will not longer let you move the cursor around. It's like I've trapped it and there by prevented scintilla from getting that it ever happened. Is there something fairly simple I'm doing wrong here?
The other problem I'm having is with getting the key down. This is what I came up with:
Case WM_KEYDOWN
RaiseEvent KeyPress(wParam)
Again it seems to work but disables a lot of keys in scintilla IE backspace and such.
Thanks for any help you can offer.
Stewart
First I wanted to detect mousedown in scintilla so I could pass an event to the control when the mouse was pressed. Whas I came up with was this:
Case WM_LBUTTONDOWN
lP = GetWindowCursorPos(sci)
RaiseEvent MouseDown(1, 0, lP.x, lP.Y)
Case WM_RBUTTONDOWN
lP = GetWindowCursorPos(sci)
RaiseEvent MouseDown(2, 0, lP.x, lP.Y)
Case WM_LBUTTONUP
lP = GetWindowCursorPos(sci)
RaiseEvent MouseUp(1, 0, lP.x, lP.Y)
Case WM_RBUTTONUP
lP = GetWindowCursorPos(sci)
RaiseEvent MouseUp(2, 0, lP.x, lP.Y)
This works as far as detecting the clicking of the mouse but left click will not longer let you move the cursor around. It's like I've trapped it and there by prevented scintilla from getting that it ever happened. Is there something fairly simple I'm doing wrong here?
The other problem I'm having is with getting the key down. This is what I came up with:
Case WM_KEYDOWN
RaiseEvent KeyPress(wParam)
Again it seems to work but disables a lot of keys in scintilla IE backspace and such.
Thanks for any help you can offer.
Stewart
Yahoo! Photos
Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.
_______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
