Custom control on ribbon |
Post Reply |
Author | |
cdman
Newbie Joined: 15 April 2008 Location: Canada Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 15 April 2008 at 2:45am |
Hi,
I have a ribbon bar in VB6 - Active-x and I would like to add a large label and a shape to it. I've been reading the posts and have seen it suggested that I have to put them in a picturebox and then add the picturebox to the ribbon.
So I put the label and shape into a picturebox in design mode then I declared the control:
Dim ControlClock As XtremeCommandBars.CommandBarControlCustom
then I add the control to the group:
Set ControlClock = GroupDocumentViews.Add(XtremeCommandBars.XTPControlType.xtpControlCustom, ID_CLOCK, "", False, False)
and change the control handle to equal the picturebox handle:
ControlClock.Handle = picClock.hDC
but nothing gets added to the ribbon. I can not find an example of how to do this - just a general description of what to do.
|
|
younicke
Senior Member Joined: 11 March 2005 Status: Offline Points: 107 |
Post Options
Thanks(0)
|
ControlClock.Handle = picClock.hDC
this should be ControlClock.Handle = picClock.hWnd |
|
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 |