Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Text selstart
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Text selstart

 Post Reply Post Reply
Author
Message
JvdH View Drop Down
Groupie
Groupie


Joined: 09 May 2008
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote JvdH Quote  Post ReplyReply Direct Link To This Post Topic: Text selstart
    Posted: 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
Back to Top
JantjeKeizer View Drop Down
Groupie
Groupie


Joined: 12 February 2008
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote JantjeKeizer Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
JantjeKeizer View Drop Down
Groupie
Groupie


Joined: 12 February 2008
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote JantjeKeizer Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2008 at 3:34am
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2008 at 1:02pm
Hello,
 
Thanks. see now. Changed.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
JvdH View Drop Down
Groupie
Groupie


Joined: 09 May 2008
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote JvdH Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2008 at 2:48pm
Originally posted by oleg oleg wrote:

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.
 
is it possible without setfocus cuz i dont want the flatbox focussed?
Btw this example still aint working. (im using 11.2 btw)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2008 at 2:51pm
Hi,
Yes, it will work without SetFocus too.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
JvdH View Drop Down
Groupie
Groupie


Joined: 09 May 2008
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote JvdH Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2008 at 3:23pm
Originally posted by oleg oleg wrote:

Hi,
Yes, it will work without SetFocus too.
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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.