PDA

View Full Version : help with text plugin (xml home screen)


klaberte
4th November 2008, 10:47 PM
I have a t-mobile dash running Windows Mobile 6.0 standard.

I have had no luck with this text plugin (nor the owner plugin)

<plugin file="sysplug.dll" clsid="{5419F376-6520-4407-B8B8-740F5B353EDA}">
<label bgtext="#000000">
<text>I love french fries</text>
</label>
</plugin>

The whole file looks like this:





<?xml version="1.0"?>
<home>
<author>Ken</author>
<contacturl>http://www.foo.com</contacturl>
<title>Foo</title>
<version>1.0</version>
<default target-width="320" target-height="320" font-face="Segoe Condensed" font-size="16" font-weight="bold" padding-left="5" padding-right="5" bgcolor="transparent" fgcolor="COLOR_HOMETEXT" padding-top="3" b-border-color="COLOR_HOMERULE" b-border-width="1">
<format state="unselected" fgcolor="#FFFFFF" bgcolor="transparent" font-weight="bold"/>
<format state="selected" fgcolor="#FFFFFF" bgcolor="COLOR_HOMEHIGHLIGHT" font-weight="bold"/>
</default>
<background bgimage-rotated="TMobile.jpg" valign="top" />
<scheme>
<color name="COLOR_WINDOW" value="#FFFFFF" />
<color name="COLOR_WINDOWTEXT" value="#000000" />
<color name="COLOR_STATIC" value="#FFFFFF" />
<color name="COLOR_STATICTEXT" value="#000000" />
<color name="COLOR_HIGHLIGHT" value="#3485ce" />
<color name="COLOR_HIGHLIGHTTEXT" value="#FFFFFF" />
<color name="COLOR_TEXTSELECT" value="#FFFFFF" />
<color name="COLOR_MENU" value="#FFFFFF" />
<color name="COLOR_MENUTEXT" value="#000000" />
<color name="COLOR_GRAYTEXT" value="#CCCCCC" />
<color name="COLOR_GRADLEFT" value="#FFFFFF" />
<color name="COLOR_GRADRIGHT" value="#FFFFFF" />
<color name="COLOR_INTGRADLEFT" value="#FFFFFF" />
<color name="COLOR_INTGRADRIGHT" value="#FFFFFF" />
<color name="COLOR_TRAYGRADLEFT" value="#0a4476" />
<color name="COLOR_TRAYGRADRIGHT" value="#155D9C" />
<color name="COLOR_HIGHGRADLEFT" value="#3485ce" />
<color name="COLOR_HIGHGRADRIGHT" value="#3485ce" />
<color name="COLOR_TRAYTEXT" value="#FFFFFF" />
<color name="COLOR_WINDOWFRAME" value="#000000" />
<color name="COLOR_BTNFACE" value="#FFFFFF" />
<color name="COLOR_BTNTEXT" value="#000000" />
<color name="COLOR_SCROLLBAR" value="#3485ce" />
<color name="COLOR_HOMETEXT" value="#FFFFFF" />
<color name="COLOR_HOMEHIGHLIGHT" value="#3485ce" />
<color name="COLOR_HOMEHIGHLIGHTTEXT" value="#FFFFFF" />
<color name="COLOR_HOMERULE" value="#3485ce" />
<color name="COLOR_ALERTWINDOW" value="#FFFFFF" />
<color name="COLOR_ALERTTITLE" value="#444444" />
<color name="COLOR_ALERTRULE" value="#000000" />
<color name="COLOR_TITLEFLATCENTER" value="#3485ce" />
<color name="COLOR_SOFTKEYFLATCENTER" value="#3485ce" />
</scheme>




<plugin file="sysplug.dll" clsid="{5419F376-6520-4407-B8B8-740F5B353EDA}">
<label bgtext="#000000">
<text>I love french fries</text>
</label>
</plugin>


</home>




I note that both of these plugins include a call to the sysplug.dll. Is it possible that my phone does not have this dll? Where should I check?

Secondly, I have read contradictory information about where the .home.xml file should go. It seems that there is a copy of all of my .home.xml in both the /Application Data/Home directory as well as the /Windows directory. Do I need the same file copied in both locations? What's the deal here?

Thanks!

showaco
5th November 2008, 03:52 AM
I have a t-mobile dash running Windows Mobile 6.0 standard.

I have had no luck with this text plugin (nor the owner plugin)

For Owner Notes, have you tried like this(not sure on the clsid, you'll have to make sure its the correct for owner plugin)
<plugin file="sysplug.dll" clsid="{5419F376-6520-4407-B8B8-740F5B353EDA}" name="owner" height="27">
<label halign="center" valign="top" w="320" h="27">
<text><notes/></text>
</label></plugin>
The height, width, and alignment values are just what i used before. Your actual text you want displayed would need to be written into notes field of owner information. I have a mortscript that will run a text loop using this plugin so that the text will rotate with different info every few seconds by rewriting the text to the registry.

klaberte
7th November 2008, 03:59 AM
Any other ideas?