Thanks for that useful info about the API. I will look into what your telling me the keys. I have the form subclassed though and am not recieving any wm_key events. The Usercontrol doesn't seem to be either. Thanks for the continued help :)
Neil Hodgson <[EMAIL PROTECTED]> wrote:
Neil Hodgson <[EMAIL PROTECTED]> wrote:
Stewart Obert:
> For i = 0 To UBound(bByte) - 1
> strTmp = strTmp & Chr(bByte(i))
> Next i
This is fine for text in ASCII or Latin-1 but will break down for
other encodings where multiple (1..3) bytes in Scintilla will make up
a single character. There should be a way for VB to call the Windows
MultiByteToWideChar API to produce VB strings from byte buffers.
> Anyway I've run into a new problem and maybe one of you can answer this.
> I'! ve run into a new problem. I descided to make it work like a more
> standard text editing component. If I can't get threw this problem and
> there's no way to work it I'll just stick to what I've been doing. Anyway
> the major problem is the arrow keys won't work. I'm guessing the easiest
> way to fix that would be in the subclassing code catch each arrow key and
> send the appropriate command back to scintilla. Does scintilla send any
> messages when keys are pressed and is there any way to send back to
> scintilla a msg telling it to say move the cursor forward or back?
Subclassing Scintilla won't fix this as Scintilla isn't seeing
these keys so something else is, probably your form. Each key is
normally transformed into a command through the key map in
scintilla/src/KeyMap.cxx so you could send the same resulting message
or just try to SendMessage the WM_KEY* through to Scintilla.
Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest
Yahoo! Shopping
Find Great Deals on Holiday Gifts at Yahoo! Shopping
_______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
