1. Krishna Mohan Gullap
  2. PowerBuilder
  3. Thursday, 5 December 2024 18:25 PM UTC

Hi there to the PowerBuilder experts -

 

So, I have a datawindow which has one big column (say comments) which an application user can use to enter multiple lines of text (like a freeform comments column), and this column has a Vertical Scroll bar enabled. This datawindow has multiple rows, and obviously, a comment field on each row

 

Now, there are 2 cases which I need to achieve

1. When the user scrolls with his mouse inside the lines of the comment column on a specific row, he wants the scroll to prevent him from moving to the comment column in the next row or the previous row and scroll thro the lines in that column

2. When the user scrolls with his mouse pointed outside the comment columm (the empty space in the DW), he wants the scroll to take him to the next or the previous row

 

I added an UE on the Datawindow mapping the datawindow event pbm_vscroll and I was able to restrict the scroll from happening within the individual rows, but I am not sure how to achieve the scroll between the lines inside the comment column. I tried adding conditions to see if the GetObjectAtPointer is the comment column and prevent scroll if it is not, and allow scroll when inside the comment column, but it doesn't seem to do the job. There is a scrollcode which says if it is an upscroll or a downscroll, but that's it. It doesn't give any other useful information apart from that

 

I can't find a scroll action that I can trigger on the column's scrollbar, and the ScrollVertical event doesn't seem to do it as well

 

Any help is greatly appreciated

Who is viewing this page
Accepted Answer
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 5 December 2024 18:50 PM UTC
  2. PowerBuilder
  3. # Permalink

PB version, release and build, please?

Comment
  1. John Fauss
  2. Thursday, 5 December 2024 19:00 PM UTC
Also, please clarify: You are using mapped event pbm_vscroll? Why not use the predefined scrollvertical event that is mapped to pbm_dwnvscroll (DataWindow Vertical Scroll)?
  1. Helpful
  1. Krishna Mohan Gullap
  2. Friday, 6 December 2024 15:44 PM UTC
I tried that as well, the scrollvertical event has one parameter scrollpos which doesn't give much information. Basically, I am unable to figure out how to scroll that scrollbar inside a column control



Using PowerBuilder 2022 R3 build 3356
  1. Helpful
There are no comments made yet.
Matt Balent Accepted Answer Pending Moderation
  1. Tuesday, 10 December 2024 21:14 PM UTC
  2. PowerBuilder
  3. # 1

Can you share a small image of the proposed UI for this?

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 10 December 2024 21:43 PM UTC
Hi Matt;

I wonder if we could emulate this behaviour using PB's Send() command?

Regards .. Chris
  1. Helpful
There are no comments made yet.
Krishna Mohan Gullap Accepted Answer Pending Moderation
  1. Saturday, 7 December 2024 00:26 AM UTC
  2. PowerBuilder
  3. # 2

Any thoughts?

Comment
  1. John Fauss
  2. Sunday, 8 December 2024 21:18 PM UTC
I'm thinking your user/customer may have to resort to dragging the thumb in the column's vertical scroll bar. There are no methods that I'm aware of that will let you manage mouse wheel scrolling within a column. I suggest you open a free support ticket for an enhancement request:

https://www.appeon.com/standardsupport/newbug
  1. Helpful 1
  1. Krishna Mohan Gullap
  2. Monday, 9 December 2024 17:23 PM UTC
Thank you, it helps to know that we can be confident we exhausted all possibilities before saying this is not doable with the current interface
  1. Helpful
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.