Showing posts with label layout. Show all posts
Showing posts with label layout. Show all posts

<button_defaults>

Default settings for the appearance of clickable buttons on the screen.

Can be overridden as necessary.

Child of: <settings>
Parent of: <font>, <font_size>, <text_color>, <word_wrap>, <height>, <width>, <button_color>, <bold>, <opacity>

Example:

<button_defaults>
            <font>Arial</font>
            <font_size>16</font_size>
            <text_color>0x000000</text_color>
            <word_wrap>OFF</word_wrap>
            <height>35</height>
            <width>50</width>
            <button_color>0xDDDDDD</button_color>
            <bold>YES</bold>
            <opacity>.5</opacity>
</button_defaults>

Working example: Search for <button_defaults>...</button_defaults> in the file trivia_demo.xml.

<font_size>

A font size in points.

Child of: <button>, <button_defaults>, <dropdown>, <input>, <text_banner name="">, <title>, <title_defaults>
Parent of: Nothing
See also: <font>

Example:

<font_size>12</font_size>

Working example: Search for <font_size></font_size> in the file trivia_demo.xml.

<frame>

Establishes the correct dimensions for the frame in case the application runs on a page that is not magnified at 100%.

Child of: <settings>
Parent of: <height>, <width>

Example:

<frame>
            <height>250</height>
            <width>300</width>
</frame>

<height>

A height in pixels.

Child of: <bar>, <button>, <button_defaults>, <dropdown>, <frame>, <image name="">, <input>, <link>, <media_overlay>, <slider>, <text_banner name="">, <title>, <title_defaults>, <video_defaults>
Parent of: Nothing

Example:

<height>35</height>

Working example: Search for <height></height> in the file trivia_demo.xml.

<scale_content>

Determines whether or not an image is scaled to fit the specified <image name=""> dimensions.

Accepted values are YES and NO. If NO, the image is placed within the image receptacle defined by the <height> and <width> values without any change to its height-width ratio.

Default value: NO
Child of: <image name="">
Parent of: Nothing

Examples:

<scale_content>YES</scale_content>

<scale_content>NO</scale_content>

<title_defaults>

Default settings for titles defined within nodes (not titles of drop-down lists).

Can be overridden as necessary.

Child of: <settings>
Parent of: <height>, <width>, <x>, <y>, <font_size>, <font>, <text_color>, <bg_color>

Example:

<title_defaults>
            <x>80</x>
            <y>50</y>           
            <height>35</height>
<width>50</width>
            <font_size>12</font_size>
            <font>Arial</font>
            <text_color>#000000</text_color>
<bg_color>0xDDDDDD</bg_color>
</title_defaults>

Working example: Search for <title_defaults>...</title_defaults> in the file trivia_demo.xml.

<video_defaults>

Default size and position settings for videos.

Can be overridden as necessary.

Child of: <settings>
Parent of: <x>, <y>, <height>, <width>, <bar>, <slider>, <popup>

Example:

<video_defaults>
            <x>0</x>
            <y>50</y>
            <height>35</height>
<width>50</width>
<bar>
…
</bar>
<slider>
…
</slider>
<popup>
…
</popup>
</video_defaults>

Working example: Search for <video_defaults>...</video_defaults> in the file trivia_demo.xml.

<width>

A width in pixels.

Child of: <bar>, button>, <button_defaults>, <dropdown>, <frame>, <image name="">, <input>, <link>, <media_overlay>, <slider>, <text_banner name="">, <title>, <title_defaults>, <video_defaults>
Parent of: Nothing

Example:
           
<width>50</width>

Working example: Search for <width></width> in the file trivia_demo.xml.

<word_wrap>

Allows text to be wrapped inside a button.

Accepted values are YES or NO.

Default: NO
Child of: <button>, <button_defaults>
Parent of: Nothing

Example:

<word_wrap>YES</word_wrap>

Working example: Search for <word_wrap></word_wrap> in the file trivia_demo.xml.

<x>

The X axis value of a pixel position on the screen.

The first column of pixels on the left of the screen is at 0 on the X axis.

Child of: <bar>, <button>, <button_defaults>, <dropdown>, <graphical_button name="">, <image name="">, <input>, <media_overlay>, <text_banner name="">, <title>, <title_defaults>, <video_defaults>
Parent of: Nothing

Example:

<x>35</x>

Working example: Search for <x></x> in the file trivia_demo.xml.

<y>

The Y axis value of a pixel position on the screen.

The first row of pixels at the top of the screen is at 0 on the Y axis.

Child of: <bar>, <button>, <button_defaults>, <dropdown>, <graphical_button name="">, <image name="">, <input>, <media_overlay>, <text_banner name="">, <title>, <title_defaults>, <video_defaults>
Parent of: Nothing

Example:

<y>120</y>

Working example: Search for <y></y> in the file trivia_demo.xml.