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

📄 cd.htm

📁 lgxgrid控件lgxgrid控件lgxgrid控件lgxgrid控件lgxgrid控件lgxgrid控件
💻 HTM
字号:
<HTML>
<HEAD>
<META name=VI60_defaultClientScript content=VBScript>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<TITLE></TITLE>
<style>
div {
	FONT-SIZE: 9pt; FONT-FAMILY: 宋体
}
</style>

<SCRIPT LANGUAGE=vbscript>
<!--
on error resume next
dim lgxgrid1
set lgxgrid1=window.parent.lgxgrid1
dim cd
set cd=window.parent.cd

sub cdh()
  cd.style.visibility ="hidden"
  cd1.style.backgroundColor ="#d4d2c9"
  cd1.style.color ="#000000"
  p1.src ="h2.bmp"
  cd2.style.backgroundColor ="#d4d2c9"
  cd2.style.color ="#000000"
  cd3.style.backgroundColor ="#d4d2c9"
  cd3.style.color ="#000000"
  p3.src ="p2.bmp"
  cd4.style.backgroundColor ="#d4d2c9"
  cd4.style.color ="#000000"
  cd5.style.backgroundColor ="#d4d2c9"
  cd5.style.color ="#000000"
  cd6.style.backgroundColor ="#d4d2c9"
  cd6.style.color ="#000000"
  cd7.style.backgroundColor ="#d4d2c9"
  cd7.style.color ="#000000"
end sub

sub pr() '打印设置
  cdh
  lgxgrid1.SetPrintShow
end sub

sub hb() '合并单元格
  cdh
  lgxgrid1.GridUnite lgxgrid1.Nrow,lgxgrid1.Nlist,lgxgrid1.NrowEnd,lgxgrid1.NlistEnd,0
end sub

sub cf()'拆分单元格
  cdh
  lgxgrid1.SplitGrid lgxgrid1.Nrow ,lgxgrid1.Nlist 
end sub

sub sdq()'上对齐
  cdh
  lgxgrid1.SetTAlignment lgxgrid1.Nrow ,lgxgrid1.Nlist ,2
end sub

sub xdq()'下对齐
  cdh
  lgxgrid1.SetTAlignment lgxgrid1.Nrow ,lgxgrid1.Nlist ,1
end sub

sub zdq()'左对齐
  cdh
  lgxgrid1.SetLAlignment lgxgrid1.Nrow ,lgxgrid1.Nlist ,1
end sub

sub rdq()'右对齐
  cdh
  lgxgrid1.SetLAlignment lgxgrid1.Nrow ,lgxgrid1.Nlist ,2
end sub

-->
</SCRIPT>

<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--
Sub document_onmousemove

if window.event.srcElement.id ="cd1" or window.event.srcElement.id ="cdt1" or window.event.srcElement.id ="p1" then
 if cd1.style.backgroundColor <>"#191970" then
    cd1.style.backgroundColor ="#191970"
    cd1.style.color ="#ffffff"
   if mid(p1.src,len(p1.src)-5)<>"h1.bmp" then 
     p1.src ="h1.bmp"
   end if 
 end if  
else
  if cd1.style.backgroundColor <>"#d4d2c9" then
   cd1.style.backgroundColor ="#d4d2c9"
   cd1.style.color ="#000000"
   if mid(p1.src,len(p1.src)-5)<>"h2.bmp" then 
     p1.src ="h2.bmp"
   end if
  end if  
end if

if window.event.srcElement.id ="cd2" or window.event.srcElement.id ="cdt2" then
 if cd2.style.backgroundColor <>"#191970" then
    cd2.style.backgroundColor ="#191970"
    cd2.style.color ="#ffffff"
 end if   
else
  if cd2.style.backgroundColor <>"#d4d2c9" then
   cd2.style.backgroundColor ="#d4d2c9"
   cd2.style.color ="#000000"
  end if  
end if


if window.event.srcElement.id ="cd3" or window.event.srcElement.id ="cdt3" or window.event.srcElement.id ="p" then
 if cd3.style.backgroundColor <>"#191970" then
    cd3.style.backgroundColor ="#191970"
    cd3.style.color ="#ffffff"
   if mid(p3.src,len(p3.src)-5)<>"p1.bmp" then 
     p3.src ="p1.bmp"
   end if
 end if   
else
  if cd3.style.backgroundColor <>"#d4d2c9" then
   cd3.style.backgroundColor ="#d4d2c9"
   cd3.style.color ="#000000"
   if mid(p3.src,len(p3.src)-5)<>"p2.bmp" then p3.src ="p2.bmp"
  end if  
end if

if window.event.srcElement.id ="cd4" or window.event.srcElement.id ="cdt4" then
 if cd4.style.backgroundColor <>"#191970" then
    cd4.style.backgroundColor ="#191970"
    cd4.style.color ="#ffffff"
 end if   
else
  if cd4.style.backgroundColor <>"#d4d2c9" then
   cd4.style.backgroundColor ="#d4d2c9"
   cd4.style.color ="#000000"
  end if  
end if

