![]() |
Creating tear-off popups |
Post Reply ![]() |
Author | |
nighthawk ![]() Senior Member ![]() ![]() Joined: 11 June 2004 Status: Offline Points: 167 |
![]() ![]() ![]() ![]() ![]() Posted: 27 July 2006 at 8:30pm |
I want to create a tear-off popup menu like in the example below. How do I set this up using code? The only sample I found uses the Designer Studio to set it up but I need to do it with code.
![]() |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
from Office2003 sample:
Set ControlColorPopup = .Add(xtpControlSplitButtonPopup, ID_COLOR_POPUP, "Text Color")
ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_COLOR_BLUE, "Blue" ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_COLOR_YELLOW, "Yellow" ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_COLOR_GREEN, "Green" ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_COLOR_RED, "Red" ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_COLOR_PURPLE, "Purple" ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_COLOR_CYAN, "Cyan" ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_COLOR_ORANGE, "Orange" ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_COLOR_MAGENTA, "Magenta" ControlColorPopup.CommandBar.SetTearOffPopup "Colors", IDR_COLORSBAR, 150 |
|
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 |