Print Page | Close Window

SOLVED: Custom control does not stay on bar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11430
Printed Date: 07 October 2024 at 4:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED: Custom control does not stay on bar
Posted By: chrisABC
Subject: SOLVED: Custom control does not stay on bar
Date Posted: 14 July 2008 at 9:26am
I have got my first CommandBar working  (using code rather than the Designer).

I add two custom controls to it, as shown in CodeJock sample code.  I am adding CodeJock FlatEdit control and also CodeJock Slider Control.

When toolbar first appears everything looks correct. But when I click on a customcontrol BOTH controls jump to different position (back to their original position). If dock the toolbar, custom controls jump back to correct place, and stay with toolbar when I drag the toolbar around.  But when I click a control they junp back to original positions.


What have I forgotten to do??   (yes. I am assuming it is my fault)

SOLUTION:  The problem is only with CodeJock controls.  So I use the standard VB TextBox and Slider Controls and they work OK.



-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6



Replies:
Posted By: Baldur
Date Posted: 14 July 2008 at 11:22am
Put the controls in a container like PictureBox, that works.


Posted By: chrisABC
Date Posted: 14 July 2008 at 1:07pm
Thanks for the idea.

Then I wondered why the CodeJock sample toolbar worked OK.  That doesn't use Pictureboxes.

Aha..... they just use the standard VB controls

So I tried that.  The standard VB controls work OK.  The problem is only with the CodeJock controls.




-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net