![]() |
Text selstart |
Post Reply
|
| Author | |
JvdH
Groupie
Joined: 09 May 2008 Status: Offline Points: 50 |
Post Options
Thanks(0)
Quote Reply
Topic: Text selstartPosted: 15 May 2008 at 2:08pm |
|
Hi,
Im using VB6.
When using the original textboxes i use this command:
Text1.SelStart = Len(Text1.Text)`
to keep the textbox scrolling automatically when entering text automatically to the textbox.
I see this isnt possible with the suite controls textbox or is it?
Thank you
|
|
![]() |
|
JantjeKeizer
Groupie
Joined: 12 February 2008 Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 May 2008 at 3:31pm |
|
I experienced the same problem. The selstart works, but doesn't set focus to the cursor. So sometimes it's 'outside' of the window
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 May 2008 at 1:24am |
|
hI,
Sorry, I don't se difference:
Private Sub Command2_Click()
FlatEdit1.Text = "wefjowe iprwoieroip wepwpeoirpiowe rpwe pro" FlatEdit1.SelStart = Len(FlatEdit1.Text) FlatEdit1.SetFocus End Sub
it set text and scroll to end.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
JantjeKeizer
Groupie
Joined: 12 February 2008 Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 May 2008 at 3:34am |
|
20080516_033441_textscroll.rar
See this example |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 May 2008 at 1:02pm |
|
Hello,
Thanks. see now. Changed.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
JvdH
Groupie
Joined: 09 May 2008 Status: Offline Points: 50 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 May 2008 at 2:48pm |
is it possible without setfocus cuz i dont want the flatbox focussed?
Btw this example still aint working. (im using 11.2 btw)
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 May 2008 at 2:51pm |
|
Hi,
Yes, it will work without SetFocus too.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
JvdH
Groupie
Joined: 09 May 2008 Status: Offline Points: 50 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 May 2008 at 3:23pm |
It was more like a question of how :P cuz it wont work or is that because im using 11 instead of 12?
Its a multilined flatbox btw
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 May 2008 at 1:31am |
|
Hi,
As workaround for 11 you can just send message
SendMessage(edit.hWnd, EM_SCROLLCARET, 0, 0);
where EM_SCROLLCARET = 0x00B7
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |