Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Picturebox with Commandbars included
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Picturebox with Commandbars included

 Post Reply Post Reply
Author
Message
MetallDesign View Drop Down
Groupie
Groupie
Avatar

Joined: 23 September 2008
Location: Switzerland
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote MetallDesign Quote  Post ReplyReply Direct Link To This Post Topic: Picturebox with Commandbars included
    Posted: 23 September 2008 at 2:20am
Hello

i have the following problem. i use the ssTab Control from Microsoft and want to place a commandbar on it. i try with a picturebox in the left corner, but i see just the gripper................


pls help

any Idee?????????????



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: 23 September 2008 at 2:26am
Hi,
This Gripper is MenuBar.
Add some controls in code.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
MetallDesign View Drop Down
Groupie
Groupie
Avatar

Joined: 23 September 2008
Location: Switzerland
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote MetallDesign Quote  Post ReplyReply Direct Link To This Post Posted: 24 September 2008 at 5:02pm
Thanks, here is the sample code

    CommandBarsGlobalSettings.App = App
    CommandBars.EnableActions
  
    Set Toolbar = CommandBars.Add("Standard", xtpBarTop)
    With Toolbar
            AddControl .Controls, xtpControlButton,             ID_ARBEITSZEITERFASSUNG, "&Arbeitszeiterfassung", , , xtpButtonIconAndCaption
           
    End With
   
    CommandBars.VisualTheme = xtpThemeRibbon
    CommandBars.EnableOffice2007Frame False
   
    Set CommandBars.Icons = ImageManager.Icons
    CommandBars.Options.UseDisabledIcons = True
       
    CommandBars.Options.ShowExpandButtonAlways = False
    CommandBars.Options.SetIconSize True, 42, 35

    CommandBars.AttachToWindow picToolbar.hWnd


Visual Basic 6.0 SP6 and WIN XP SP2


brgds
Back to Top
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2008 at 5:54am
Hello - If you are trying to produce thecomething like the picture below then do the following.
 
 
 
Place your PictureControl on the Tab and then place your commandbar control inside the PictureBox.
 
Then use the following code to write to the command bar.
 
Const ID_ARBEITSZEITERFASSUNG = 1
Private Sub Form_Load()
  
    Dim cbb As CommandBarButton
    Set cbb = CommandBars.ActiveMenuBar.Controls.Add(xtpControlButton, ID_ARBEITSZEITERFASSUNG, "&Arbeitszeiterfassung")
        cbb.Style = xtpButtonIconAndCaption
   
    CommandBars.VisualTheme = xtpThemeRibbon
   
End Sub
 
Regards
Lee
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.250 seconds.