pfc_firstpage


pfcmain.pbl   >   pfc_u_rte   >   pfc_firstpage   

Full name pfc_u_rte.pfc_firstpage
Access public
Extend of integer
Return value integer
Prototype event integer pfc_firstpage()

Name Datatype
No Data

Name Datatype
li_selectedpage integer

event pfc_firstpage;//////////////////////////////////////////////////////////////////////////////
//
//	Event:  pfc_firstpage
//
//	Arguments:  none
//
//	Returns:  integer
//	 the page number that the RTE scrolled to
//	-1 if an error occurs
//
//	Description:	Scrolls to the first 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_selectedpage

li_selectedpage = this.SelectedPage()
if li_selectedpage <= 1 then
	return li_selectedpage
end if

this.SetRedraw (false)

do while li_selectedpage > 1
	this.ScrollPriorPage()
	li_selectedpage = this.SelectedPage()
loop

this.SetRedraw (true)

return this.SelectedPage()

end event

     
Name Owner
No Data

     
Name Owner
dragobject.setredraw dragobject
richtextedit.scrollpriorpage richtextedit
richtextedit.selectedpage richtextedit

     
Full name
No Data

     
Name Scope
No Data