PDA

View Full Version : Horizontal bar


roeroe
2008-09-29, 15:02
Is it possible by modified some xml file to bring the weather forecast
to the horizontal bar instead of put it under Accessories?

Jeroen
2008-09-29, 19:48
Sure. Home.xml is the file to edit. There's a section called "main menu" which has 6 buttons. You could add a seventh one and make that open the weather forecast. Just look through the code, shouldn't be too difficult :)

roeroe
2008-09-30, 05:17
For those who want to do the same thing copy and paste this in your home.xml
in the main menu section

<control type="button" id="7">
<description>Weather Button</description>
<label>Weather</label>
<posx>535</posx>
<posy>0</posy>
<width>100</width>
<height>44</height>
<onleft>5</onleft>
<onright>6</onright>
<onup>1</onup>
<ondown>2</ondown>
<texturefocus>default-button.png</texturefocus>
<texturenofocus>-</texturenofocus>
<font>menubar</font>
<textcolor>button-text</textcolor>
<aligny>-</aligny>
<align>center</align>
<textoffsety>1</textoffsety>
<onclick>ActivateWindow(2600)</onclick>
</control>

theotocopulitos
2009-03-09, 23:15
I alpha 6c this seems to work best:

<control type="button" id="8">
<description>Weather Button</description>
<label>Weather</label>
<posx>680</posx>
<posy>0</posy>
<width>140</width>
<height>44</height>
<onleft>5</onleft>
<onright>6</onright>
<onup>1</onup>
<ondown>2</ondown>
<onclick>ActivateWindow(2600)</onclick>
<include>menubarButton</include>
</control>


Note, I needed to identify this as "8" instead of as "7" like in the previous example, since "7" is now the DVD disc.

tekguy
2009-03-13, 19:22
The best skin so far is Focus! keepup the good work.

I have tried both the codes in home.xml. I am able to get the Weather button on the horizontal bar. But it is not getting selected, so I am not able to click it.

Any help would be great.