Howto track MessageBar CloseButton |
Post Reply |
Author | |
Josef
Groupie Joined: 15 April 2006 Status: Offline Points: 59 |
Post Options
Thanks(0)
Posted: 17 July 2009 at 12:24pm |
Hi,
how do I know if user clicked CloseButton added with .AddCloseButton? Thank you, Josef |
|
Product: Xtreme SuitePro ActiveX v13.2.1
Platform: Windows 2008 (64bit) Language: Visual Basic 6.0 |
|
cmm2006
Senior Member Joined: 26 September 2006 Status: Offline Points: 118 |
Post Options
Thanks(0)
|
Hi,
You need to assign an ID button to the close button (ID_MORE_BUTTON), the when you once you execute the commandbar, check and see if the button was clicked or not:
Option Explicit
Const ID_MORE_BUTTON=10000
Private Sub CreateMessageBar()
Messagebar.Visible = True MessageBar.AddButton 10000, "Informations...", "Show more options" Messagebar.Message = _ "<StackPanel Orientation='Horizontal'>" & _ " <Image Source='10000'/>" & _ " <TextBlock Padding='3, 0, 0, 0' VerticalAlignment='Center'><Bold>Warning: </Bold></TextBlock>" & _ " <TextBlock Padding='10, 0, 0, 0' VerticalAlignment='Center'>Your message here...</TextBlock>" & _ "</StackPanel>" End Sub Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)
Select Case Control.ID Case ID_MORE_BUTTON: ' do whatever... End Select
End Seub
|
|
Language: Visual Basic 6 SP6
OS: Windows XP Pro SP3 Product: Codejock Xtreme SuitePro 13.1 |
|
Josef
Groupie Joined: 15 April 2006 Status: Offline Points: 59 |
Post Options
Thanks(0)
|
Hi,
this will work for normal buttons, but not for the CloseButton added with .AddCloseButton (the small [x]-Button on the right) Can I assign an ID to this Close-Button too? Thank you, Josef |
|
Product: Xtreme SuitePro ActiveX v13.2.1
Platform: Windows 2008 (64bit) Language: Visual Basic 6.0 |
|
cmm2006
Senior Member Joined: 26 September 2006 Status: Offline Points: 118 |
Post Options
Thanks(0)
|
Hi,
I don't think you can assign any ID for the close button :(
|
|
Language: Visual Basic 6 SP6
OS: Windows XP Pro SP3 Product: Codejock Xtreme SuitePro 13.1 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |