Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - how to change the size of the toolbar?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to change the size of the toolbar?

 Post Reply Post Reply
Author
Message
evoX View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 July 2007
Status: Offline
Points: 207
Post Options Post Options   Thanks (0) Thanks(0)   Quote evoX Quote  Post ReplyReply Direct Link To This Post Topic: how to change the size of the toolbar?
    Posted: 20 November 2008 at 2:07pm
I have a toolbar in a propertysheet and I want the toolbar to fill the entire dialog width, is it possible to add spaces between buttons to automatically fill the blank space?
 
Thanks !
 
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 21 November 2008 at 2:49am
Hi,
Try to call pToolBar->EnableDocking(xtpFlagAlignTop|xtpFlagStretched);
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
Back to Top
evoX View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 July 2007
Status: Offline
Points: 207
Post Options Post Options   Thanks (0) Thanks(0)   Quote evoX Quote  Post ReplyReply Direct Link To This Post Posted: 21 November 2008 at 5:39am
Hi,
 
  Thanks, this have stretched the toolbar, but the buttons still remained in the same position.
   Is it possible to the move the buttons to the right ? (because the toolbar is on the bottom of the dialog and it does not look good in the left position)
   Or the best thing would be to add spaces between buttons automatically to fill the space...
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)
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.156 seconds.