Results 1 to 5 of 5

Thread: Icons on top panel

  1. #1
    Maximum Bitrate
    Auto Apps:loading...
    lambosprit's Avatar
    Join Date
    Sep 2006
    Location
    UK
    Posts
    809

    Icons on top panel

    I have installed the wifi plugin and like the way it sits at the top showing current connection status and allowing access to the plugin.

    I would like to do the same for skype but can't see how to put the icon on the top pain. Any hints?

  2. #2
    Raw Wave
    Auto Apps:loading...
    justchat_1's Avatar
    Join Date
    Jul 2008
    Location
    Boston, Ma or NY,NY
    Posts
    2,359
    We have an Indicator Icons Extension to the main spec:
    http://openmobile.sourceforge.net/wi...cons_Extension

    basically:
    OpenMobile.IconManager.UIIcon icon=new OpenMobile.IconManager.UIIcon(SomeImage,ePriority. Normal,false, "YourPluginsName")
    theHost.sendMessage<UIIcon>("UI","YourPluginsName" ,"AddIcon", ref icon)

    To remove the icon:
    theHost.sendMessage<UIIcon>("UI","YourPluginsName" ,"RemoveIcon", ref icon)

  3. #3
    Maximum Bitrate
    Auto Apps:loading...
    lambosprit's Avatar
    Join Date
    Sep 2006
    Location
    UK
    Posts
    809
    great thanks.

    for those interested here's my vb code
    Code:
                'create an icon for placement on the gui header
                Dim pluginIcon As New imageItem
                pluginIcon.name = "OMSkype.Icon"
                pluginIcon.image = OImage.FromFile(OpenMobile.Path.Combine(theHost.SkinPath, "OMSkypeIcon.png"))
                Dim icon As OpenMobile.IconManager.UIIcon = New OpenMobile.IconManager.UIIcon(pluginIcon, ePriority.Normal, False, "OMSkype")
                theHost.sendMessage(Of OpenMobile.IconManager.UIIcon)("UI", "OMSkype", "AddIcon", icon)

  4. #4
    Maximum Bitrate
    Auto Apps:loading...
    lambosprit's Avatar
    Join Date
    Sep 2006
    Location
    UK
    Posts
    809
    Is it possible to change the icon image while OM is running? I want to update it to current skype online status.

  5. #5
    Raw Wave
    Auto Apps:loading...
    justchat_1's Avatar
    Join Date
    Jul 2008
    Location
    Boston, Ma or NY,NY
    Posts
    2,359
    Quote Originally Posted by lambosprit View Post
    Is it possible to change the icon image while OM is running? I want to update it to current skype online status.
    Yup easy...remove the old icon...add the new one

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •