Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to resize button after caption change
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to resize button after caption change

 Post Reply Post Reply
Author
Message
jerry2000 View Drop Down
Newbie
Newbie


Joined: 22 April 2004
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote jerry2000 Quote  Post ReplyReply Direct Link To This Post Topic: How to resize button after caption change
    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
Back to Top
jerry2000 View Drop Down
Newbie
Newbie


Joined: 22 April 2004
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote jerry2000 Quote  Post ReplyReply Direct Link To This Post 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?


Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
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.063 seconds.