Jump to content

Recommended Posts

Guest philipnorth
Posted

Hi all,

am picking up the making homescreens again, and I have a question.

Is it possible to hide a plugin when there's nothing to show?

For instance I know you can hide the missed calls with

 <format state="nocall" visible="false"/>

Is this possible with SMS/E-mail as well?

If so, what should the "format state =" be?

Hope you guys know what I mean and I sure hope this is possible :)

Posted

this is a feature written into the plugin code.. the MS and Orange sms/voice/email/mms plugins don't seem to support these features.. (or at least the MS ones are not mentioned in the whitepaper, and noone has stumbled upon the syntax(if it exists)!

Guest scott2eyes
Posted

I'm very much a beginner with XML, and I've been trying to figure out the logic of this kind of thing too.

I tried playing around with the Message plugin to see if you could substitute format state="nocall" with something like format unreadSMS="0", figuring that it was working like an "If" clause- but it didn't work out; with this plugin, the message that comes up is "No unread text messages"- the problem is that it still says exactly the same if you do have/receive (one or more) unread text messages...

<plugin clsid="{2F930BF0-6FE9-4a53-9E17-88E9247BAB48}" name="msgcount" height="20">


  <background>


 	 <format state="selected" bgcolor="COLOR_HOMEHIGHLIGHT"/>


  </background>


  <label>


 	 <text unreadSMS="0">No unread text messages</text>


 	 <text unreadSMS="1">One unread text message</text>


  </label>


	</plugin>

However, one useful thing to play with when you've got a plugin in your homescreen which does work with the "state" fuction (like missedcall) is to have it right at the top of the homescreen (so that it's selected by default), and then in the format state="nocall" bit, add a bit saying bgimage="IPSMfilename.jpg" (or whatever)- this effectively creates a "missed call" screen for your scheme. (Oh, and you might want to set the height to 180 or 200 to get rid of all the other bits and pieces on the screen.)

If anyone can figure out a way to make something like this work when there's SMS/emails etc. that have been received, I would be very interested!

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.