Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Datawindow VerticalScrollPosition is it broke?

4 posts in DataWindow Last posting was on 2009-05-26 17:12:14.0Z
Thomas Rundo Posted on 2009-05-26 16:13:42.0Z
Reply-To: "Thomas Rundo" <tomr@txpress.com>
From: "Thomas Rundo" <tomr@txpress.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Datawindow VerticalScrollPosition is it broke?
Lines: 33
Organization: Transfer Express
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4a1c1536@forums-1-dub>
Date: 26 May 2009 09:13:42 -0700
X-Trace: forums-1-dub 1243354422 10.22.241.152 (26 May 2009 09:13:42 -0700)
X-Original-Trace: 26 May 2009 09:13:42 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89403
Article PK: 418594

PB 11.5.1
XP Pro SP3
.NET 3.5 Framework


Can someone please verify that the following does not work?

long AVerttemp
string VTestdesc


//These are actually the same and should return the value of the
Vertical Scroll Position
ll_AVerttemp = Long(dw_1.Object.DataWindow.VerticalScrollPosition)
ls_VTestdesc = dw_1.Describe("DataWindow.VerticalScrollPosition")

When you change the Scroll position on the DW, you should be able to get the
current value of the position, I always get 0.
But the scrollvertical event on the DW does fire and the scrollpos does have
a value - accessing it through dotnotation or describe does not get the
value.

NOTE: The Horizontal value returns correctly when it is moved and when you
get the value by powerscript.

long AHorizTemp
ll_AHorizTemp = Long(dw_1.Object.DataWindow.HorizontalScrollPosition)

I have also tried this in PB 11.1 build 8204 with the same results above.


Chris Pollach Posted on 2009-05-26 16:42:17.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4a1c1536@forums-1-dub>
Subject: Re: Datawindow VerticalScrollPosition is it broke?
Lines: 58
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4a1c1be9$1@forums-1-dub>
Date: 26 May 2009 09:42:17 -0700
X-Trace: forums-1-dub 1243356137 10.22.241.152 (26 May 2009 09:42:17 -0700)
X-Original-Trace: 26 May 2009 09:42:17 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89404
Article PK: 418595

Hi Thomas;

I am confused .. the ScrollVertical event has the position passed to you
as an argument.

However, all this syntax works for me on the ScrollVertical event ...

THIS.Title = "Vertical Position: " + String (scrollpos)
- or -
THIS.Title = "Vertical Position: " + String
(THIS.Object.DataWindow.VerticalScrollPosition)
- or -
THIS.Title = "Vertical Position: " + String
(THIS.Describe("DataWindow.VerticalScrollPosition"))

--
Regards ... Chris
ISUG - NA RUG Director
http://chrispollach.pbdjmagazine.com

"Thomas Rundo" <tomr@txpress.com> wrote in message
news:4a1c1536@forums-1-dub...
> PB 11.5.1
> XP Pro SP3
> .NET 3.5 Framework
>
>
> Can someone please verify that the following does not work?
>
> long AVerttemp
> string VTestdesc
>
>
> //These are actually the same and should return the value of the
> Vertical Scroll Position
> ll_AVerttemp = Long(dw_1.Object.DataWindow.VerticalScrollPosition)
> ls_VTestdesc = dw_1.Describe("DataWindow.VerticalScrollPosition")
>
> When you change the Scroll position on the DW, you should be able to get
> the current value of the position, I always get 0.
> But the scrollvertical event on the DW does fire and the scrollpos does
> have a value - accessing it through dotnotation or describe does not get
> the value.
>
> NOTE: The Horizontal value returns correctly when it is moved and when
> you get the value by powerscript.
>
> long AHorizTemp
> ll_AHorizTemp = Long(dw_1.Object.DataWindow.HorizontalScrollPosition)
>
> I have also tried this in PB 11.1 build 8204 with the same results above.
>
>
>
>


Thomas Rundo Posted on 2009-05-26 16:50:57.0Z
Reply-To: "Thomas Rundo" <tomr@txpress.com>
From: "Thomas Rundo" <tomr@txpress.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4a1c1536@forums-1-dub> <4a1c1be9$1@forums-1-dub>
Subject: Re: Datawindow VerticalScrollPosition is it broke?
Lines: 71
Organization: Transfer Express
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4a1c1df1@forums-1-dub>
Date: 26 May 2009 09:50:57 -0700
X-Trace: forums-1-dub 1243356657 10.22.241.152 (26 May 2009 09:50:57 -0700)
X-Original-Trace: 26 May 2009 09:50:57 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89405
Article PK: 418596

Chris,

What I am find out is that in a Horiz TrackBar, I am using the ZOOM property
of the DW, it actually resets the Vertical Scroll Position back to 0 every
time. As soon as I took the zoom code out, I was able to get values from
the VerticalScrollPosition.

