📄 frame.man
字号:
." $Id: Frame.man,v 1.2 1998/12/16 03:21:49 falk Exp $." view with "tbl | nroff -man".".TH "Frame" 3 "December 1998" "Version 1.0" "".SH NAMEFrame.SH DESCRIPTIONThe Frame widget manages one child widget, placing a decorative borderaround it. An optional title may also be specified, which appears alongthe top of the frame..SH CLASSCore => Compound => FrameFrame does not require any specific widget set, and may be combined withany other widget set..SH RESOURCES.ps -2.TScenter box;cBssslB|lB|lB|lBl|l|l|l.FrameName Class Type Default=shadowType ShadowType ShadowType solidshadowWidth ShadowWidth Dimension 2foreground Foreground Pixel XtDefaultForegroundtitle Title Widget NULLjustify Justify XtJustify leftmarginWidth Margin Dimension 0marginHeight Margin Dimension 0allowResize AllowResize Boolean TruebeNiceToColormap BeNiceToColormap Boolean FalsetopShadowContrast TopShadowContrast int 20bottomShadowContrast BottomShadowContrast int 40.TE.ps +2.LPSee the \fBCore\fP and \fBComposite\fP widgets for more resources..SS Descriptions..TP.I ShadowType.ps -2.TSbox;cBscB|cBl|c.Shadow TypesType Best width=BlankRaised 1 or 2Lowered 1 or 2Ridge 2 or 4Groove 2 or 4Plateau 6Trough 6.TE.ps +2.IPFor Motif compatibility, alternate names for ShadowType may specified..ps -2.TSbox;cBscB|cBl|l.Shadow TypesAlternate Type=none blankshadow_out raisedshadow_in loweredshadow_etched_out ridgeshadow_etched_in groove.TE.ps +2.TP.I ShadowWidthWidth of decorative border. For.B Raisedand.B Groovetypes, this should be an even number. For .B Troughand.B Plateautypes, this should be six or more..TP.I ForegroundSpecifies the color used for the border (if solid.).TP.I TitleSpecifies the widget to be used as the frame title. This must beone of the Frame's child widgets. Typically, some sort of labelwidget is used here..TP.I JustifyControls justification of the title. One of.B left, right, centered..TP.I marginWidth, marginHeightSpecifies the margins around the frame's child..TP.I AllowResizeIf True, the frame widget will honor all child resize requests tothe extent possible. If False, the frame widget will refuse all childresize requests..TP.I BeNiceToColormapBoolean. When true, Frame widget allocates fewer colors for itself..TP.I TopShadowContrastThe contrast used for computing the shade of the top shadow color. 0-100..TP.I BottomShadowContrastThe contrast used for computing the shade of the bottom shadow color. 0-100..SH EXAMPLES.LPAdding decorative borders around other widgets which may not havesuch options..IP.nf*frame.shadowType: ridge*frame.shadowWidth: 2*frame.Margin: 2.fi.LPBy setting the shadow type to blank, the Frame widget may be used tocreate a margin around another widget..IP.nf*frame.shadowType: blank*frame.shadowWidth: 0*frame.Margin: 4.fi.LPBy setting the margin to 4, the shadow width to 1, and the shadow typeto Lowered, a command widget may be designated as the "default" choice.This may be toggled on or off by changing the shadow type to blank..IP.nf*applyframe.shadowType: raised*applyframe.shadowWidth: 1*applyframe.Margin: 4*applyframe.Command.label: apply*cancelframe.shadowType: blank*cancelframe.shadowWidth: 1*cancelframe.Margin: 4*cancelframe.Command.label: cancel.fi.LPBy setting the Title resource and using the Frame widget to encloseanother compound widget, the Frame widget may be used to label andgroup together other widgets. For best results, set the shadowWidthto 2 and the shadowType to solid or groove..IP.nf*mainFrame.shadowType: groove*mainFrame.shadowWidth: 2*mainFrame.maintitle.label: Preferences.LPFrames may be nested for more complex effects..IP.nf*frame1.shadowType: ridge*frame2.shadowType: ridge*frame3.shadowType: ridge*frame1.shadowWidth: 2*frame2.shadowWidth: 2*frame3.shadowWidth: 2.SH AUTHOREdward Falk <falk@falconer.vip.best.com>.SH COPYRIGHTCopyright 1998 by Edward A. Falk. This widget may be used freely in anyfree software. Source code is freely distributable provided that my nameis not removed from it.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -