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
Using PowerBuilder 2022 R3 build 3356