|
pfc_lastpage
|
|
Full name
|
pfc_u_rte.pfc_lastpage
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_lastpage()
|
Name
|
Datatype
|
li_pagecount
|
integer
|
li_selectedpage
|
integer
|
event pfc_lastpage;//////////////////////////////////////////////////////////////////////////////
//
// Event: pfc_lastpage
//
// Arguments: none
//
// Returns: integer
// the last page number of the RTE
// -1 if an error occurs
//
// Description: Scrolls to the last page of the RTE
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
integer li_pagecount
integer li_selectedpage
li_pagecount = this.PageCount()
if li_pagecount < 0 then
return li_pagecount
end if
li_selectedpage = this.SelectedPage()
if li_selectedpage < 0 or li_selectedpage >= li_pagecount then
return li_selectedpage
end if
this.SetRedraw (false)
do while li_selectedpage < li_pagecount
this.ScrollNextPage()
li_selectedpage = this.SelectedPage()
if li_selectedpage < 0 then
exit
end if
loop
this.SetRedraw (true)
return this.SelectedPage()
end event
Name
|
Owner
|
dragobject.setredraw |
dragobject
|
richtextedit.pagecount |
richtextedit
|
richtextedit.scrollnextpage |
richtextedit
|
richtextedit.selectedpage |
richtextedit
|