datawindow pbm_vscroll help
- How-to
- John Raghanti
- PowerBuilder
- Thursday, 7 May 2020 03:03 PM UTC
Hi all. I've been tasked with creating a smooth scroll on a long composite datawindow. The powers that be don't care for the row by row type scrolling, as some detail rows are much taller than others.
Anyway, I've created an event and associated pbm_vscroll to it, and I can get smooth scrolling to work with some code I found online:
if (scrollcode = 2) or (scrollcode = 3) then
this.setredraw (false) // Comment this line if You want to see "jumps"
this.post event ue_post_scroll (scrollcode)
elseif (scrollcode = 5) then
this.mscroll = scrollpos
end if
However, with this implemented, clicking on the bar itself or on the arrows no longer works. I can't seem to find a reference for what the different scrollcode values mean, or what to expect with scrollpos.
Does anyone have a decent reference for how pbm_vscroll works?
Thanks!
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.