⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shadestyle.class

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 CLASS
字号:
*! version 1.0.0  30jul2002
version 8

class {

    instance:
	color		= .color.new ,       type(shade)
	intensity	= .intensity.new , 
	fill		= .fillpattern.new /*, style(pattern10) */

}, inherit(style)

/* -------------------------------------------------------------------------*/
/*
	Usage:  .new [, Color(color_setting) Fillpattern(fillname) 
			Intensity(#) ]
*/
program define new

	syntax [, Style(string) * ]

	if ("`style'" == "")  .setstyle, style(scheme)

	.Super.new, `.set `0''
end


program define set

	syntax [,  Color(passthru) Fillpattern(string) 			/*
		*/ Intensity(string) * ]

	if "`color'" != "" {
		.color.set , `color'
	}

	if "`fillpattern'" != "" {
		.fill.setstyle, style(`fillpatern')
	}

	if "`intensity'" != "" {
		.intensity.setstyle, style(`intensity')
	}

	class exit `"`options'"'
end


/* -------------------------------------------------------------------------*/
/* 
	Set this shade style to the GDI
*/

program define setgdi


	capture noisily {
		local holdrgb "`.color.setting'"
		.color.setintensity100 0`.intensity.val'
		.color.setgdi , shade
		.color.setrgb `holdrgb'
	}
	
//	.color.setgdi , shade
//	gdi shadelevel = 0`.intensity.val'
	if "`.color.stylename'" == "none" {
		gdi shadepattern = none
	}
	else {
		if "`.fill.setting'" == "" {
			gdi shadepattern = pattern10
		}
		else {
			gdi shadepattern = `.fill.setting'
		}
	}


end


/* -------------------------------------------------------------------------*/
/* 
	Set this shade style to the GDI and reset the pen
*/

program define setgdifull

	.setgdi
	gdi shadechange
end



// ---------------------------------------------------------------------------
// Set this shade to the GDI pen color

program define setgdipen

	syntax [ , LINewidth(string) noINTensity ]

	if ("`linewidth'" != "")  gdi gm_linewidth = `linewidth'

	if "`intensity'" == "" {
		.color.setgdi , line
	}
	else {
		capture noisily {
			local holdrgb "`.color.setting'"
			.color.setintensity100 0`.intensity.val'
			.color.setgdi , line
			.color.setrgb `holdrgb'
		}
	}
end


/* -------------------------------------------------------------------------*/
/* 
	Set this shade style to the GDI and reset the pen
*/

program define setgdipenfull

	.setgdipen `0'
	gdi penchange
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -