PrintPreview Toolbar |
Post Reply |
Author | |
MetallDesign
Groupie Joined: 23 September 2008 Location: Switzerland Status: Offline Points: 16 |
Post Options
Thanks(0)
Posted: 20 October 2012 at 2:44am |
Hi
How to set the Commandbars Toolbar as new PrintPreview Toolbar with VB6? My Code like Dim Toolbar As CommandBar Dim Control As CommandBarControl CommandBarsGlobalSettings.App = App CommandBars.EnableActions CommandBars.DeleteAll Set Toolbar = CommandBars.Add("Standard", xtpBarTop) With Toolbar AddControl .Controls, xtpControlButton, ID_VRVIEWER_DRUCKEN, "Drucken", True, , xtpButtonIcon AddControl .Controls, xtpControlButton, ID_VRVIEWER_ZOOMOUT, "Zoom Out", , , xtpButtonIcon AddControl .Controls, xtpControlButton, ID_VRVIEWER_ZOOMIN, "Zoom In", True, , xtpButtonIcon AddControl .Controls, xtpControlButton, ID_VRVIEWER_LINKS, "zurück", , , xtpButtonIcon AddControl .Controls, xtpControlButton, ID_VRVIEWER_RECHTS, "vorwärts", , , xtpButtonIcon AddControl .Controls, xtpControlButton, ID_VRVIEWER_SCHLIESSEN, "Schließen", True, , xtpButtonIcon End With Set CommandBars.Icons = ImageManager.Icons PrintPreview.Toolbar = Thanks and brgds Ramon |
|
MetallDesign
Groupie Joined: 23 September 2008 Location: Switzerland Status: Offline Points: 16 |
Post Options
Thanks(0)
|
Thats it... but no icons shows, can't set Imagemanager to Toolbar, Any Idee?
Set Toolbar = PrintPreview.Toolbar With Toolbar.Controls .DeleteAll .Add xtpControlButton, ID_VRVIEWER_DRUCKEN, "Drucken", , xtpButtonIconAndCaption .Add xtpControlButton, ID_VRVIEWER_ZOOMOUT, "", , xtpButtonIcon .Add xtpControlButton, ID_VRVIEWER_ZOOMIN, "", , xtpButtonIcon .Add xtpControlButton, ID_VRVIEWER_LINKS, "", , xtpButtonIcon .Add xtpControlButton, ID_VRVIEWER_RECHTS, "", , xtpButtonIcon .Add xtpControlButton, ID_VRVIEWER_SCHLIESSEN, "Schließen", , xtpButtonIconAndCaption End With |
|
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 |