Kr00l / VBCCR

VB Common Controls Replacement Library
MIT License
104 stars 46 forks source link

auto scroll on richtext #3

Closed rockygsm closed 5 years ago

rockygsm commented 5 years ago

Hello You made great help to all of us. i started to use ocx and control version noticed bug on richtext change event. Normally i used original richtext ocx do this. when textarea is bigger its auto scroll to last line. with change event on richtext richtext.SelStart = richtext.hWnd also try this richtext.SelStart = richtext.hWndUserControl

both seems not working. i try to debug on controls but seems taking much time so i am reporting to you may be you can find faster then me?

regards,

Kr00l commented 5 years ago

Hi. Why do you set .hWnd to selStart? That does not make sense(?)

rockygsm commented 5 years ago

To make richtext goto last line auto scroll same thing work on official richtext ocx. any other way ?

rockygsm commented 5 years ago

after few hrs debugging i found this solve issue.. seems control and ocx both version not update focus after sendmsg. richtext.SelStart = richtext.hWnd rctxt1.SetFocus