of_updatevisuals


pfcapsrv.pbl   >   pfc_n_cst_mru   >   of_updatevisuals   

Full name pfc_n_cst_mru.of_updatevisuals
Access protected
Extend of integer
Return value integer
Prototype protected function integer of_updatevisuals(window,string,integer)

Name Datatype
No Data

Name Datatype
li_rc integer
lm_menu menu
lnv_menu n_cst_menu
ls_menuitemname string

protected function integer of_updatevisuals (window aw_window, string as_menuitemtext, integer ai_menuitemindex);//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_UpdateVisuals
//
//	Access:		protected
//
//	Arguments:
//	aw_window				window menu resides on
//	as_menuitemtext		text to place in the menu item text
//	ai_menuitemindex		the menu item number we want to modify
//
//	Returns:		integer
//	SUCCESS = 1
//	ERROR = -1
//
//	Description:
//	Set and Make visible the MRU items on the window's menu
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	6.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_rc
string		ls_menuitemname
menu			lm_menu
n_cst_menu	lnv_menu

// check the arguments
if isnull(aw_window) or not isvalid(aw_window) then return -1
if isnull(as_menuitemtext) or (as_menuitemtext = "") then return -1
if isnull(ai_menuitemindex) then return -1

// set the menu item values
ls_menuitemname = is_menuitemstring + string(ai_menuitemindex)
li_rc = lnv_menu.of_GetMenuReference(aw_window.menuid, ls_menuitemname, lm_menu)

if li_rc < 1 then return -1

lm_menu.text = as_menuitemtext
lm_menu.visible = True

return 1


end function

     
Name Owner
pfc_n_cst_mru.of_restore pfc_n_cst_mru

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
systemfunctions.string systemfunctions
pfc_n_cst_menu.of_getmenureference pfc_n_cst_menu

     
Full name
No Data

     
Name Scope
No Data