"Chris Pollach" <cpollach@travel-net.com> wrote in message
news:4a1c1be9$1@forums-1-dub...
> Hi Thomas;
>
> I am confused .. the ScrollVertical event has the position passed to
> you as an argument.
>
> However, all this syntax works for me on the ScrollVertical event ...
>
> THIS.Title = "Vertical Position: " + String (scrollpos)
> - or -
> THIS.Title = "Vertical Position: " + String
> (THIS.Object.DataWindow.VerticalScrollPosition)
> - or -
> THIS.Title = "Vertical Position: " + String
> (THIS.Describe("DataWindow.VerticalScrollPosition"))
>
> --
> Regards ... Chris
> ISUG - NA RUG Director
> http://chrispollach.pbdjmagazine.com
>
>
> "Thomas Rundo" <tomr@txpress.com> wrote in message
> news:4a1c1536@forums-1-dub...
>> PB 11.5.1
>> XP Pro SP3
>> .NET 3.5 Framework
>>
>>
>> Can someone please verify that the following does not work?
>>
>> long AVerttemp
>> string VTestdesc
>>
>>
>> //These are actually the same and should return the value of the
>> Vertical Scroll Position
>> ll_AVerttemp = Long(dw_1.Object.DataWindow.VerticalScrollPosition)
>> ls_VTestdesc = dw_1.Describe("DataWindow.VerticalScrollPosition")
>>
>> When you change the Scroll position on the DW, you should be able to get
>> the current value of the position, I always get 0.
>> But the scrollvertical event on the DW does fire and the scrollpos does
>> have a value - accessing it through dotnotation or describe does not get
>> the value.
>>
>> NOTE: The Horizontal value returns correctly when it is moved and when
>> you get the value by powerscript.
>>
>> long AHorizTemp
>> ll_AHorizTemp = Long(dw_1.Object.DataWindow.HorizontalScrollPosition)
>>
>> I have also tried this in PB 11.1 build 8204 with the same results above.
>>
>>
>>
>>
>
>


Chris Pollach Posted on 2009-05-26 17:12:14.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4a1c1536@forums-1-dub> <4a1c1be9$1@forums-1-dub> <4a1c1df1@forums-1-dub>
Subject: Re: Datawindow VerticalScrollPosition is it broke?
Lines: 82
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4a1c22ee@forums-1-dub>
Date: 26 May 2009 10:12:14 -0700
X-Trace: forums-1-dub 1243357934 10.22.241.152 (26 May 2009 10:12:14 -0700)
X-Original-Trace: 26 May 2009 10:12:14 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89407
Article PK: 418597

Yes, I think that zooming always resets your position back to the top - aka
zero.

"Thomas Rundo" <tomr@txpress.com> wrote in message
news:4a1c1df1@forums-1-dub...
> Chris,
>
> What I am find out is that in a Horiz TrackBar, I am using the ZOOM
> property of the DW, it actually resets the Vertical Scroll Position back
> to 0 every time. As soon as I took the zoom code out, I was able to get
> values from the VerticalScrollPosition.
>
>
>
> "Chris Pollach" <cpollach@travel-net.com> wrote in message
> news:4a1c1be9$1@forums-1-dub...
>> Hi Thomas;
>>
>> I am confused .. the ScrollVertical event has the position passed to
>> you as an argument.
>>
>> However, all this syntax works for me on the ScrollVertical event ...
>>
>> THIS.Title = "Vertical Position: " + String (scrollpos)
>> - or -
>> THIS.Title = "Vertical Position: " + String
>> (THIS.Object.DataWindow.VerticalScrollPosition)
>> - or -
>> THIS.Title = "Vertical Position: " + String
>> (THIS.Describe("DataWindow.VerticalScrollPosition"))
>>
>> --
>> Regards ... Chris
>> ISUG - NA RUG Director
>> http://chrispollach.pbdjmagazine.com
>>
>>
>> "Thomas Rundo" <tomr@txpress.com> wrote in message
>> news:4a1c1536@forums-1-dub...
>>> PB 11.5.1
>>> XP Pro SP3
>>> .NET 3.5 Framework
>>>
>>>
>>> Can someone please verify that the following does not work?
>>>
>>> long AVerttemp
>>> string VTestdesc
>>>
>>>
>>> //These are actually the same and should return the value of the
>>> Vertical Scroll Position
>>> ll_AVerttemp = Long(dw_1.Object.DataWindow.VerticalScrollPosition)
>>> ls_VTestdesc = dw_1.Describe("DataWindow.VerticalScrollPosition")
>>>
>>> When you change the Scroll position on the DW, you should be able to get
>>> the current value of the position, I always get 0.
>>> But the scrollvertical event on the DW does fire and the scrollpos does
>>> have a value - accessing it through dotnotation or describe does not get
>>> the value.
>>>
>>> NOTE: The Horizontal value returns correctly when it is moved and when
>>> you get the value by powerscript.
>>>
>>> long AHorizTemp
>>> ll_AHorizTemp = Long(dw_1.Object.DataWindow.HorizontalScrollPosition)
>>>
>>> I have also tried this in PB 11.1 build 8204 with the same results
>>> above.
>>>
>>>
>>>
>>>
>>
>>
>
>