Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to remove the popup menu width limit?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to remove the popup menu width limit?

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


Joined: 03 August 2005
Location: Germany
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nico Quote  Post ReplyReply Direct Link To This Post Topic: How to remove the popup menu width limit?
    Posted: 03 August 2005 at 7:10am

Hello!

My menu looks like this:

The caption "Extra long! ..." is longer than displayed.

How do I avoid cutting off the caption?

Regards, Nico.



Edited by Nico
Back to Top
SuperMario View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2005 at 11:09am
Take a look at CXTPPopupBar::m_dMaxWidthDivisor
Back to Top
SuperMario View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2005 at 11:10am
To use, set value to .5 for popup menut to occupy 50% of available area, .7 for 70%, etc.  I think 33% is the default.

Edited by SuperMario
Back to Top
Nico View Drop Down
Newbie
Newbie


Joined: 03 August 2005
Location: Germany
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nico Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2005 at 5:27am

Thanks, that fixed it.

I just called:

CXTPPopupBar::m_dMaxWidthDivisor = 1.0;

just before:

InitCommandBars()

in:

CMainFrame::OnCreate(...)

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.047 seconds.