for resizable grid datawindows:
I'm trying to figure out whether a column can be seen by the user based on its
horizontal location. The datawindow has a horiztonal scrollbar and I am setting
the current column with setcolumn(), but the column may not be viewable due to
the width of the datawindow object vs the datawindow control.
I only want to scroll (using HorizontalScrollPosition) to it if the user can not
see it.
If I know the width of the datawindow, then I can calculate it.
I thought I could use the control width (dw_1.width) and the
HorizontalScrollMaximum (assuming the datawindow is in PBunits or pixels with
conversion), but HorizontalScrollMaximum doesn't seem to be the width of the
datawindow object, just the calculated scrollbar size max.
I think i am stuck having to try and figure out the width of the datawindow
object via looking for the object with the max x + width value. Even if I do
that, then my calculations are dependent on the datawindow units being either PB
units or pixels?
"M. Searer" <nos...@nospam.com> wrote in message
news:483edab2$1@forums-1-dub...
I could just always scroll to the column regardless of whether it is already
visible, but then it will always move the position of the datawindow around on
the user. As a user, that would drive me nuts particularly since I might have
positioned the scroll location in order to see specific columns; but now the
system moved it on me.....
"Philip Salgannik" <PhilipS...@work.com> wrote in message
news:483ee886$1@forums-1-dub...
During a full validation of the datawindow, if they have missing data I am
notifying them of the missing values and setting the column as current. But
that column may be outside the current viewable area. It is at that time that I
want to scroll.
"Philip Salgannik" <PhilipS...@work.com> wrote in message
news:483ef27f$1@forums-1-dub...
"M. Searer" <nos...@nospam.com> wrote in message
news:483ef8ec$1@forums-1-dub...
"Philip Salgannik" <philema...@comcast.net> wrote in message
news:4843f1e1@forums-1-dub...