Display customized text in StatusBar |
Post Reply |
Author | |
coolzsunil
Groupie Joined: 18 March 2009 Status: Offline Points: 28 |
Post Options
Thanks(0)
Posted: 25 March 2009 at 6:03am |
Hi,
I have ActiveX: Xtreme Command Bars ActiveX v13.0.0.
The pane 0 in Statusbar displays text when we hover over any toolbar or menuitem.
My requirement is that I have to display the text plus some customized text.
This customized text depends on the toolbar or menu item over which mouse is hovering.
Is there any way to capture the Mouse Hover event to display customized text in Status bar?
Regards
Sunil
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
You can set some Id to first pane - in this case you have manually set test to StatusBar.
Now catch ControlSelected ans set it.
Private Sub CommandBars_ControlSelected(ByVal Control As XtremeCommandBars.ICommandBarControl)
If (Not Control Is Nothing) Then "Set Text to" Control.DescriptionText End Sub
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
coolzsunil
Groupie Joined: 18 March 2009 Status: Offline Points: 28 |
Post Options
Thanks(0)
|
Thanks.. It seems to solve my problem.
I have one more thing though. In addition to customized text, I need to display an icon with the text on the same pane.
For the icon I have HICON. This HICON is retrieved using the Windows function SHGetFileInfo.
a) How can I set the iconindex property using this HICON.
I guess when i set the icon index correctly and the Text, it will display the icon and the text in the pane.
b) How is the icon and text displayed? I mean is the icon before the text or is the text before the icon?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
You have first add it to imagemanager of statusbar. CommandBars.ImageManager.AddIcon.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
coolzsunil
Groupie Joined: 18 March 2009 Status: Offline Points: 28 |
Post Options
Thanks(0)
|
Before I add the icon using the CommandBars.ImageManager.AddIcon, is there any way in which I can find out whether
an icon with the same id already exists or not?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
See methods of ImageManager class.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
coolzsunil
Groupie Joined: 18 March 2009 Status: Offline Points: 28 |
Post Options
Thanks(0)
|
I could not point to any function. Help would be appreciative.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Call CommandBars.Icons.GetImage(id) - if it return "Nothing" you didn't have icon.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
coolzsunil
Groupie Joined: 18 March 2009 Status: Offline Points: 28 |
Post Options
Thanks(0)
|
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Set it to 0 - it will return smallest width.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |