Force textarea to scroll ?

Post

Posted
Rating:
#1 (In Topic #1283)
Regular
sergioabreu is in the usergroup ‘Regular’
 Is it possible to scroll a Textarea via program to a desired vertical position?

I use .pos, .select .setfocus but sometimes texts is selected but out of the viewport
Online now: No Back to the top

Post

Posted
Rating:
#2
Guru
BruceSteers is in the usergroup ‘Guru’
There isn't a default way to scroll but there is a way to ensure cursor position is visible…

Code (gambas)

  1.  
  2. TextArea1.Pos = iPosition ' set cursor position
  3.  
  4. TextArea1.EnsureVisible ' to ensure cursor position is visible
  5.  
  6.  
Online now: No Back to the top

Post

Posted
Rating:
#3
Regular
sergioabreu is in the usergroup ‘Regular’

BruceSteers said

There isn't a default way to scroll but there is a way to ensure cursor position is visible…

Code (gambas)

  1.  
  2. TextArea1.Pos = iPosition ' set cursor position
  3.  
  4. TextArea1.EnsureVisible ' to ensure cursor position is visible
  5.  
  6.  
Nice
Online now: No Back to the top
1 guest and 0 members have just viewed this.