Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - RibbonBar use of xtpControlCustom
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

RibbonBar use of xtpControlCustom

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

Joined: 27 July 2008
Location: United States
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote TShriver Quote  Post ReplyReply Direct Link To This Post Topic: RibbonBar use of xtpControlCustom
    Posted: 09 March 2009 at 2:51pm
Using the RibbonBar, I've added a xtpControlCustom item the DateTimePicker and it shows up in the RibbonBar until I click it.  Then it shows up as a button.
 
   Dim TabAdvanced As RibbonTab
   Set TabAdvanced = RibbonBar.InsertTab(7, "&Advanced")
   TabAdvanced.Id = ID_TAB_ADVANCED
   
   Set ViewGroup = TabAdvanced.Groups.AddGroup("&Advanced Controls", ID_GROUP_ADVANCED)
   ViewGroup.ControlsCentering = True
   
   Dim ItemCustom As XtremeCommandBars.CommandBarControlCustom

   Set ItemCustom = ViewGroup.Add(xtpControlCustom, 777, "Time", False, False)
   ItemCustom.Handle = TimePicker.hWnd

Before Click:
 
After Click:
 
Any ideas on how to keep this visible as a control and not a caption???
 
Thanks,
 
Tim
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: 10 March 2009 at 1:56am
Hi,
Try to put control to PictureBox and attach PictureBox instead.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
TShriver View Drop Down
Groupie
Groupie
Avatar

Joined: 27 July 2008
Location: United States
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote TShriver Quote  Post ReplyReply Direct Link To This Post Posted: 10 March 2009 at 9:56am

Oleg,

 
Once again, Thank you for your help.  I had put the control in a picture box but had been referencing the control still.  Upon refernce to the picture box, the control works in the ribbonBar.
 
Cheers!
 
Tim
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.188 seconds.