![]() |
How to resize button after caption change |
Post Reply
|
| Author | |
jerry2000
Newbie
Joined: 22 April 2004 Status: Offline Points: 29 |
Post Options
Thanks(0)
Quote Reply
Topic: How to resize button after caption changePosted: 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 |
|
![]() |
|
jerry2000
Newbie
Joined: 22 April 2004 Status: Offline Points: 29 |
Post Options
Thanks(0)
Quote Reply
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? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |