of_addmenubarline


pfcapsrv.pbl   >   pfc_n_cst_mru   >   of_addmenubarline   

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

Name Datatype
No Data

Name Datatype
li_rc integer
lm_menu menu
lnv_menu n_cst_menu

protected function integer of_addmenubarline (window aw_window);//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_AddMenuBarLine
//
//	Access:		protected
//
//	Arguments:
//	aw_window   window which contains the menu item to modify
//
//	Returns:		integer
//	SUCCESS = 1
//	ERROR = -1
//
//	Description:
//	turn on the divider bar on the file 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
menu			lm_menu
n_cst_menu	lnv_menu

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

// get the menu info for what we want to compare
li_rc = lnv_menu.of_GetMenuReference(aw_window.menuid, is_menubarline, lm_menu)
if li_rc < 1 then return -1

// turn on the divider bar
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
pfc_n_cst_menu.of_getmenureference pfc_n_cst_menu

     
Full name
No Data

     
Name Scope
No Data