Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - MessageBar Icon
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MessageBar Icon

 Post Reply Post Reply
Author
Message
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Topic: MessageBar Icon
    Posted: 08 March 2012 at 6:46am
I have a problem adding a Icon to the Message bar. I use the following code:
 
Public Sub SMeMs(ByVal MsHed As String, ByVal MsMai As String, ByVal IcnId As Long)
On Error GoTo PoErr
'MessageBar
Dim MsBar As XtremeCommandBars.MessageBar
Dim CmBrs As XtremeCommandBars.CommandBars
Set FM = frmMain
Set CmBrs = FM.comBar01
Set MsBar = CmBrs.MessageBar
With MsBar
    .AddCloseButton "Closing"
    .Message = _
        "<StackPanel Orientation='Horizontal'>" & _
        "        <Image Source='" & IcnId & "'/>" & _
        "        <TextBlock Padding='3, 0, 0, 0' VerticalAlignment='Center'><Bold>" & MsHed & "</Bold></TextBlock>" & _
        "        <TextBlock Padding='10, 0, 0, 0' VerticalAlignment='Center'>" & MsMai & "</TextBlock></StackPanel>"
    .Visible = True
End With
Exit Sub
PoErr:
If GlDbg Then MsgBox Err.Description, 48, "SMeMs " & Err.Number
Resume Next
End Sub

IcnId is dthe ID of an ImageManager Icon!

 


Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6
Back to Top
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Posted: 10 March 2012 at 2:05am
Is it possible to set a ImageManager Icon to the MessageBar ?
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.187 seconds.