Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Oct 31, 2014 8:27 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Need contextual popup menu with custom font and sub menus
PostPosted: Mon Apr 09, 2012 7:11 am 
Offline

Joined: Fri Sep 30, 2005 10:01 am
Posts: 283
Location: Germany, Munich
I need to show a contextual menu that has custom font settings.

The problem is that the MenuItem class doesn't let me set a custom font. I do not need invidual items with their own fonts - I just want the entire menu with all items use the same custom font and size.

How do I solve this? Are there declares that let me set the fontsize of a MenuItem? The app is Carbon based, in case that matters.

_________________
User of RB since first version. Provider of many free and outdated plugins.
Code for sharing: http://www.tempel.org/RB/Resources
Arbed, a unique tool for editing projects: http://www.tempel.org/Arbed
Zip compression classes: http://www.tempel.org/RB/ZipPackage


Top
 Profile  
 
 Post subject: Re: Need contextual popup menu with custom font and sub menu
PostPosted: Mon Apr 09, 2012 7:49 am 
Offline

Joined: Fri Sep 30, 2005 10:01 am
Posts: 283
Location: Germany, Munich
Nevermind, I found a solution with the MBS plugins:

Before showing the menu via its Popup function, instantiate a CarbonApplicationEventsMBS subclass that will set the MenuFontSize in its MenuPopulate event handler.

_________________
User of RB since first version. Provider of many free and outdated plugins.
Code for sharing: http://www.tempel.org/RB/Resources
Arbed, a unique tool for editing projects: http://www.tempel.org/Arbed
Zip compression classes: http://www.tempel.org/RB/ZipPackage


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group