#Region Comment header
' CurrentVersion:
' Maintainer: Troberg
'Todo
'Currently only a stub
'Future
'...
'Done
'1.0
'...
#End Region
'Class module
Sub Class_Globals
PrivatepPriorityAsInt = 8
PrivatepPositionAsString = "Center"
PrivatepPauseMediaAsBoolean = False
PrivatepTimeToLiveAsInt = 3000
PrivatepHostPanelAsPanel
PrivatepIconAsString
PrivatepColoringAsInt
End Sub
'Initializes the object. You can add parameters to this method if needed.
Public Sub Initialize
End Sub
Public Sub Setup(HostPanel AsPanel)
pHostPanel=HostPanel
pHostPanel.Width = 20%x
pHostPanel.Height = 20%x
End Sub
#Region Properties
Sub getPriority() AsInt
ReturnpPriority
End Sub
Sub getPosition() AsString
ReturnpPosition
End Sub
Sub getPauseMedia() AsBoolean
ReturnpPauseMedia
End Sub
Sub getTimeToLive() AsInt
ReturnpTimeToLive
End Sub
Sub getIcon() AsString
ReturnpIcon
End Sub
Sub setIcon(Value AsString)
pIcon=Value
End Sub
Sub getHostPanel() AsPanel
ReturnpHostPanel
End Sub
Sub getColoring() AsInt
ReturnpColoring
End Sub
Sub setColoring(Value AsInt)
pColoring=Value
End Sub
#End Region
#Region Methods
Sub ShowOSD(Icon AsString, Coloring AsInt)
Dim bd AsBitmapDrawable
bd.Initialize(Main.Glob.Icons.GetResizedIcon(pIcon,pColoring,20%x,20%x))
pHostPanel.Background = bd
Main.Glob.MsgHub.MsgSend1(Me, Main, Main.Glob.Messages.MA_ShowPAN, "PAN", Me)
End Sub
#End Region