Horizontal Scrolling (6 posts)
Horizontal Scrolling
2005/12/13 19:58:07
Hi,
I have a crosstab datawindow report wherein I always need
the first 2 columns to be displayed while Horizontal
scrolling through the data. From the powerbuilder help, I
found that I can set the Horizontal splitbar property to a
particular value.I did this and it seemed to help. But the
problem is that, I get a thick band in the center that is
visually unappealing. Also, is there a way to make the first
two columns invisible on the right side of the split
scrollbar so that I don't see the same nformation twice ? If
this is not possible, is there an alternate solution to this
problem. Any suggestions would be welcome.
Thanks,
SS
Re: Horizontal Scrolling
2005/12/13 20:25:37
That is how it works. You could have two datawindow
controls
and create the code that handles the scrolling... yourself.
Only display the first 2 columns in the 1st dw and the 3-N
columns in the 2nd datawindow.
>
> I have a crosstab datawindow report wherein I always need
> the first 2 columns to be displayed while Horizontal
> scrolling through the data. From the powerbuilder help, I
> found that I can set the Horizontal splitbar property to a
> particular value.I did this and it seemed to help. But the
> problem is that, I get a thick band in the center that is
> visually unappealing. Also, is there a way to make the
> first two columns invisible on the right side of the split
> scrollbar so that I don't see the same nformation twice ?
> If this is not possible, is there an alternate solution to
> this problem. Any suggestions would be welcome.
>
> Thanks,
> SS
Re: Horizontal Scrolling
2005/12/13 21:29:26
I already tried creating two dw controls. But in that case I
don't know how to synchronize the data in the controls when
I vertically scroll down.How do I set the values for
VerticalScrollMaximum and VerticalScrollPosition functions
to achieve syncronization ?
Thanks,
SS
> That is how it works. You could have two datawindow
> controls
> and create the code that handles the scrolling...
> yourself. Only display the first 2 columns in the 1st dw
> and the 3-N columns in the 2nd datawindow.
>
> >
> > I have a crosstab datawindow report wherein I always
> > need the first 2 columns to be displayed while
> > Horizontal scrolling through the data. From the
> > powerbuilder help, I found that I can set the Horizontal
> > splitbar property to a particular value.I did this and
> > it seemed to help. But the problem is that, I get a
> > thick band in the center that is visually unappealing.
> > Also, is there a way to make the first two columns
> > invisible on the right side of the split scrollbar so
> > that I don't see the same nformation twice ? If this is
> > not possible, is there an alternate solution to this
> problem. Any suggestions would be welcome. >
> > Thanks,
> > SS
Re: Horizontal Scrolling
2005/12/13 22:18:53
Found out how to achieve syncronization
Thanks,
SS
> I already tried creating two dw controls. But in that case
> I don't know how to synchronize the data in the controls
> when I vertically scroll down.How do I set the values for
> VerticalScrollMaximum and VerticalScrollPosition functions
> to achieve syncronization ?
>
> Thanks,
> SS
>
> > That is how it works. You could have two datawindow
> > controls
> > and create the code that handles the scrolling...
> > yourself. Only display the first 2 columns in the 1st dw
> > and the 3-N columns in the 2nd datawindow.
> >
> > >
> > > I have a crosstab datawindow report wherein I always
> > > need the first 2 columns to be displayed while
> > > Horizontal scrolling through the data. From the
> > > powerbuilder help, I found that I can set the
> > > Horizontal splitbar property to a particular value.I
> > > did this and it seemed to help. But the problem is
> > > that, I get a thick band in the center that is
> > > visually unappealing. Also, is there a way to make the
> > > first two columns invisible on the right side of the
> > > split scrollbar so that I don't see the same
> > > nformation twice ? If this is not possible, is there
> > an alternate solution to this problem. Any suggestions
> > > would be welcome. > Thanks,
> > > SS
Re: Horizontal Scrolling
2005/12/14 13:53:27
Try with this:
// event ScrollVertical in dw_left
string spos1, modstring
spos1 = this.Describe("DataWindow.VerticalScrollPosition")
modstring = "DataWindow.VerticalScrollPosition=" + spos1
dw_rigth.Modify(modstring)
// event ScrollVertical in dw_right
string spos1, modstring
spos1 = this.Describe("DataWindow.VerticalScrollPosition")
modstring = "DataWindow.VerticalScrollPosition=" + spos1
dw_left.Modify(modstring)
escribió en el mensaje news:439f1eee.2d7a.1681692777@sybase.com...
>I already tried creating two dw controls. But in that case I
> don't know how to synchronize the data in the controls when
> I vertically scroll down.How do I set the values for
> VerticalScrollMaximum and VerticalScrollPosition functions
> to achieve syncronization ?
>
> Thanks,
> SS
>
>> That is how it works. You could have two datawindow
>> controls
>> and create the code that handles the scrolling...
>> yourself. Only display the first 2 columns in the 1st dw
>> and the 3-N columns in the 2nd datawindow.
>>
>> >
>> > I have a crosstab datawindow report wherein I always
>> > need the first 2 columns to be displayed while
>> > Horizontal scrolling through the data. From the
>> > powerbuilder help, I found that I can set the Horizontal
>> > splitbar property to a particular value.I did this and
>> > it seemed to help. But the problem is that, I get a
>> > thick band in the center that is visually unappealing.
>> > Also, is there a way to make the first two columns
>> > invisible on the right side of the split scrollbar so
>> > that I don't see the same nformation twice ? If this is
>> > not possible, is there an alternate solution to this
>> problem. Any suggestions would be welcome. >
>> > Thanks,
>> > SS
Re: Horizontal Scrolling
2005/12/14 22:49:39
Israel,
Thanks for your code snippet. But, I was able to achieve
this with one line of code. I removed vertical scrolling
property on dw_left and put the below code in Scrollvertical
event of dw_right.
dw_left.object.datawindow.VerticalScrollPosition =
scrollpos
(scrollpos is an argument value already supplied by
powerbuilder)
Thanks,
SS
> Try with this:
>
> // event ScrollVertical in dw_left
> string spos1, modstring
> spos1 =
> this.Describe("DataWindow.VerticalScrollPosition")
> modstring = "DataWindow.VerticalScrollPosition=" +
spos1
> dw_rigth.Modify(modstring)
>
> // event ScrollVertical in dw_right
> string spos1, modstring
> spos1 =
> this.Describe("DataWindow.VerticalScrollPosition")
> modstring = "DataWindow.VerticalScrollPosition=" +
spos1
> dw_left.Modify(modstring)
>
>
>
>
>
> escribió en el mensaje
> news:439f1eee.2d7a.1681692777@sybase.com... >I already
> > tried creating two dw controls. But in that case I don't
> > know how to synchronize the data in the controls when I
> > vertically scroll down.How do I set the values for
> > VerticalScrollMaximum and VerticalScrollPosition
> functions to achieve syncronization ? >
> > Thanks,
> > SS
> >
> >> That is how it works. You could have two datawindow
> >> controls
> >> and create the code that handles the scrolling...
> >> yourself. Only display the first 2 columns in the 1st
> dw >> and the 3-N columns in the 2nd datawindow.
> >>
> >> >
> >> > I have a crosstab datawindow report wherein I always
> >> > need the first 2 columns to be displayed while
> >> > Horizontal scrolling through the data. From the
> >> > powerbuilder help, I found that I can set the
> Horizontal >> > splitbar property to a particular value.I
> did this and >> > it seemed to help. But the problem is
> that, I get a >> > thick band in the center that is
> visually unappealing. >> > Also, is there a way to make
> the first two columns >> > invisible on the right side of
> the split scrollbar so >> > that I don't see the same
> nformation twice ? If this is >> > not possible, is there
> an alternate solution to this >> problem. Any suggestions
> would be welcome. > >> > Thanks,
> >> > SS
>
>