1994689c1Smrg<sect1 id="SmeBSB_Object">
2994689c1Smrg<title>SmeBSB Object</title>
3994689c1Smrg<para>
4994689c1Smrg<!-- .LP -->
5994689c1Smrg<!-- .XS -->
6994689c1Smrg<!-- 	SmeBSB Object -->
7994689c1Smrg<!-- .XE -->
85ec34c4cSmrg<indexterm significance="preferred"><primary>SmeBSB object</primary></indexterm>
9994689c1Smrg<literallayout class="monospaced">
10994689c1Smrg<!-- .TA 2.0i -->
11994689c1Smrg<!-- .ta 2.0i -->
12994689c1Smrg<!-- .sp -->
13994689c1SmrgApplication Header file	&lt;X11/Xaw/SmeBSB.h&gt;
145ec34c4cSmrg<indexterm><primary>SmeBSB.h</primary></indexterm>
15994689c1SmrgClass Header file	&lt;X11/Xaw/SmeBSBP.h&gt;
165ec34c4cSmrg<indexterm><primary>SmeBSBP.h</primary></indexterm>
17994689c1SmrgClass		smeBSBObjectClass
185ec34c4cSmrg<indexterm><primary>smeBSBObjectClass</primary></indexterm>
19994689c1SmrgClass Name	SmeBSB
205ec34c4cSmrg<indexterm><primary>SmeBSB object</primary><secondary>class name</secondary></indexterm>
21994689c1SmrgSuperclass	Sme
22994689c1Smrg<!-- .sp -->
23994689c1Smrg</literallayout>
24994689c1Smrg</para>
25994689c1Smrg<para>
26994689c1Smrg<!-- .LP -->
27994689c1SmrgThe SmeBSB object is used to create a menu entry that contains a string,
28994689c1Smrgand optional bitmaps in its left and right margins.  Since each menu
29994689c1Smrgentry is an independent object, the application is able to change the
30994689c1Smrgfont, color, height, and other attributes of the menu entries, on an
31994689c1Smrgentry by entry basis.  The format of the string may either be the encoding
32994689c1Smrgof the 8 bit <function>font</function> utilized, or in a multi-byte encoding for use with a
33994689c1Smrg<function>fontSet</function>.
34994689c1Smrg</para>
35421c997bSmrg<sect2 id='SmeBSB::Resources'>
36994689c1Smrg<title>Resources</title>
375ec34c4cSmrg<indexterm><primary>SmeBSB object</primary><secondary>resources</secondary></indexterm>
38994689c1Smrg<para>
39994689c1Smrg<!-- .LP -->
40994689c1SmrgThe resources associated with the SmeBSB object are defined in this section,
41994689c1Smrgand affect only the single menu entry specified by this object.
42994689c1Smrg<informaltable>
43994689c1Smrg  <tgroup cols='5' align='center'>
44994689c1Smrg  <colspec colname='c1'/>
45994689c1Smrg  <colspec colname='c2'/>
46994689c1Smrg  <colspec colname='c3'/>
47994689c1Smrg  <colspec colname='c4'/>
48994689c1Smrg  <colspec colname='c5'/>
49994689c1Smrg  <thead>
50994689c1Smrg    <row>
51994689c1Smrg      <entry>Name</entry>
52994689c1Smrg      <entry>Class</entry>
53994689c1Smrg      <entry>Type</entry>
54994689c1Smrg      <entry>Notes</entry>
55994689c1Smrg      <entry>Default Value</entry>
56994689c1Smrg    </row>
57994689c1Smrg  </thead>
58994689c1Smrg  <tbody>
59994689c1Smrg    <row>
60994689c1Smrg      <entry>ancestorSensitive</entry>
61994689c1Smrg      <entry>AncestorSensitive</entry>
62994689c1Smrg      <entry>Boolean</entry>
63994689c1Smrg      <entry>D</entry>
64994689c1Smrg      <entry>True</entry>
65994689c1Smrg    </row>
66994689c1Smrg    <row>
67994689c1Smrg      <entry>callback</entry>
68994689c1Smrg      <entry>Callback</entry>
69994689c1Smrg      <entry>Callback</entry>
70994689c1Smrg      <entry></entry>
71994689c1Smrg      <entry>NULL</entry>
72994689c1Smrg    </row>
73994689c1Smrg    <row>
74994689c1Smrg      <entry>destroyCallback</entry>
75994689c1Smrg      <entry>Callback</entry>
76994689c1Smrg      <entry>XtCallbackList</entry>
77994689c1Smrg      <entry></entry>
78994689c1Smrg      <entry>NULL</entry>
79994689c1Smrg    </row>
80994689c1Smrg    <row>
81994689c1Smrg      <entry>font</entry>
82994689c1Smrg      <entry>Font</entry>
83994689c1Smrg      <entry>FontStruct</entry>
84994689c1Smrg      <entry></entry>
85994689c1Smrg      <entry>XtDefaultFont</entry>
86994689c1Smrg    </row>
87994689c1Smrg    <row>
88994689c1Smrg      <entry>fontSet</entry>
89994689c1Smrg      <entry>FontSet</entry>
90994689c1Smrg      <entry>XFontSet</entry>
91994689c1Smrg      <entry></entry>
92994689c1Smrg      <entry>XtDefaultFontSet</entry>
93994689c1Smrg    </row>
94994689c1Smrg    <row>
95994689c1Smrg      <entry>foreground</entry>
96994689c1Smrg      <entry>Foreground</entry>
97994689c1Smrg      <entry>Pixel</entry>
98994689c1Smrg      <entry></entry>
99994689c1Smrg      <entry>XtDefaultForeground</entry>
100994689c1Smrg    </row>
101994689c1Smrg    <row>
102994689c1Smrg      <entry>height</entry>
103994689c1Smrg      <entry>Height</entry>
104994689c1Smrg      <entry>Dimension</entry>
105994689c1Smrg      <entry>A</entry>
106994689c1Smrg      <entry>Font height + <function>vertSpace</function></entry>
107994689c1Smrg    </row>
108994689c1Smrg    <row>
109994689c1Smrg      <entry>international</entry>
110994689c1Smrg      <entry>International</entry>
111994689c1Smrg      <entry>Boolean</entry>
112994689c1Smrg      <entry>C</entry>
113994689c1Smrg      <entry>False</entry>
114994689c1Smrg    </row>
115994689c1Smrg    <row>
116994689c1Smrg      <entry>justify</entry>
117994689c1Smrg      <entry>Justify</entry>
118994689c1Smrg      <entry>Justify</entry>
119994689c1Smrg      <entry></entry>
120994689c1Smrg      <entry>XtjustifyLeft</entry>
121994689c1Smrg    </row>
122994689c1Smrg    <row>
123994689c1Smrg      <entry>label</entry>
124994689c1Smrg      <entry>Label</entry>
125994689c1Smrg      <entry>String</entry>
126994689c1Smrg      <entry></entry>
127994689c1Smrg      <entry>NULL</entry>
128994689c1Smrg    </row>
129994689c1Smrg    <row>
130994689c1Smrg      <entry>leftBitmap</entry>
131994689c1Smrg      <entry>LeftBitmap</entry>
132994689c1Smrg      <entry>Pixmap</entry>
133994689c1Smrg      <entry></entry>
134994689c1Smrg      <entry>XtUnspecifiedPixmap</entry>
135994689c1Smrg    </row>
136994689c1Smrg    <row>
137994689c1Smrg      <entry>leftMargin</entry>
138994689c1Smrg      <entry>leftMargin</entry>
139994689c1Smrg      <entry>Dimension</entry>
140994689c1Smrg      <entry></entry>
141994689c1Smrg      <entry>4</entry>
142994689c1Smrg    </row>
143994689c1Smrg    <row>
144994689c1Smrg      <entry>rightBitmap</entry>
145994689c1Smrg      <entry>RightBitmap</entry>
146994689c1Smrg      <entry>Pixmap</entry>
147994689c1Smrg      <entry></entry>
148994689c1Smrg      <entry>XtUnspecifiedPixmap</entry>
149994689c1Smrg    </row>
150994689c1Smrg    <row>
151994689c1Smrg      <entry>rightMargin</entry>
152994689c1Smrg      <entry>rightMargin</entry>
153994689c1Smrg      <entry>Dimension</entry>
154994689c1Smrg      <entry></entry>
155994689c1Smrg      <entry>4</entry>
156994689c1Smrg    </row>
157994689c1Smrg    <row>
158994689c1Smrg      <entry>sensitive</entry>
159994689c1Smrg      <entry>Sensitive</entry>
160994689c1Smrg      <entry>Boolean</entry>
161994689c1Smrg      <entry></entry>
162994689c1Smrg      <entry>True</entry>
163994689c1Smrg    </row>
164994689c1Smrg    <row>
165994689c1Smrg      <entry>vertSpace</entry>
166994689c1Smrg      <entry>VertSpace</entry>
167994689c1Smrg      <entry>int</entry>
168994689c1Smrg      <entry></entry>
169994689c1Smrg      <entry>25</entry>
170994689c1Smrg    </row>
171994689c1Smrg    <row>
172994689c1Smrg      <entry>width</entry>
173994689c1Smrg      <entry>Width</entry>
174994689c1Smrg      <entry>Dimension</entry>
175994689c1Smrg      <entry>A</entry>
176994689c1Smrg      <entry>TextWidth + margins</entry>
177994689c1Smrg    </row>
178994689c1Smrg  </tbody>
179994689c1Smrg  </tgroup>
180994689c1Smrg</informaltable>
181994689c1Smrg
182994689c1Smrg<!-- .As -->
183994689c1Smrg<variablelist>
184994689c1Smrg  <varlistentry>
185994689c1Smrg    <term>callback</term>
186994689c1Smrg    <listitem>
187994689c1Smrg      <para>
188994689c1SmrgAll callback functions on this list are called when the SimpleMenu
189994689c1Smrg<emphasis remap='I'>notifies</emphasis> this entry that the user has selected it.
190994689c1Smrg      </para>
191994689c1Smrg    </listitem>
192421c997bSmrg  </varlistentry>
193994689c1Smrg  <varlistentry>
194994689c1Smrg    <term>font</term>
195994689c1Smrg    <listitem>
196994689c1Smrg      <para>
197994689c1SmrgThe text font to use when displaying the <function>label</function>, when the
198994689c1Smrg<function>international</function> resource is <function>false</function>.
199994689c1Smrg      </para>
200994689c1Smrg    </listitem>
201994689c1Smrg  </varlistentry>
202994689c1Smrg  <varlistentry>
203994689c1Smrg    <term>fontSet</term>
204994689c1Smrg    <listitem>
205994689c1Smrg      <para>
206994689c1SmrgThe text font set to use when displaying the <function>label</function>, when the
207994689c1Smrg<function>international</function> resource is <function>true</function>.
208994689c1Smrg      </para>
209994689c1Smrg    </listitem>
210994689c1Smrg  </varlistentry>
211994689c1Smrg  <varlistentry>
212994689c1Smrg    <term>foreground</term>
213994689c1Smrg    <listitem>
214994689c1Smrg      <para>
215994689c1SmrgA pixel value which indexes the SimpleMenu's colormap to derive the
216994689c1Smrgforeground color of the menu entry's window.  This color is also
217994689c1Smrgused to render all 1's in the left and right <function>bitmaps</function>.
218994689c1Smrg<!-- .Hw -->
219994689c1SmrgKeep in mind that the SimpleMenu widget will force the width of all
220994689c1Smrgmenu entries to be the width of the longest entry.
221994689c1Smrg<!-- .In -->
222994689c1Smrg      </para>
223994689c1Smrg    </listitem>
224994689c1Smrg  </varlistentry>
225994689c1Smrg  <varlistentry>
226994689c1Smrg    <term>justify</term>
227994689c1Smrg    <listitem>
228994689c1Smrg      <para>
229994689c1Smrg<!-- .IP <function>justify</function> 1.5i -->
230994689c1SmrgHow the label is to be rendered between the left and right margins when
231994689c1Smrgthe space is wider than the actual text.  This resource may be
232994689c1Smrgspecified with the values <function>XtJustifyLeft</function>, <function>XtJustifyCenter</function>,
233994689c1Smrgor <function>XtJustifyRight</function>.  When specifying the justification from a
234994689c1Smrgresource file the values <function>left</function>, <function>center</function>, or <function>right</function> may be
235994689c1Smrgused.
236994689c1Smrg      </para>
237994689c1Smrg    </listitem>
238994689c1Smrg  </varlistentry>
239994689c1Smrg  <varlistentry>
240994689c1Smrg    <term>label</term>
241994689c1Smrg    <listitem>
242994689c1Smrg      <para>
243994689c1SmrgThis is a the string that will be displayed in the menu entry.  The
244994689c1Smrgexact location of this string within the bounds of the menu entry is
245994689c1Smrgcontrolled by the <function>leftMargin</function>, <function>rightMargin</function>, <function>vertSpace</function>,
246994689c1Smrgand <function>justify</function> resources.
247994689c1Smrg      </para>
248994689c1Smrg    </listitem>
249994689c1Smrg  </varlistentry>
250994689c1Smrg  <varlistentry>
251994689c1Smrg    <term>leftBitmap</term>
252994689c1Smrg    <listitem>
253994689c1Smrg      <para>
254994689c1Smrg<!-- .br -->
255994689c1Smrg<!-- .ns -->
256994689c1Smrg      </para>
257994689c1Smrg    </listitem>
258994689c1Smrg  </varlistentry>
259994689c1Smrg  <varlistentry>
260994689c1Smrg    <term>rightBitmap</term>
261994689c1Smrg    <listitem>
262994689c1Smrg      <para>
263994689c1Smrg<!-- .IP <function>rightBitmap</function> 1.5i -->
264994689c1SmrgThis is a name of a bitmap to display in the left or right margin of the
265994689c1Smrgmenu entry.  All 1's in the bitmap will be rendered in the foreground
266994689c1Smrgcolor, and all 0's will be drawn in the background color of the
267994689c1SmrgSimpleMenu widget.  It is the
268994689c1Smrgprogrammers' responsibility to make sure that the menu entry is tall
269994689c1Smrgenough, and the appropriate margin wide enough to accept the bitmap.
270994689c1SmrgIf care is not taken the bitmap may extend into another menu entry, or
271994689c1Smrginto this entry's label.
272994689c1Smrg      </para>
273994689c1Smrg    </listitem>
274994689c1Smrg  </varlistentry>
275994689c1Smrg  <varlistentry>
276994689c1Smrg    <term>leftMargin</term>
277994689c1Smrg    <listitem>
278994689c1Smrg      <para>
279994689c1Smrg<!-- .br -->
280994689c1Smrg<!-- .ns -->
281994689c1Smrg      </para>
282994689c1Smrg    </listitem>
283994689c1Smrg  </varlistentry>
284994689c1Smrg  <varlistentry>
285994689c1Smrg    <term>rightMargin</term>
286994689c1Smrg    <listitem>
287994689c1Smrg      <para>
288994689c1SmrgThis is the amount of space (in pixels) that will be left between the
289994689c1Smrgedge of the menu entry and the label string.
290994689c1Smrg<!-- .Se -->
291994689c1Smrg      </para>
292994689c1Smrg    </listitem>
293994689c1Smrg  </varlistentry>
294994689c1Smrg  <varlistentry>
295994689c1Smrg    <term>vertSpace</term>
296994689c1Smrg    <listitem>
297994689c1Smrg      <para>
298994689c1SmrgThis is the amount of vertical padding, expressed as a percentage of
299994689c1Smrgthe height of the font, that is to be placed around the label of a
300994689c1Smrgmenu entry.. The label and bitmaps are always centered vertically
301994689c1Smrgwithin the menu.  The default value for this
302994689c1Smrgresource (25) causes the default height to be 125% of the height of the
303994689c1Smrgfont.
304994689c1Smrg      </para>
305994689c1Smrg    </listitem>
306994689c1Smrg  </varlistentry>
307994689c1Smrg</variablelist>
308994689c1Smrg</para>
309994689c1Smrg</sect2>
310994689c1Smrg</sect1>
311