Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - What is xtpFlagSmartLayout?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

What is xtpFlagSmartLayout?

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

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: What is xtpFlagSmartLayout?
    Posted: 25 February 2020 at 10:35am
I see a toolbar can have the xtpFlagSmartLayout flag set. I tried it out. What does "smart layout" actually mean? The help file simply says the same thing as the include file. It is a "smart layout" flag.

What is smart about it? I am not floating the toolbar, only allowing it to dock. So far, I see no difference at all when I add the flag to see how smart it is.
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 443
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Posted: 26 February 2020 at 10:55pm
If memory serves, this flag provides ribbon-like layout behavior (e.g. resizing to make space, etc.) for regular toolbars.

See "CommandBars.SmartLayout.exe" from the CJ samples.
Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2020 at 9:01am
Thanks. That makes sense now. I just added buttons all using the same style. But the toolbar is a command bar and I could add popups and other controls like edit boxes if I wanted to.
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.141 seconds.