Picturebox with Commandbars included |
Post Reply |
Author | |
MetallDesign
Groupie Joined: 23 September 2008 Location: Switzerland Status: Offline Points: 16 |
Post Options
Thanks(0)
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????????????? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
This Gripper is MenuBar.
Add some controls in code.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
MetallDesign
Groupie Joined: 23 September 2008 Location: Switzerland Status: Offline Points: 16 |
Post Options
Thanks(0)
|
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 |
|
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
|
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
|
|
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 |