![Obihai Technology OBi1032 Скачать руководство пользователя страница 153](http://html2.mh-extra.com/html/obihai-technology/obi1032/obi1032_administration-manual_3151346153.webp)
Copyright 2010-2017 Obihai Technology, Inc.
153
Optional: hidden, xpos,
ypos, width, height, align,
valign, resize, aspect
secondary icon to display on the tile
Attributes in <MainMenuItemStyles>
Attribute
Where
Description
id
<style>
The id to reference this style in the
style
attribute of a
<MainMenu> <item>. If
style
is not specified in <item>, then
by default it references the <style> with id = "default".
bgimg
<style>, <label>, <label2>,
<icon>, <icon2>
When appears in <style>, it is the background image for the
referencing main menu item
’s screen
tile.
When appears in <label>, <label2>, <icon>, or <icon2>
(though less common), it is the background image to cover
the bounding box of the respective widget
hlimg
<style>
The background image for the refe
rencing main menu item’s
screen tile, when the item is highlighted. If hlimg is not
specified, the same bgimg is shown whether the item is
highlighted or not.
bgcolor
<style>, <label>, <label2>,
<icon>, <icon2>
When appears in <style>, it is the background color or color
pattern of the referencing main menu item’s screen tile. If
bgimg is defined and non-empty and covers the entire item,
then bgcolor would be invisible. If bgimg has some
transparent area or does not cover the entire item, then
bgcolor will show through those uncovered area, if specified.
Examples: "0xffffff,0xaaaaaa,1" (gradient between two given
color) or "0x4546ff" (solid with the same color everywhere)
When appears in <label>, <label2>, <icon>, or <icon2>
(though less common), it is the background color or color
pattern to cover the bounding box of the respective widget.
hlcolor
<style>
When appears in <style>, it is the background color or color
pattern of the referencing main menu item’s screen tile on
screen, when the item is highlighted. If hlcolor is not
specified, the same bgcolor is shown whether the item is
highlighted or not.
xpos, ypos, width,
height
<icon>, <icon2>, <label>,
<label2>
These 4 attributes specify the upper left corner pixel
position (relative to the parent bounding box), and the pixel
width and height of the bounding box enclosing the
element. Default for xpos is "0", ypos is "0", width and
height are same as the parent bounding box
align
<icon>, <icon2>, <label>,
<label2>
Specifies the horizontal alignment of the picture within the
icon's bounding box (note: not the parent's). Value should
be "left", "right", or "center"
valign
<icon>, <icon2>, <label>,
<label2>
Specifies the vertical alignment of the picture within the
icon's bounding box (note: not the parent's). Value should
be "top", "bottom", or "center"
src
<icon>, <icon2>
Overwrites the file path or URL of the icon in the referencing
main menu item. It can be an internal storage path or a
http/https URL
font
<label>, <label2>
The font to use to render text for the widget (value must be
either "@gont" or "@gfont-bold")
size
<label>, <label2>
The font size to use to render text for the widget
wrap
<label>, <label2>
Specifies whether to wrap ('1") or truncate ("0") the text
when it cannot fit the label's bounding box
resize
<label>, <label2>, <icon>,
For labels, specifies whether to resize ("1") or not ("0") the