.TH CheckBox 3w "19 July 91" "Version 3.0" "OLIT Widget Set" .SH "NAME" CheckBox \- check box widget .SH "SYNOPSIS" . \" phony BP macro for PostScript using -mex's CP . \" . \" made changes to: . \" 1) prevent $2 vertical space needed from forcing a page break . \" this is necessary because large apparent offsets are used . \" when invoking the macro eg, .BP ATT_PS_file 6i -1i . \" This is necessary to get the ATT PS figures onto the page, . \" Following the .BP macro, there is a .sp -3.5i to move back . \" up the page. A page break happens if the test is performed. . \" So I fiddled it. . \" . \" removed test that forces page break . \" .if (\\n(tYu-\\$8+1v)>(\\n(.tu-\\nz) \{ . \" . \" added $8 to do a .sp -$8 back/upward space . \" . \" move ^B bottom-of-page-trap off page temporarily . \" to print diagram, then restore it . \" 1a) Sept 90 renamed to .CP . \" . \" . \" 2) added other -mex functions . \" .FN - figure numbers . \" .TN - table numbers . \" .IX - index macro . \" . \" . \" 3) added .TH from mansun to get header name right . \" . \" 4) added J series macros . \" JL bold if nroff, listing if troff . \" JR roman font . \" JS = JL . \" JE = JR . \" . \" . \" . \" obsoleted by putting them in a tbl with no box . \" 5a) added nr Ji - indent for args in function prototypes . \" 5b) JF macro to align args to function prototypes . \" \\$1 = type . \" \\$2 = name . \" \\$3 = allow enough space for a string this long . \" if \\n(Jf string variable is defined, it will . \" be used if $3 is not present . \" . \" 6) Jq macro to put a box around items at the beginning . \" of an X resource in the widgets . \" syntax: .Jq \fIclass\fP:XtCAlignment \ . \" \fItype\fP:OlDefine \fIdefault\fP:OL_CENTER \fIaccess\fP:SGI . \" . \" uses nr jq . \" . \" . \" . \" .de Jo .mk jo \\$1\h'2.0i-\w'\\$1'u'\ \\$2\h'1.5i-\w'\\$2'u'\ \\$3\h'1.5i-\w'\\$3'u'\\$4 .sp -.5 .nf .\" original - for reference .\"\h'-.5n'\L'|\\nzu-1'\l'\\n(.lu+1n\(ul'\L'-|\\nzu+1'\l'|0u-.5n\(ul' \h'-.5n'\L'|\\n(jou-1'\l'\\n(.lu-1.25i+1n\(ul'\L'-|\\n(jou+1'\l'|0u-.5n\(ul' .fi .. .de Jp .mk jp \\fI\\$1\\fP:\0\\fL\\$2\\fP\h'1.5i-\w'\\fL\\$2\\fP'u'\ \\fI\\$3\\fP:\0\\fL\\$4\\fP\h'1.25i-\w'\\fL\\$4\\fP'u'\ \\fI\\$5\\fP:\0\\fL\\$6\\fP\h'1.0i-\w'\\fL\\$6\\fP'u'\ \\fI\\$7\\fP:\0\\fL\\$8\\fP\h'1.0i-\w'\\fL\\$8\\fP'u' .sp -.5 .nf \h'-.5n'\L'|\\n(jpu-1'\l'\\n(.lu-1.25i+1n\(ul'\L'-|\\n(jpu+1'\l'|0u-.5n\(ul' .fi .. .de Jp .mk jq \\fIclass\\fP:\0\\&\\fL\\$1\\fP\h'1.5i-\w'\\fL\\$1\\fP'u'\ \\fItype\\fP:\0\\&\\fL\\$2\\fP\h'1.25i-\w'\\fL\\$2\\fP'u'\ \\fIdefault\\fP:\0\\&\\fL\\$3\\fP\h'1.0i-\w'\\fL\\$3\\fP'u'\ \h'|5i'\\fIaccess\\fP:\0\\&\\fL\\$4\\fP\h'1.0i-\w'\\fL\\$4\\fP'u' .sp -.5 .nf \h'-.5n'\L'|\\n(jqu-1'\l'\\n(.lu-1.25i+1n\(ul'\L'-|\\n(jqu+1'\l'|0u-.5n\(ul' .fi .. .de Jq .if n class: \\$1\\t\tt\ttype: \\$2 .if n .br .if n default: \\$3\\t\tt\taccess: \\$4 .if t \{\ .nr jw \w'\\fL\\$1\\fP' .nr jw \\n(jw+\w'\\fL\\$2\\fP' .nr jw \\n(jw+\w'\\fL\\$3\\fP' .br .mk jq .ie \\n(jw>1300 \{\ \\fIclass\\fP:\|\\&\\fL\\$1\0\fItype\\fP:\|\\&\\fL\\$2\0\ \\fIdefault\\fP:\|\\&\\fL\\$3\\fP\ \h'|4.9i'\\fIaccess\\fP:\|\|\\&\\fL\\$4\\fP\h'0.8i-\w'\\fL\\$4\\fP'u'\ \} .el \{\ \\fIclass\\fP:\|\\&\\fL\\$1\\fP\h'1.5i-\w'\\fL\\$1\\fP'u'\ \\fItype\\fP:\|\\&\\fL\\$2\\fP\h'1.25i-\w'\\fL\\$2\\fP'u'\ \\fIdefault\\fP:\|\\&\\fL\\$3\\fP\h'1.0i-\w'\\fL\\$3\\fP'u'\ \h'|5i'\\fIaccess\\fP:\|\\&\\fL\\$4\\fP\h'0.8i-\w'\\fL\\$4\\fP'u'\ \} .sp -.5 .nf \h'-.5n'\L'|\\n(jqu-1'\l'\\n(.lu-1.25i+1n\(ul'\L'-|\\n(jqu+1'\l'|0u-.5n\(ul' .sp -1 \} .fi .. .nr Ji 16 . \" .de JF .ie !"\\$3"" .nr Jf \w'\\$3' .el .nr Jf \w'\\*(Jf' \\$1 \h'.25i+\\n(Jfu-\w'\\$1'u'\\$2 .br .. . \" . \" . \" I - italic font .de I .nr PQ \\n(.f .if t .ft 2 .ie \\$1 .if n .ul 999 .el .if n .ul 1 .if t .if !\\$1 \{\ . ie '\\*(.T'psc' \&\f\\n(PQ\\$3\fI\\$1\f\\n(PQ\\$2 . el \&\f\\n(PQ\\$3\fI\\$1\|\f\\n(PQ\\$2 .\} .if n .if \\n(.$=1 \&\\$1 .if n .if \\n(.$>2 \&\\$3\c .if n .if \\n(.$>1 \&\\$1\c .if n .if \\n(.$>1 \&\\$2 .. . \" B - bold font .de B .nr PQ \\n(.f .if t .ft 3 .ie \\$1 .if n .ul 999 .el .if n .ul 1 .if t .if !\\$1 \&\f\\n(PQ\\$3\fB\\$1\f\\n(PQ\\$2 .if n .if \\n(.$=1 \&\\$1 .if n .if \\n(.$>2 \&\\$3\c .if n .if \\n(.$>1 \&\\$1\c .if n .if \\n(.$>1 \&\\$2 .. . \" R - Roman font .de R .if n .ul 0 .ft 1 .. . \" L - listing font .de L .nr PQ \\n(.f .ie \\$1 .if n .ul 999 .el .if n .ul 1 .if t .if !\\$1 \&\f\\n(PQ\\$3\fL\\$1\f\\n(PQ\\$2 .if n .if \\n(.$=1 \&\\$1 .if n .if \\n(.$>2 \&\\$3\c .if n .if \\n(.$>1 \&\\$1\c .if n .if \\n(.$>1 \&\\$2 .. . \" LB - bold listing font .de LB .nr PQ \\n(.f .ie \\$1 .if n .ul 999 .el .if n .ul 1 .if t .if !\\$1 \&\f\\n(PQ\\$3\f(LB\\$1\f\\n(PQ\\$2 .if n .if \\n(.$=1 \&\\$1 .if n .if \\n(.$>2 \&\\$3\c .if n .if \\n(.$>1 \&\\$1\c .if n .if \\n(.$>1 \&\\$2 .. . \" LX - listing font with index . \" . \" - jl - invented these . \" .de Lx .L "\\$1" "\\$2" "\\$3" .IX "\\$1" "" "\fL\\$1\f1" .. .de Ix .I "\\$1" "\\$2" "\\$3" .IX "\\$1" "" "\fL\\$1\f1" .. .de Bx .I "\\$1" "\\$2" "\\$3" .IX "\\$1" "" "\fL\\$1\f1" .. . \" . \" - jl - invented these . \" .de JL .if t .if \\n(.$=0 .ft L .if t .if \\n(.$>0 .L "\\$1" "\\$2" "\\$3" .if n .if \\n(.$=0 .ft B .if n .if \\n(.$>0 .I "\\$1" "\\$2" "\\$3" .. .de Jx .ie t .Lx "\\$1" "\\$2" "\\$3" .el .Bx "\\$1" "\\$2" "\\$3" .. .de JX .ie t .Lx "\\$1" "\\$2" "\\$3" .el .Bx "\\$1" "\\$2" "\\$3" .. .de JR .ft 1 .. .de JS .JL .nf .. .de JE .JR .fi .. .\" .\" start FN/TN related .\" .\" end FN/TN .\" . \" TF - print TN or FN .de TF .nr TF \\n(.f .nr TX \\n(.s . \" - jl force it to full page, rather than strip out stuff .nr PL 3 .if \\n(PL=1 \{\ . ta \\n(GIu-\\n(GUuR \\n(GIu . ti 0 \&\s11\\*(tS\t\fI\&\\$1\f\\n(TF\\s\\n(TX .\} .if \\n(PL=2 \{\ . ta \\n(LLuR \\n(LLu+\\n(GUu . nf \&\s11\fI\&\\$1\f\\n(TF\t\&\\*(tS\\s\\n(TX . fi .\} .if \\n(PL=3 \{\ . ta 2iR 2.25i . ti 0 \&\s11\0\0\\*(tS\t\fI\&\\$1\f\\n(TF\\s\\n(TX .\} .. . \" TN - table name . \" changed \\n(PN to \\n% .de TN .nr T1 +1 .ll \\n(LLu .ds tH \\$1 . \" - jl only number, not chapter . \".ds tS Table \\n(H1-\\n(T1 .ds tS Table \\n(T1 .if \\nM>1 .ds tS Table \\n(T1 .if !\\n(IK \{\ . if \\n(nlu>\\n(L#u .sp 1v . if \\n(B#>0 .if \\n(B#u>=\\n(nlu .sp |\\n(B#u+2v . nr B# 0 .\} .if \\n(IK \{\ . sp 1v . ie \\n(K# \{\ . sp |\\n(K#u+2v . nr K# 0 \} . el \{\ . if \\n(B#u>=\\n(nlu .sp (\\n(B#u-\\n(nlu+1v)u . nr B# 0 \} .\} .ne 2i .TF "\\*(tH" .if \\nF .if \\n(IK \!.tm .CE T 1 "\\$1" \\\\n% \\n(H1 \\n(T1 .if \\nF .if !\\n(IK .tm .CE T 1 "\\$1" \\n% \\n(H1 \\n(T1 .. . \" TC - table continued (multi-page) .de TC .if !\\n(tC \{\ . as tH \(em Continued . nr tC 1 .\} .TF "\\*(tH" .sp \\n(PDu .. . \" FN - figure name .de FN .nr F1 +1 .ll \\n(LLu . \" - jl only number, not chapter too . \".ds tS Figure \\n(H1-\\n(F1 .ds tS Figure \\n(F1 .if \\nM>1 .ds tS Figure \\n(F1 .sp 1v .TF "\\$1" .if \\nF .if \\n(IK \!.tm .CE F 1 "\\$1" \\\\n% \\n(H1 \\n(F1 .if \\nF .if !\\n(IK .tm .CE F 1 "\\$1" \\n% \\n(H1 \\n(F1 .. .\" .\" start IX index .\" . \" IX - Make an Index Entry . \" $1 and $2: primary and secondary collating terms . \" $3 and $4: primary and secondary printing terms . \" $5 and $6: PAGE specifications or PRINT field . \".de IX . \" - jl PN to % . \".if \\nF .if !\\n(IK .tm .IE\tENTRY\t\\$1\t\\$2\t\\$3\t\\$4\t\\$5\t\\$6\t\\n% . \".if \\nF .if \\n(IK \!.tm .IE\tENTRY\t\\$1\t\\$2\t\\$3\t\\$4\t\\$5\t\\$6\t\\\\n% .. .\" end IX index .\" .\" .\" .\" .ig . \" . \" - jl added from -mansun 0 . # title heading .de TH .PD .DT .nr F1 0 .if n .nr IN .5i .if t .nr IN .5i .ll 7i .nr LL \\n(.l .ds ]H \\$1\|(\|\\$2\|) .ds ]D Misc. Reference Manual Pages . \" added this one - removed the rest .if '\\$2'3W' .ds ]D OPEN LOOK Widgets .if !'\\$4'' .ds ]W \\$4 .if !'\\$5'' .ds ]D \\$5 .ds ]D 3W .wh 0 }H .wh -.8i }F .em }M .if !\\n(nl .if !\\nP .nr P 1 .if !\\n(nl .if \\nP .pn \\nP .if \\nA .if \\nP>=\\nA \{\ . ds PN \\nP . pn 1 . af % a . nr A 0 .\} .if !\\n(nl .if \\nP .nr P 0 .if \\nC .if \\n(nl .bp .if !\\nC .if \\n(nl .bp 1 .ds ]L modified \\$3 .nr ]L \\$3 .if \\n(]L=0 .rm ]L .}E .DT .nr )I .5i .nr )R 1i .mk ka .if !'\\n(ka'-1' .bp .if \\nF .tm .CE MAN-PAGE 1 \\$1(\\$2) \\n% .ev 1 .if n .tl \\*(]W\\*(]D\\*(]H .ev .. . \" careful - only 1 return at bottom .JL .nf #include #include #include #include . . . .br .ds Jf Cardinal .JF Widget "\fImy_checkbox\fP, \fImy_parent\fP;" .JF String \fImy_name\fP; .JF ArgList \fIargs\fP; .JF Cardinal \fInum_args\fP; .fi .I my_checkbox = XtCreate( .I my_name , checkBoxWidgetClass, .br .in \n(Ji .I my_parent , .I args , .I num_args ); .in .JR .fi .SH "DESCRIPTION" .IX "CheckBox" "" \fLCheckBox\fP "" PAGE MAJOR .IX "check box" .IX "widget" "check box" .LP .# .# .SS "Components" .IX "components" "CheckBox" "components" "\fLCheckBox\fP" .LP The .JL "CheckBox" widget implements one of the OPEN LOOK button widgets. It consists of a Label next to a CheckBox; the CheckBox will have a Check Mark, if selected. .LP .FN "CheckBox Widget" Check_Box_Widget_fig .IX "check box widget" "" "check box widget" .CP PSART/CheckBox.ps .LP .XR The diagram \fI@TitleOf(Check_Boxes_fig)\fP shows several buttons, in unselected and selected, as well as normal and dim states. .LP .FN "Check Boxes" Check_Boxes_fig .IX "check boxes" "" "check boxes" .CP PSART/CheckBox.many.ps .# .# .SS "Typical Use" .IX "typical use" "CheckBoxes" "typical use" "\fLCheckBoxes\fP" .LP Check Boxes may be used alone, but are usually used in the .JL "Nonexclusives" composite widget, where they are used to implement a several-of-many selection. Making the .JL "CheckBox" widget a child of a different composite widget will not produce an error, but proper behavior is not guaranteed. .# .# .SS "Operations" .IX "operations" "CheckBox" "operations" "\fLCheckBox\fP" .LP A .JL "CheckBox" widget has two states: "set" and "not set". When set, the Check Mark is visible. Toggling this state alternates a resource .JL XtNset ) ( between logical .I true and .I false and starts an action associated with the check box. Clicking SELECT on a check box toggles the state associated with it. Pressing SELECT, or moving the pointer into the check box while SELECT is pressed, adds or removes the Check Mark to reflect the state the check box would be in if SELECT was released. Releasing SELECT toggles the state. Moving the pointer off the check box before releasing SELECT restores the original Check Box, but does not toggle the state. Clicking or pressing MENU does not do anything in the .JL "CheckBox" widget; the event is passed up to an ancestor widget. .# .# .SS "Bounds on SELECT" .LP Only the Check Box and Check Mark respond to SELECT, .XR as shown in the diagram \fI@TitleOf(Active_Region_for_a_Check_Box_fig)\fP. .FN "Active Region for a Check Box" Active_Region_for_a_Check_Box_fig .IX "active region for a check box" "" "active region for a check box" .CP PSART/CheckBox.active.ps .# .# .SS "Coloration" .IX "coloration" "CheckBox" "coloration" "\fLCheckBox\fP" .LP On a monochrome display, the .JL CheckBox widget indicates that it has input focus by inverting the foreground color and parent's background colors within the bounding box of the widget. .LP On color displays, when the .JL CheckBox widget receives the input focus, the background color within the bounding box of the widget is changed to the input focus color set in the .JL XtNinputFocusColor resource. When the CheckBox widget loses the input focus, the background color reverts to its parent's .JL XtNbackground color or .JL XtNbackgroundPixmap . .LP .B EXCEPTIONS: .IP \(em 1.5P If the input focus color is the same as the parent's background color, then the .JL CheckBox widget inverts the foreground and background colors when it has input focus. .IP \(em 1.5P If the input focus color is the same as the font color or foreground color, then the .JL CheckBox widget inverts the foreground and background colors when it has input focus. .LP .XR The diagram \fI@TitleOf(Check_Box_Coloration_fig)\fP illustrates the resources that affect the coloration of the .JL "CheckBox" widget. .FN "Check Box Coloration" Check_Box_Coloration_fig .IX "check box coloration" "" "check box coloration" .CP PSART/CheckBox.color.ps 1.25i .# .# .SS "Keyboard Traversal" The default value of the .JL XtNtraversalOn resource is .JL TRUE . .LP The .JL CheckBox widget responds to the following keyboard navigation keys: .IP \(em 1.5P NEXT_FIELD moves to the next traversable widget in the window .IP \(em 1.5P PREV_FIELD moves to the previous traversable widget in the window .IP \(em 1.5P MOVEUP moves to the .JL CheckBox above the current widget in the Nonexclusives composite .IP \(em 1.5P MOVEDOWN moves to the .JL CheckBox below the current widget in the Nonexclusives composite .IP \(em 1.5P MOVELEFT moves to the .JL CheckBox to the left of the current widget in the Nonexclusives composite .IP \(em 1.5P MOVERIGHT moves to the .JL CheckBox to the right of the current widget in the Nonexclusives composite .IP \(em 1.5P NEXTWINDOW moves to the next window in the application .IP \(em 1.5P PREVWINDOW moves to the previous window in the application .IP \(em 1.5P NEXTAPP moves to the first window in the next application .IP \(em 1.5P PREVAPP moves to the first window in the previous application .sp .LP .nf .nf CheckBox Widget Activation Types _ Activation Type Expected Results = OL_SELECTKEY Update its visual to callback list .fi .# .# .SS "Display of Keyboard Mnemonic" .IX "keyboard mnemonic display" "CheckBox" "keyboard mnemonic display" "\fLCheckBox\fP" .LP The .JL CheckBox widget displays the mnemonic accelerator as part of its label. If the mnemonic character is in the label, then that character is highlighted according to the value returned by .JL OlQueryMnemonicDisplay() . If the mnemonic character is not in the label, it is displayed to the right of the label in parentheses and highlighted according to the value returned by .JL OlQueryMnemonicDisplay() . .LP If truncation is necessary, the mnemonic displayed in parentheses is truncated as a unit. .LP .# .# .SS "Display of Keyboard Accelerators" .IX "keyboard accelerator display" "CheckBox" "keyboard accelerator display" "\fLCheckBox\fP" .LP The .JL CheckBox widget displays the keyboard accelerator as part of its label. The string in the .JL XtNacceleratorText resource is displayed to the right of the label (or mnemonic) separated by at least one space. The acceleratorText is right justified. .LP If truncation is necessary, the accelerator is truncated as a unit. The accelerator is truncated before the mnemonic or the label. .SH "RESOURCES" .TN "CheckBox Resource Set" Check_Box_Resource_Set_tbl .IX "CheckBox resource set" "" "\fLCheckBox\fP resource set" .nf .nf CheckBox Resource Set Name Type Default Access XtNaccelerator String NULL SGI XtNacceleratorText String Dynamic SGI XtNancestorSensitive Boolean TRUE GO XtNconsumeEvent XtCallbackList NULL SGI XtNdepth int (parent's) GI XtNdestroyCallback XtCallbackList NULL SI XtNdim Boolean FALSE SGI XtNfont XFontStruct* (OPEN LOOK XtNfontColor Pixel XtDefaultForeground SGI XtNforeground Pixel XtDefaultForeground SGI XtNheight Dimension (calculated) SGI XtNinputFocusColor Pixel Red SGI XtNlabel String (class name) XtNlabelImage XImage* (class name) XtNlabelJustify OlDefine OL_LEFT SGI XtNlabelTile Boolean FALSE SGI XtNlabelType OlDefine OL_STRING SGI XtNmappedWhenManaged Boolean TRUE SGI XtNmnemonic unsigned char NULL XtNposition OlDefine OL_LEFT SGI XtNrecomputeSize Boolean TRUE SGI XtNreferenceName String NULL SGI XtNreferenceWidget Widget NULL SGI XtNscale int 12 SGI XtNselect XtCallbackList NULL SI XtNsensitive Boolean TRUE GIO XtNset Boolean TRUE SGI XtNtraversalOn Boolean TRUE SGI XtNunselect XtCallbackList NULL SI XtNuserData XtPointer NULL SGI XtNwidth Dimension (calculated) SGI XtNx Position 0 SGI XtNy Position 0 SGI .fi .br Access: S = XtSetValues G = XtGetValues .br I = init time O = other access .br .br \(dg see .BR resources (3W) .br .SS "XtNdim" .IX "XtNdim" "" "\fLXtNdim\fP" .Jq XtCDim Boolean FALSE SGI . \" - jl ? .HP Action: determines whether border of .JL CheckBox shows state of underlying objects .HP Values: .JL TRUE , .JL FALSE. .LP If this resource is .JL TRUE , the check box border is dimmed to show that the check box represents the state of one or more of several objects that, as a group, are in different states. .SS "XtNfont" .IX "XtNfont" "" "\fLXtNfont\fP" .Jq XtCFont XFontStruct* (OPEN\0LOOK\0font) SI .HP Action: identifies the font to be used to display the label.e .HP Values: any valid return from .Jx "XLoadQueryFont()" .LP The default is chosen to match the scale and screen resolution. The default value points to a cached font structure; an application should not expect to get this value with a call to .Jx XTGetValues() and use it reliably thereafter. .SS "XtNfontColor" .IX "XtNfontColor" "" "\fLXtNfontColor\fP" .Jq XtCFontColor Pixel Black SGI .HP Action: specifies the font color. .HP Values: any pixel value valid for the current display, or .br any name from the .Jx rgb.txt file .LP If not set, the color from the .Jx "XtNforeground" resource, if available, is used for the font. . \" - jl workspace manager .SS "XtNforeground" .IX "XtNforeground" "" "\fLXtNforeground\fP" .Jq XtCForeground Pixel Black SGI .HP Action: defines the foreground color for the widget. . \" - jl workspace manager .SS "XtNlabel" .IX "XtNlabel" "" "\fLXtNlabel\fP" .Jq XtCLabel String (class\0name) SGI .HP Action: points to the text for the label. .LP This resource is ignored if the .Jx "XtNlabelType" resource has the value .Jx "OL_IMAGE" . .SS "XtNlabelImage" .IX "XtNlabelImage" "" "\fLXtNlabelImage\fP" .Jq XtCLabelImage XImage* (class\0name) SGI .HP Action: points to the image for the label of the .JL "CheckBox" widget. .LP This resource is ignored unless the .Jx "XtNlabelType" resource has the value .Jx "OL_IMAGE" . If the image is smaller than the space available for it next to the Check Box, it is centered vertically and either centered or left-justified horizontally depending on the value of the .Jx "XtNlabelJustify" resource. If the image is larger than the space available for it, it is clipped so that it does not stray outside the space. .SS "XtNlabelJustify" .IX "XtNlabelJustify" "" "\fLXtNlabelJustify\fP" .Jq XtCLabelJustify OlDefine OL_LEFT SGI .HP Action: controls justification of label if space available .HP Values: .JL OL_LEFT/"left" , OL_RIGHT/"right" .JR .LP This resource indicates whether the label should be left-justified or right-justified, if the .Jx "XtNwidth" resource gives more space than needed. .LP The label is justified within the space left before or after the .JL CheckBox . .SS "XtNlabelTile" .IX "XtNlabelTile" "" "\fLXtNlabelTile\fP" .Jq XtCLabelTile Boolean FALSE SGI .HP Action: partially controls tiling of the sub-object's background. .LP .HP Values: .JL "TRUE" " \(en" the label area is tiled with the image/pixmap to fill the sub-object's background, if the image/pixmap is smaller than the sub-object's background .sp .3v .JL "FALSE" " \(en" otherwise, the label is placed as described by the .Jx "XtNlabelImage" resource. .LP This resource augments the .Jx "XtNlabelImage" and .Jx "XtNlabelPixmap" resources to allow tiling of the sub-object's background. The .Jx "XtNlabelTile" resource is ignored for text labels. .SS "XtNlabelType" .IX "XtNlabelType" "" "\fLXtNlabelType\fP" .Jq XtCLabelType int OL_STRING SGI .HP Action: identifies the form that the Label takes. .HP Values: .JL OL_STRING/"string" , OL_IMAGE/"image" .JR .SS "XtNposition" .IX "XtNposition" "" "\fLXtNposition\fP" .Jq XtCPosition OlDefine OL_LEFT SGI .HP Action: determines on which side of the .JL CheckBox the label is placed. .HP Values: .JL OL_LEFT/"left" , OL_RIGHT/"right" .JR .SS "XtNrecomputeSize" .IX "XtNrecomputeSize" "" "\fLXtNrecomputeSize\fP" .Jq XtCRecomputeSize Boolean TRUE SGI .HP Action: indicates whether the .JL "CheckBox" widget should calculate its size. .RS .HP .JL "TRUE" " \(en" the .JL "CheckBox" widget will do normal size calculations that may cause its geometry to change, and automatically set the .Jx "XtNheight" and .Jx "XtNwidth" resources. .HP .JL "FALSE" " \(en" the .JL "CheckBox" widget will leave its size unchanged; this may cause truncation of the visible image being shown by the .JL "CheckBox" widget if the fixed size is too small, or may cause padding if the fixed size is too large. The location of the padding is determined by the .Jx "XtNlabelJustify" resource. .SS "XtNselect" .IX "XtNselect" "" "\fLXtNselect\fP" .Jq XtCCallback XtCallbackList NULL SI .HP Action: the list of callbacks invoked when the widget is selected. .SS "XtNset" .IX "XtNset" "" "\fLXtNset\fP" .Jq XtCSet Boolean TRUE SGI .HP Action: reflects the current state of the check box. .HP Values: .JL "TRUE" " \(en" the check mark is present. .sp .3v .JL "FALSE" " \(en" the check mark is not present. .SS "XtNunselect" .IX "XtNunselect" "" "\fLXtNunselect\fP" .Jq XtCCallback XtCallbackList NULL SI .HP Action: points to the list of callbacks invoked when toggled into the ``unset'' mode. .LP This resource indicates the callbacks to invoke when the end user toggles the .JL CheckBox into the unset mode, making .JL "XtNset" be .JL "FALSE" . Note that simply setting .JL "XtNset" to .JL "FALSE" with a call to .Jx "XtSetValues" does not issue the .Jx "XtNunselect" callbacks. .SS "CheckBox Appearance" .IX "CheckBox appearance" "" "\fLCheckBox\fP appearance" .LP The .Jx "XtNdim" and .Jx "XtNset" resources can be set independently, .XR as the state table in \f2@TitleOf(Check_Box_Appearance_tbl)\fP shows. .TN "Check Box Appearance with Set/Default/Dim" Check_Box_Appearance_tbl .IX "check box appearance" .ne 2.5i .nf . \" - out .so CheckBox.border.detab .fi .CP PSART/CheckBox.border.ps 1.75i .SS "Label Resource Interactions" .IX "label resource interactions" "CheckBox" "label resource interactions" "\fLCheckBox\fP" The .Jx "XtNwidth" , .Jx "XtNheight" , .Jx "XtNrecomputeSize" , and .Jx "XtNlabelJustify" resources interact to produce a truncated, clipped, centered, left-justified, or right-justified Label and Check Box as shown in .XR the table \f2@TitleOf(Label_and_Check_Box_Appearance_tbl)\fP. .br .ne 3.8i .TN "Label and Check Box Appearance" Label_and_Check_Box_Appearance_tbl .IX "label and check box appearance" "" "label and check box appearance" .nf . \" - out .so CheckBox.label.detab .fi .CP PSART/CheckBox.label.ps 3.25i When the label is left-justified, right-justified, or centered the extra space is filled with the background color of the .JL "CheckBox" widget's parent, as determined by the .Jx "XtNbackground" and .Jx "XtNbackgroundPixmap" resources of the parent. See also the .Jx "XtNlabelTile" resource for how it affects the appearance of a label.