I want to draw a red border around a 24x24 pixel menu Item Icon when it’s Sub menu Item is Checked (mnuSubItem1.Checked = True). This is my code below that is not working. What am do I have to Change to make it work or can it even be done?
[code]mnuItem.Icon = IconPict '24x24pixel
mnuSubItem1.Checked = Not mnuSubItem1.Checked
If mnuSubItem1.Checked = True Then
mnuItem1.Icon.Graphics.ForeColor=&cff0000
mnuItem1.Icon.Graphics.PenHeight=5
mnuItem1.Icon.Graphics.DrawRect(0, 0, mnuItem1.Icon.Graphics.Width, mnuItem1.Icon.Graphics.Height)
Elseif mnuSubItem1.Checked = False Then
mnuItem1.Icon.Graphics.ClearRect(0, 0, mnuItem1.Icon.Graphics.Width, mnuItem1.Icon.Graphics.Height)
End If[/code]
Thanks