|Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread|
|Messages 1 to 3 of 3 total|
|TPagePanel - ScrollNext and ScrollPrior|
|Tue, Nov 24 2015 10:19 AM||Permanent Link|
Tactical Business Corporation
TPagePanel - I don't see ScrollNext, or ScrollPrior methods changing the Page.
I can change pages via the Pages[index] property fine.
procedure TForm1.btnPrior1Click(Sender: TObject);
PagePanel1.ScrollPrior; // Nothing Happens
procedure TForm1.btnNext1Click(Sender: TObject);
PagePanel1.ScrollNext; // Nothing Happens
procedure TForm1.btnNextClick(Sender: TObject);
if PagePanel1.ActivePage.Index < PagePanel1.PageCount - 1 then
PagePanel1.ActivePage := PagePanel1.Pages[PagePanel1.ActivePage.Index + 1];
procedure TForm1.btnPriorClick(Sender: TObject);
if PagePanel1.ActivePage.Index > 0 then
PagePanel1.ActivePage := PagePanel1.Pages[PagePanel1.ActivePage.Index - 1];
|Tue, Nov 24 2015 12:15 PM||Permanent Link|
On 11/24/2015 10:19 AM, Walter Matte wrote:
> TPagePanel - I don't see ScrollNext, or ScrollPrior methods changing the Page.
I think the manual is actually not correct here - these scroll the pages
visible on the page toolbar if you have more pages than are visible and
they work ok here for this purpose (same effect as those small
directional scrolling arrows on panelpage).
If you're looking to just move active page then NextPage/PriorPage would
work better but I believe you'd need to do something like
PagePanel1.ActivePage := PagePanel1.NextPage(PagePanel1.ActivePage);
|Tue, Nov 24 2015 12:38 PM||Permanent Link|
Tim Young [Elevate Software]
Elevate Software, Inc.
<< TPagePanel - I don't see ScrollNext, or ScrollPrior methods changing the Page. >>
Raul is correct - the manual is wrong. Originally the Scroll* methods were doing what they say, but then were changed when I started distinguishing between scrolling vs. changing the active page.
This web page was last updated on
Thursday, March 23, 2023 at 02:07 AM
© 2023 Elevate Software, Inc. All Rights Reserved
Questions or comments ? E-mail us at firstname.lastname@example.org