1. Gary Cooper
  2. PowerBuilder
  3. Tuesday, 11 July 2023 14:28 PM UTC

I have a datawindow with one column that contains text of 25,000 characters.  It has a vertical scroll bar, however, the requirement is that the scroll bar automatically scrolls down if the text is more than is initially visible. 

How do i get the scroll bar to scroll to the bottom of the datawindow if there is more text than is visible in the opening window.

René Ullrich Accepted Answer Pending Moderation
  1. Wednesday, 12 July 2023 05:50 AM UTC
  2. PowerBuilder
  3. # 1

To scroll the datawindow you can use the datawindow object properties (https://docs.appeon.com/pb2021/datawindow_reference/XREF_61504_Controls_in_a.html#XREF_40675_Properties_for_the)

  • VerticalScrollMaximum
  • VerticalScrollPosition
  • HorizontalScrollMaximum
  • HorizontalScrollMaximum2
  • HorizontalScrollPosition
  • HorizontalScrollPosition2
  • HorizontalScrollSplit

So to scroll down you can use

dw_control.Object.DataWindow.VerticalScrollPosition = dw_control.Object.DataWindow.VerticalScrollMaximum

HTH,

René

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.