Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - CXTPControlPopupColor - Single button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPControlPopupColor - Single button

 Post Reply Post Reply
Author
Message
rupert View Drop Down
Newbie
Newbie


Joined: 28 August 2007
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote rupert Quote  Post ReplyReply Direct Link To This Post Topic: CXTPControlPopupColor - Single button
    Posted: 30 August 2007 at 4:29pm
Is it possible to get a regular popup which can reflect the color selected in the picker?
 
CXTPControlPopupColor creates a split-button color control. I don't want it to be a split button.
 
Thanks.
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: 03 September 2007 at 7:37am
Hi,
As quite weird trick you can add standard popup button + hidden CXTPControlPopupColor  with same id.
change Color property of hidden CXTPControlPopupColor  and it will change icon of your popup. Think can work.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
rupert View Drop Down
Newbie
Newbie


Joined: 28 August 2007
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote rupert Quote  Post ReplyReply Direct Link To This Post Posted: 04 September 2007 at 10:44am
Thank you for the suggestion however I am unable to make it work. The icon color does not update. It remains the same.
 
 
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: 04 September 2007 at 12:41pm
This code work for me. Try also add RedrawBar in yours.
 
Private Sub CommandBars1_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)
    If (Control.Id = 101) Then
        CommandBars1.ActiveMenuBar.Controls(1).Color = vbGreen
        CommandBars1.ActiveMenuBar.RedrawBar
    End If
End Sub
Private Sub Form_Load()
Set CommandBars1.Icons = ImageManager1.Icons
Dim ControlPopup As CommandBarPopup
Set ControlPopup = CommandBars1.CreateCommandBarControl("CXTPControlPopupColor")
ControlPopup.Visible = False
CommandBars1.ActiveMenuBar.Controls.AddControl ControlPopup
ControlPopup.Id = 100
ControlPopup.Color = vbRed
Set ControlPopup = CommandBars1.ActiveMenuBar.Controls.Add(xtpControlPopup, 100, "Icon")
ControlPopup.Style = xtpButtonIcon
CommandBars1.ActiveMenuBar.Controls.Add xtpControlButton, 101, "Change"

End Sub
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
rupert View Drop Down
Newbie
Newbie


Joined: 28 August 2007
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote rupert Quote  Post ReplyReply Direct Link To This Post Posted: 04 September 2007 at 2:07pm
Thank you, that works perfectly. I was failing to add the control to the command bar.
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.172 seconds.