You need to be logged in to view a user's profile.
  1. William Beale
  2. PowerBuilder
  3. Sunday, 4 March 2018 00:37 AM UTC

I am seeking advice on why a horizontal-scrollbar (hsb) on a single-row datawindow object does not function.

The datawindow object is long with a width of 9600 because it needs to display over forty columns of data converted to text from a spreadsheet.

The width of the datawindow is 3800.

When run, the length of hsb is about two-thirds of the datawindow's length, but when slid to the far right with the intention to scroll thought the data, the data in the datawindow object shifts only by about a half-a-charcter-width or virtually not at all.

However, if I shift the hsb to the far right and then click in another application, say a Word document that is currently running, the scroll-bar then takes effect and the data immediately scrolls to the end.

William Beale Accepted Answer Pending Moderation
  1. Tuesday, 6 March 2018 00:11 AM UTC
  2. PowerBuilder
  3. # 1

I ended up finding a solution so I apologise for the distraction. 

Nevertheless, someone else may encounter the same problem, so here's my work-around.

I added code to to the 'scrollhorizontal' event of the subject datatwindow (say, dw_1) to change focus to another object, ie 'dw_2.SetFocus()'. 

This worked ok - just like a bought one.

Comment
There are no comments made yet.
William Beale Accepted Answer Pending Moderation
  1. Monday, 5 March 2018 21:51 PM UTC
  2. PowerBuilder
  3. # 2

Sorry Govinda, I omitted to add that it is 32 bit and it is not a rich text edit, simply a type string in a single-row grid dw object, length 3000.

Comment
There are no comments made yet.
William Beale Accepted Answer Pending Moderation
  1. Monday, 5 March 2018 21:45 PM UTC
  2. PowerBuilder
  3. # 3

Thanks for your interest.

The client is using a version compiled in Appeon 2017 on a Windows 7 OS.

I'm developing now in R2 on Windows 8.

The problem occurs both in R2 development and 2017 executable modes.

The underlying problem I presume is with the width of the dw object but the slide seems to work if I move it and then change focus by clicking outside the dw. 

So today I'll experiment with code on the lbuttonup event to switch focus. 

Comment
There are no comments made yet.
Govinda Lopez @Appeon Accepted Answer Pending Moderation
  1. Monday, 5 March 2018 17:13 PM UTC
  2. PowerBuilder
  3. # 4

Hi William,

 

Can you help us with more info on your case:

 

  • What Version/build of PowerBuilder are you using?
  • Is this happening during runtime?
  • Are you using the RichTextEdit Control?
  • Is your application 32 or 64 bits?

 

Regards,

Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Monday, 5 March 2018 12:05 PM UTC
  2. PowerBuilder
  3. # 5

And you are using Powerbuilder 2017 / 2017R2 or an older version?

Andreas.

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.