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

TabToolBar Execute Event

 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: TabToolBar Execute Event
    Posted: 09 May 2008 at 3:36am
How can I find out witch Control.id a TabControlItem sends, if a user clicks on it? A RibbonBar has the XTP_ID_RIBBONCONTROLTAB flag.
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2008 at 4:47am
Hi,
TabToolBar has own SelectedChanged event.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 09 May 2008 at 5:06am
Thank you, in the onlinehelp I can read this, but in my VB6 enviroment there is no such event? Only the Execute event is shown.
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: 09 May 2008 at 7:30am
I set Private WithEvents TbBar As XtremeCommandBars.TabToolBar and have the event now. Bit waht ist the next step?
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

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

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2008 at 8:20am
Hi,
 
Depends of what you want. You want the ID of the selected item or Tab?
 
I guess (I never used this before)
 
The tab has no ID and the selected items will fire Execute event of commandbars, just the same as a menu item or toolbar item
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
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: 09 May 2008 at 8:43am

I would be glad, if the TabedCommandBar would fire a execute event. But you see, tah oleg wrotes that there is an separate event. This ist ok, but I'm m not able to find out how to use it?

Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

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

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2008 at 9:04am
Hi,
 
The tab has no ID and the selected items will fire Execute event of commandbars, just the same as a menu item or toolbar item
 
Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)
 
    Select case Control.ID
        Case ID_whatever
            ...........
  
End Sub
 
The tabtoolbar has only 2 events:
 
Private Sub TbBar_BeforeItemClick(ByVal Item As XtremeCommandBars.ITabControlItem, Cancel As Variant)
End Sub
Private Sub TbBar_SelectedChanged(ByVal Item As XtremeCommandBars.ITabControlItem)
End Sub
and Oleg ment the last one.
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
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: 09 May 2008 at 9:44am
uploads/20080509_094232_CodeJock.zip
 
Ok I upload a VB6 sample. In the Execute Event i postet da MsgBox command. If you click onto a Tab, the is no execute event!
 
The is also no SelectedChanged event, whre i place any code :-/
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

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

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2008 at 1:52pm
Hi,
 
Replace:
 
Private tbBar As XtremeCommandBars.TabToolBar
 
with

Private WithEvents tbBar As XtremeCommandBars.TabToolBar
 
Now you have the SelectionChanged and BeforeItemClick event
 
 
If you click on a TAB the tbBar_SelectedChanged event will fire.
 
If you click on a toolbar item the comBar01_Execute event will fire
 

 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
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.281 seconds.