if window.event.srcElement.id ="cd5" or window.event.srcElement.id ="cdt5" then
 if cd5.style.backgroundColor <>"#191970" then
    cd5.style.backgroundColor ="#191970"
    cd5.style.color ="#ffffff"
 end if   
else
  if cd5.style.backgroundColor <>"#d4d2c9" then
   cd5.style.backgroundColor ="#d4d2c9"
   cd5.style.color ="#000000"
  end if  
end if

if window.event.srcElement.id ="cd6" or window.event.srcElement.id ="cdt6" then
 if cd6.style.backgroundColor <>"#191970" then
    cd6.style.backgroundColor ="#191970"
    cd6.style.color ="#ffffff"
 end if   
else
  if cd6.style.backgroundColor <>"#d4d2c9" then
   cd6.style.backgroundColor ="#d4d2c9"
   cd6.style.color ="#000000"
  end if  
end if

if window.event.srcElement.id ="cd7" or window.event.srcElement.id ="cdt7" then
 if cd7.style.backgroundColor <>"#191970" then
    cd7.style.backgroundColor ="#191970"
    cd7.style.color ="#ffffff"
 end if   
else
  if cd7.style.backgroundColor <>"#d4d2c9" then
   cd7.style.backgroundColor ="#d4d2c9"
   cd7.style.color ="#000000"
  end if  
end if

End Sub


-->
</SCRIPT>
</HEAD>
<BODY>
<div style="BORDER-RIGHT: #2b2b2a 1px solid; BORDER-TOP: #f0f0f1 1px solid; LEFT: 0px; BORDER-LEFT: #f0f0f1 1px solid; WIDTH: 99px; BORDER-BOTTOM: #2b2b2a 1px solid; POSITION: absolute; TOP: 0px; HEIGHT: 150px; BACKGROUND-COLOR: #d4d2c9" id=cd0>

<div style="LEFT: 2px; WIDTH: 93px; CURSOR: hand; POSITION: absolute; TOP: 6px; HEIGHT: 18px" onclick=hb id=cd1>
<IMG id=p1 style="POSITION: absolute" src="h2.bmp" ><font style="LEFT:  22px; WIDTH: 71px; 
CURSOR: hand; POSITION: absolute; TOP: 3px; HEIGHT: 28px" id=cdt1>合并单元格</font></div>

<DIV id=cd2 
style="LEFT: 2px; WIDTH: 93px; CURSOR: hand; 
POSITION: absolute; TOP: 25px; HEIGHT: 18px" onclick=cf><font style="LEFT:  22px; WIDTH: 71px; 
CURSOR: hand; POSITION: absolute; TOP: 3px; HEIGHT: 28px" id=cdt2>
拆分单元格</font></DIV>

<DIV id=cdl1 
style="LEFT: 2px; WIDTH: 93px; CURSOR: hand; 
POSITION: absolute; TOP: 41px; HEIGHT: 18px" ><IMG height=5 src="cdl.bmp" width=92></DIV>


<DIV id=cd3 
style="LEFT: 2px; WIDTH: 93px; CURSOR: hand; 
POSITION: absolute; TOP: 45px; HEIGHT: 18px" onclick=pr><IMG id=p3 style="POSITION: absolute" src="p2.bmp" ><font style="LEFT:  22px; CURSOR: hand; 
POSITION: absolute; TOP: 4px" id=cdt3>
打印设置</font></DIV>

<DIV id=cdl2 
style="LEFT: 2px; WIDTH: 93px; CURSOR: hand; 
POSITION: absolute; TOP: 63px; HEIGHT: 18px"><IMG height=5 src="cdl.bmp" width=92></DIV>


<DIV id=cd4 
style="LEFT: 2px; WIDTH: 93px; CURSOR: hand; 
POSITION: absolute; TOP: 67px; HEIGHT: 18px" onclick=sdq><font style="LEFT:  22px; CURSOR: hand; 
POSITION: absolute; TOP: 4px" id=cdt4>
靠上对齐</font></DIV>

<DIV id=cd5 
style="LEFT: 2px; WIDTH: 93px; CURSOR: hand; 
POSITION: absolute; TOP: 86px; HEIGHT: 18px" onclick=xdq><font style="LEFT:  22px; CURSOR: hand; 
POSITION: absolute; TOP: 4px" id=cdt5>
靠下对齐</font></DIV>

<DIV id=cd6
 style     
      ="LEFT: 2px; WIDTH: 93px; CURSOR: hand; POSITION: absolute; TOP: 105px; HEIGHT: 18px" onclick=zdq><font style="LEFT:  22px; CURSOR: hand; 
POSITION: absolute; TOP: 4px" id=cdt6>
靠左对齐</font></DIV>

<DIV id=cd7 
style="LEFT: 2px; WIDTH: 93px; CURSOR: hand; 
POSITION: absolute; TOP: 125px; HEIGHT: 18px" onclick=rdq><font style="LEFT:  22px; CURSOR: hand; 
POSITION: absolute; TOP: 4px" id=cdt7>
靠右对齐</font></DIV>

</div>
</BODY>
</HTML>

⌨️ 快捷键说明

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