Grandstream Networks GXV3140 IP Phone User Manual


 
Grandstream Networks, Inc. XML Based GUI Configuration Guide Page 18 of 26
www.grandstream.com Last Updated: 03/2010
7 APPENDIX: GXV31XX XML BASED CUSTOMIZABLE SCREEN
This part of the document describes how to make a custom screen on the GXV31xx with the XML
configuration file.
The Gxv31xx serial products support three types of layouts: small layout, large layout
and custom layout. You can select the custom layout mode and select the XML configure file which
includes the layout information, save to make it take effect.
7.1 EXAMPLE XML FILE FOR CUSTOMIZED SCREEN LAYOUT
The XML configuration file includes the format which decide how and where to display the screen
items. At present, there are four screen item types: the panel (only one), pictures, strings and functions.
The following is an example XML configuration file:
<Screen>
<IdleScreen>
<DesktopLayout>large</DesktopLayout>
<Desktop id="1">
<DisplayString size="16" color="#ecf164" style="bold" halignment="0.5" valignment="0.5">
<StringValue> Call Me </StringValue>
<X>10</X>
<Y>10</Y>
<Width>200</Width>
<Height>-1</Height>
</DisplayString>
<DisplayPicture scaled="true" preserve_ratio="true">
<FileName>music.png</FileName>
<X>0</X>
<Y>0</Y>
<Width>50</Width>
<Height>50</Height>
</DisplayPicture>
<DisplayPicture>
<FileName>earth.gif</FileName>
<X>240</X>
<Y>20</Y>
</DisplayPicture>
<DisplayString size="13" color="#ffedcd" style="italic" valignment="1.0">
<RegisterShow account="acct_1">false</RegisterShow>
<StringValue>Account 1 Unregister</StringValue>
<X>240</X>
<Y>150</Y>
</DisplayString>
<DisplayString size="13" color="#52e3da" style="bold" halignment="1.0" valignment="0.5">
<StringValue>$Y-$o-$D $W</StringValue>
<X>10</X>
<Y>140</Y>
<Width>200</Width>
<Height>-1</Height>
</DisplayString>
<Function>
<FuncRssNews layout="large">
<DesktopID>2</DesktopID>