?? 顏色控制.htm
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0055)http://www.scicomput.com/cai/matlab/matlab5/chap212.htm -->
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD><TITLE>顏色控制</TITLE>
<META http-equiv=Content-Type content="text/html; charset=GB2312">
<META content=Word.Document name=ProgId>
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<META content="Microsoft Word 9" name=Originator><LINK
href="./Chap212.files/filelist.xml" rel=File-List><!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>姚海</o:Author>
<o:LastAuthor>multigrid</o:LastAuthor>
<o:Revision>2</o:Revision>
<o:TotalTime>17</o:TotalTime>
<o:LastPrinted>1997-03-26T14:21:00Z</o:LastPrinted>
<o:Created>2002-09-09T12:27:00Z</o:Created>
<o:LastSaved>2002-09-09T12:27:00Z</o:LastSaved>
<o:Pages>20</o:Pages>
<o:Words>4160</o:Words>
<o:Characters>23717</o:Characters>
<o:Lines>197</o:Lines>
<o:Paragraphs>47</o:Paragraphs>
<o:CharactersWithSpaces>29126</o:CharactersWithSpaces>
<o:Version>9.2812</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:PrintFractionalCharacterWidth/>
<w:HideSpellingErrors/>
<w:HideGrammaticalErrors/>
<w:HyphenationZone>0</w:HyphenationZone>
<w:DoNotHyphenateCaps/>
<w:DrawingGridHorizontalSpacing>6 磅</w:DrawingGridHorizontalSpacing>
<w:DrawingGridVerticalSpacing>5.2 磅</w:DrawingGridVerticalSpacing>
<w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
<w:DisplayVerticalDrawingGridEvery>3</w:DisplayVerticalDrawingGridEvery>
<w:DoNotShadeFormData/>
<w:Compatibility>
<w:PrintColBlack/>
<w:ShowBreaksInFrames/>
<w:SuppressSpBfAfterPgBrk/>
<w:SwapBordersFacingPages/>
<w:ConvMailMergeEsc/>
<w:UsePrinterMetrics/>
<w:WW6BorderRules/>
<w:FootnoteLayoutLikeWW8/>
<w:ShapeLayoutLikeWW8/>
<w:AlignTablesRowByRow/>
<w:ForgetLastTabAlignment/>
<w:AutoSpaceLikeWord95/>
<w:NoSpaceRaiseLower/>
<w:LayoutRawTableWidth/>
<w:LayoutTableRowsApart/>
<w:UseFELayout/>
</w:Compatibility>
</w:WordDocument>
</xml><![endif]-->
<STYLE>@font-face {
font-family: 宋體;
}
@font-face {
font-family: 黑體;
}
@font-face {
font-family: @宋體;
}
@font-face {
font-family: @黑體;
}
@font-face {
font-family: 楷體;
}
@font-face {
font-family: @楷體;
}
@page {mso-page-border-surround-header: no; mso-page-border-surround-footer: no; }
@page Section1 {size: 21.0cm 790.95pt; margin: 72.0pt 61.5pt 72.0pt 61.5pt; mso-header-margin: 42.55pt; mso-footer-margin: 49.6pt; mso-paper-source: 0; }
P.MsoNormal {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 15.6pt; FONT-FAMILY: 宋體; TEXT-ALIGN: justify; mso-style-parent: ""; mso-pagination: none; mso-layout-grid-align: none; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"
}
LI.MsoNormal {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 15.6pt; FONT-FAMILY: 宋體; TEXT-ALIGN: justify; mso-style-parent: ""; mso-pagination: none; mso-layout-grid-align: none; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"
}
DIV.MsoNormal {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 15.6pt; FONT-FAMILY: 宋體; TEXT-ALIGN: justify; mso-style-parent: ""; mso-pagination: none; mso-layout-grid-align: none; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"
}
P.2 {
FONT-WEIGHT: bold; TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 14pt; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 15.6pt; FONT-FAMILY: 宋體; TEXT-ALIGN: justify; mso-style-parent: Normal; mso-pagination: none; mso-layout-grid-align: none; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-style-name: 標2; mso-bidi-font-weight: normal
}
LI.2 {
FONT-WEIGHT: bold; TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 14pt; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 15.6pt; FONT-FAMILY: 宋體; TEXT-ALIGN: justify; mso-style-parent: Normal; mso-pagination: none; mso-layout-grid-align: none; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-style-name: 標2; mso-bidi-font-weight: normal
}
DIV.2 {
FONT-WEIGHT: bold; TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 14pt; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 15.6pt; FONT-FAMILY: 宋體; TEXT-ALIGN: justify; mso-style-parent: Normal; mso-pagination: none; mso-layout-grid-align: none; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-style-name: 標2; mso-bidi-font-weight: normal
}
P.Normal {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 17pt; LINE-HEIGHT: 15.6pt; FONT-FAMILY: 宋體; TEXT-ALIGN: justify; mso-style-parent: ""; mso-pagination: none; mso-layout-grid-align: none; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-style-name: Normal
}
LI.Normal {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 17pt; LINE-HEIGHT: 15.6pt; FONT-FAMILY: 宋體; TEXT-ALIGN: justify; mso-style-parent: ""; mso-pagination: none; mso-layout-grid-align: none; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-style-name: Normal
}
DIV.Normal {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 17pt; LINE-HEIGHT: 15.6pt; FONT-FAMILY: 宋體; TEXT-ALIGN: justify; mso-style-parent: ""; mso-pagination: none; mso-layout-grid-align: none; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-style-name: Normal
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=ZH-CN style="tab-interval: 21.25pt">
<DIV class=Section1>
<P class=MsoNormal style="VERTICAL-ALIGN: bottom"><SPAN
style="FONT-FAMILY: 黑體">顏色控制</SPAN><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="VERTICAL-ALIGN: bottom; TEXT-INDENT: 21.3pt"><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'">uimenu</SPAN></B>對象可設置兩個顏色屬性。<SPAN
style="FONT-FAMILY: 'Times New Roman'"> <B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US>' BackGroundColor '
</SPAN></B></SPAN>屬性控制填充菜單<SPAN
style="FONT-FAMILY: 楷體">背景</SPAN>的顏色。缺省值是淺灰。另一顏色屬性為<SPAN
style="FONT-FAMILY: 'Times New Roman'"> <B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US>' ForeGroundColor '
</SPAN></B></SPAN>,它確定菜單項文本的顏色,缺省值是黑色。<SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'"><o:p></o:p></SPAN></P>
<P class=MsoNormal
style="VERTICAL-ALIGN: bottom; TEXT-INDENT: 21.3pt">顏色屬性同樣能很好地用于頂層菜單條和下拉菜單。顏色可以用來表示狀態信息或簡單加上菜單的特
色。例如,挑選<SPAN style="FONT-FAMILY: 楷體">線段</SPAN>顏色。在子菜單中,各菜單項的背景可以填充合適的色彩。<SPAN
lang=EN-US style="FONT-FAMILY: 'Times New Roman'"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="VERTICAL-ALIGN: bottom"><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="VERTICAL-ALIGN: bottom"><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'">>><SPAN
style="mso-spacerun: yes"> </SPAN>Hm_green=uimenu(Hm_color</SPAN>,<SPAN
lang=EN-US style="FONT-FAMILY: 'Times New Roman'"> ' Label ' </SPAN>,<SPAN
lang=EN-US style="FONT-FAMILY: 'Times New Roman'"> ' Green ' </SPAN>,<SPAN
lang=EN-US style="FONT-FAMILY: 'Times New Roman'"> ' BackgroundColor '
</SPAN>,<SPAN lang=EN-US style="FONT-FAMILY: 'Times New Roman'"> ' g '
</SPAN>,<SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'">...<o:p></o:p></SPAN></P>
<P class=MsoNormal style="VERTICAL-ALIGN: bottom"><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'"><SPAN
style="mso-tab-count: 5">
</SPAN><SPAN style="mso-spacerun: yes"> </SPAN>' Callback ' </SPAN>,<SPAN
lang=EN-US style="FONT-FAMILY: 'Times New Roman'"> ' set(Hl_line</SPAN>,<SPAN
lang=EN-US style="FONT-FAMILY: 'Times New Roman'"> ' Color ' </SPAN>,<SPAN
lang=EN-US style="FONT-FAMILY: 'Times New Roman'"> ' g ' ) ' )</SPAN>;<SPAN
lang=EN-US style="FONT-FAMILY: 'Times New Roman'"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="VERTICAL-ALIGN: bottom"><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="VERTICAL-ALIGN: bottom"><SPAN
style="FONT-FAMILY: 黑體">菜單項去能<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="VERTICAL-ALIGN: bottom"><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'"><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="VERTICAL-ALIGN: bottom; TEXT-INDENT: 21.3pt">改變對象<B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'">uimenu</SPAN></B>的 <B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'">' Enable ' </SPAN></B>值或 <B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'">' Visible ' </SPAN></B>屬性可使菜單項暫時去能。 <B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'">' Enable ' </SPAN></B>屬性通常設<SPAN
lang=EN-US><BR>為</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'"><SPAN style="mso-spacerun: yes">
</SPAN>' on ' </SPAN>。</B>當<B style="mso-bidi-font-weight: normal"><SPAN
lang=EN-US style="FONT-FAMILY: 'Times New Roman'"> ' Enable ' </SPAN></B>屬性<SPAN
lang=EN-US style="FONT-FAMILY: 'Times New Roman'"> ' </SPAN>設為<B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'"> ' off '
</SPAN></B>時,標志字符串變灰,菜單項去能。在這種狀態下,菜單項保持可見但不能被選擇。此屬性可用來將不恰當的菜單選擇去能。<SPAN
lang=EN-US style="FONT-FAMILY: 'Times New Roman'"><o:p></o:p></SPAN></P>
<P class=MsoNormal
style="VERTICAL-ALIGN: bottom; TEXT-INDENT: 21.3pt">下面的例子<SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'">(<B
style="mso-bidi-font-weight: normal">mmenu4.m</B>)</SPAN>說明了用兩個菜單項和<B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'"> ' Enable ' </SPAN></B>屬性來設定坐標軸的<B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'"> ' Box ' </SPAN></B>屬性的另一種方法。<SPAN
lang=EN-US style="FONT-FAMILY: 'Times New Roman'"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="VERTICAL-ALIGN: bottom"><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'"><o:p></o:p></SPAN></P>
<P class=MsoNormal
style="MARGIN-LEFT: 42.55pt; VERTICAL-ALIGN: bottom; tab-stops: 35.45pt"><SPAN
lang=EN-US style="FONT-FAMILY: 'Times New Roman'">>><SPAN
style="mso-spacerun: yes"> </SPAN>Hm_top<SPAN
style="mso-spacerun: yes"> </SPAN>=<SPAN style="mso-spacerun: yes">
</SPAN>uimenu( ' Label ' </SPAN>,<SPAN lang=EN-US
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -