of_getsystemsetting


pfcapsrv.pbl   >   pfc_n_cst_dropdown   >   of_getsystemsetting   

Full name pfc_n_cst_dropdown.of_getsystemsetting
Access protected
Extend of integer
Return value integer
Prototype protected function integer of_getsystemsetting(integer)

Name Datatype
No Data

Name Datatype
lenv_object Environment

protected function integer of_getsystemsetting (integer ai_option);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_GetSystemSetting
//
//	Scope:	Protected
//
//	Arguments:
//		ai_option	The name of the desired setting.
//
//	Returns:  Integer
//		The setting.
//
//	Description:  Get the platform specific setting.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

Environment lenv_object

GetEnvironment(lenv_object)

If lenv_object.ostype = Windows! Then

	CHOOSE CASE ai_option
		CASE DWSTYLE_BOX
			Return 3
		CASE DWSTYLE_SHADOWBOX
			Return 3			
		CASE DWSTYLE_LOWERED
			Return 6			
		CASE DWSTYLE_RAISED
			Return 6		
		CASE DWDETAIL_HEIGHT
			Return 0
			Return -1
		CASE STYLE_BOX
			Return 3			
		CASE STYLE_SHADOWBOX
			Return 3			
		CASE STYLE_LOWERED
			Return 6					
		CASE STYLE_RAISED
			Return 6			
		CASE DW_HSPLITBAR_WIDTH
			Return 12					
		CASE TAB_BORDER
			Return 0		
		CASE MISC_XPOSITION
			Return 0						
		CASE MISC_YPOSITION
			Return 0		
		CASE DWMISC_XPOSITION
			Return 0						
		CASE DWMISC_YPOSITION
			Return 3			
		CASE BORDER_CHECK 			
			Return 3
	END CHOOSE

Else
	CHOOSE CASE ai_option
		CASE DWSTYLE_BOX
			Return 3
		CASE DWSTYLE_SHADOWBOX
			Return 3			
		CASE DWSTYLE_LOWERED
			Return 6			
		CASE DWSTYLE_RAISED
			Return 6		
		CASE DWDETAIL_HEIGHT
			Return 0
			Return -1
		CASE STYLE_BOX
			Return 3			
		CASE STYLE_SHADOWBOX
			Return 3			
		CASE STYLE_LOWERED
			Return 6					
		CASE STYLE_RAISED
			Return 6			
		CASE DW_HSPLITBAR_WIDTH
			Return 12					
		CASE TAB_BORDER
			Return 0		
		CASE MISC_XPOSITION
			Return 0						
		CASE MISC_YPOSITION
			Return 0		
		CASE DWMISC_XPOSITION
			Return 0						
		CASE DWMISC_YPOSITION
			Return 3			
		CASE BORDER_CHECK 			
			Return 3
	END CHOOSE


End If

Return 0
end function

     
Name Owner
pfc_n_cst_dropdown.of_position pfc_n_cst_dropdown
pfc_n_cst_dropdown.of_getparentposition pfc_n_cst_dropdown

     
Name Owner
systemfunctions.getenvironment systemfunctions

     
Full name
No Data

     
Name Scope
No Data