Print Page | Close Window

How to resize button after caption change

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2051
Printed Date: 07 November 2025 at 2:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to resize button after caption change
Posted By: jerry2000
Subject: How to resize button after caption change
Date Posted: 30 March 2005 at 3:46am
I use a CXTPControlPopup in a CXTPToolBar. At creation time a set the
ControlPopup to display the icon ann an Text.

When i try to set the caption (after creation; for example on button
press) to another text, the button does not resize.
I have tried to call DelayLayoutParent(), DelayRedrawParent() or
Redraw() of the toolbar, but nothing help.
Is there another way to size the button to fit to the caption?

I use version 9.601
thanks

Gerhard



Replies:
Posted By: jerry2000
Date Posted: 30 March 2005 at 8:09am
I have the problem

I use the bar in a dialogbox. This dialogbox is in a extension dll, thats mean the main window does nothing no about the Toolkit. I have now used the function OnRecalcLayout(). In this function a pointer to XTPCommandBars is 0. Because of this pointer is 0 no recalc is made.

Does somewhere know how can i solve this problem?




Posted By: Oleg
Date Posted: 30 March 2005 at 8:28am

Toolbar can't resize yourself in Dialog.

You must call RepositionBars to update size of Controls and its position.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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