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.

Rich text scrolling

5 posts in Last posting was on 2008-09-16 16:51:14.0Z
Arlsooner Posted on 2008-09-12 15:28:14.0Z
Sender: 4e1.48ca88e0.1804289383@sybase.com
From: Arlsooner
Newsgroups: sybase.public.powerbuilder.rte
Subject: Rich text scrolling
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <48ca8a8e.5b4.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 12 Sep 2008 08:28:14 -0700
X-Trace: forums-1-dub 1221233294 10.22.241.41 (12 Sep 2008 08:28:14 -0700)
X-Original-Trace: 12 Sep 2008 08:28:14 -0700, 10.22.241.41
Lines: 16
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.rte:178
Article PK: 791802

I have a problem trying to display rich text documents.
I've set up a window with a RTE control and have several
command buttons for the user to select what document they
wish to see. Everything works fine except...
If document A1 is selected and the user scrolls down, even
one line, and then document A2 is clicked it will
automatically scroll to the bottom of the A2 doc. I've
tried all methods of rte_1.Scroll(),
rte_1.scrollpriorpage(), rte_1.scrollpriorrow()to move the
display to the top of the document, but have been
unsuccessful.

I'm at a loss as what to try next. Any help would be
appreciated.

Joe


Gary Posted on 2008-09-12 19:43:29.0Z
Sender: 72e4.48c6aadc.1804289383@sybase.com
From: Gary
Newsgroups: sybase.public.powerbuilder.rte
Subject: Re: Rich text scrolling
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <48cac661.1366.1681692777@sybase.com>
References: <48ca8a8e.5b4.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 12 Sep 2008 12:43:29 -0700
X-Trace: forums-1-dub 1221248609 10.22.241.41 (12 Sep 2008 12:43:29 -0700)
X-Original-Trace: 12 Sep 2008 12:43:29 -0700, 10.22.241.41
Lines: 19
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.rte:181
Article PK: 761927

Try this call after Pasting your RTF
rte_1.SelectText ( 1, 1, 0, 0 )

> I have a problem trying to display rich text documents.
> I've set up a window with a RTE control and have several
> command buttons for the user to select what document they
> wish to see. Everything works fine except...
> If document A1 is selected and the user scrolls down,
> even one line, and then document A2 is clicked it will
> automatically scroll to the bottom of the A2 doc. I've
> tried all methods of rte_1.Scroll(),
> rte_1.scrollpriorpage(), rte_1.scrollpriorrow()to move the
> display to the top of the document, but have been
> unsuccessful.
>
> I'm at a loss as what to try next. Any help would be
> appreciated.
>
> Joe


Arlsooner Posted on 2008-09-16 16:50:02.0Z
Sender: 2245.48cfe2e7.846930886@sybase.com
From: Arlsooner
Newsgroups: sybase.public.powerbuilder.rte
Subject: Re: Rich text scrolling
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <48cfe3ba.227a.1681692777@sybase.com>
References: <48cac661.1366.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 16 Sep 2008 09:50:02 -0700
X-Trace: forums-1-dub 1221583802 10.22.241.41 (16 Sep 2008 09:50:02 -0700)
X-Original-Trace: 16 Sep 2008 09:50:02 -0700, 10.22.241.41
Lines: 23
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.rte:182
Article PK: 791801

Wow, thanks a million that worked.

> Try this call after Pasting your RTF
> rte_1.SelectText ( 1, 1, 0, 0 )
>
> > I have a problem trying to display rich text documents.
> > I've set up a window with a RTE control and have several
> > command buttons for the user to select what document
> > they wish to see. Everything works fine except...
> > If document A1 is selected and the user scrolls down,
> > even one line, and then document A2 is clicked it will
> > automatically scroll to the bottom of the A2 doc. I've
> > tried all methods of rte_1.Scroll(),
> > rte_1.scrollpriorpage(), rte_1.scrollpriorrow()to move
> > the display to the top of the document, but have been
> > unsuccessful.
> >
> > I'm at a loss as what to try next. Any help would be
> > appreciated.
> >
> > Joe


Chris Pollach Posted on 2008-09-12 16:27:22.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.rte
References: <48ca8a8e.5b4.1681692777@sybase.com>
Subject: Re: Rich text scrolling
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48ca986a$1@forums-1-dub>
Date: 12 Sep 2008 09:27:22 -0700
X-Trace: forums-1-dub 1221236842 10.22.241.152 (12 Sep 2008 09:27:22 -0700)
X-Original-Trace: 12 Sep 2008 09:27:22 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.rte:180
Article PK: 791794

Joe;

What version of PB are you using? I ask this because the RTE control was
replaced in PB 10.5.0 - thus the answers you get will depend on the PB
release and build your are using.

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

<Arlsooner> wrote in message news:48ca8a8e.5b4.1681692777@sybase.com...
>I have a problem trying to display rich text documents.
> I've set up a window with a RTE control and have several
> command buttons for the user to select what document they
> wish to see. Everything works fine except...
> If document A1 is selected and the user scrolls down, even
> one line, and then document A2 is clicked it will
> automatically scroll to the bottom of the A2 doc. I've
> tried all methods of rte_1.Scroll(),
> rte_1.scrollpriorpage(), rte_1.scrollpriorrow()to move the
> display to the top of the document, but have been
> unsuccessful.
>
> I'm at a loss as what to try next. Any help would be
> appreciated.
>
> Joe


Arlsooner Posted on 2008-09-16 16:51:14.0Z
Sender: 2245.48cfe2e7.846930886@sybase.com
From: Arlsooner
Newsgroups: sybase.public.powerbuilder.rte
Subject: Re: Rich text scrolling
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <48cfe402.228f.1681692777@sybase.com>
References: <48ca986a$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 16 Sep 2008 09:51:14 -0700
X-Trace: forums-1-dub 1221583874 10.22.241.41 (16 Sep 2008 09:51:14 -0700)
X-Original-Trace: 16 Sep 2008 09:51:14 -0700, 10.22.241.41
Lines: 37
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.rte:183
Article PK: 791805

I'm on V10.5, but as you can see below I got a fix.

Thanks for responding just the same.

> Joe;
>
> What version of PB are you using? I ask this because
> the RTE control was replaced in PB 10.5.0 - thus the
> answers you get will depend on the PB release and build
> your are using.
>
> --
> Regards ... Chris
> ISUG - NA RUG Director
> http://chrispollach.pbdjmagazine.com
>
>
> <Arlsooner> wrote in message
> news:48ca8a8e.5b4.1681692777@sybase.com... >I have a
> > problem trying to display rich text documents. I've set
> > up a window with a RTE control and have several command
> > buttons for the user to select what document they wish
> > to see. Everything works fine except... If document A1
> > is selected and the user scrolls down, even one line,
> > and then document A2 is clicked it will automatically
> > scroll to the bottom of the A2 doc. I've tried all
> > methods of rte_1.Scroll(), rte_1.scrollpriorpage(),
> > rte_1.scrollpriorrow()to move the display to the top of
> > the document, but have been unsuccessful.
> >
> > I'm at a loss as what to try next. Any help would be
> > appreciated.
> >
> > Joe
>
>