Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Menus&Toolbars » How to set the font face of menubar and its submenu
How to set the font face of menubar and its submenu [message #17368] Sat, 09 August 2008 17:29 Go to next message
kasome is currently offline  kasome
Messages: 78
Registered: July 2008
Location: Taiwan
Member
as title.

I can set the font face of menubar, like "File", "Edit", "About", but the problem is in the submenu, like File->"Open", File->"Save", File->"Close", Edit->"Cut", these font still the same. I have search for the form, but don't get any idea how solve this problem.

[Updated on: Sat, 09 August 2008 17:29]

Report message to a moderator

Re: How to set the font face of menubar and its submenu [message #17369 is a reply to message #17368] Sat, 09 August 2008 17:35 Go to previous messageGo to next message
kasome is currently offline  kasome
Messages: 78
Registered: July 2008
Location: Taiwan
Member
For example, in the following image,
When I set the font as Courier New,
the font of "File", "Edit" and "About" is changed, but the submenu
File->"Open", File->"Close" and File->"Save" didn't change.

index.php?t=getfile&id=1310&private=0
  • Attachment: 00.jpg
    (Size: 15.94KB, Downloaded 707 times)
Re: How to set the font face of menubar and its submenu [message #17370 is a reply to message #17369] Sat, 09 August 2008 17:41 Go to previous messageGo to next message
kasome is currently offline  kasome
Messages: 78
Registered: July 2008
Location: Taiwan
Member
this is another example. as the following image.
the font of "File" "Edit" "About" has been set to "標楷體" Successfully, but the font of the other submenu didn't change at all.

index.php?t=getfile&id=1311&private=0
  • Attachment: 01.jpg
    (Size: 16.63KB, Downloaded 720 times)

[Updated on: Sat, 09 August 2008 17:49]

Report message to a moderator

Re: How to set the font face of menubar and its submenu [message #17371 is a reply to message #17370] Sat, 09 August 2008 18:18 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Have you tried using Chameleon Styles?

Use this:
MenuBar::Style& style = MenuBar::StyleDefault().Write();

Using the members from style you can alter the global look of your menu. It works for any control.

BTW, let me know if you encounter any problems with those characters in menus. I'm trying to iron out all the issues with CJK characters.
Re: How to set the font face of menubar and its submenu [message #17372 is a reply to message #17371] Sat, 09 August 2008 18:34 Go to previous message
kasome is currently offline  kasome
Messages: 78
Registered: July 2008
Location: Taiwan
Member
No, I don't know that, but I will try. And thanks a lot for the reply such quickly.

[Updated on: Sat, 09 August 2008 18:40]

Report message to a moderator

Previous Topic: Menubar rendering problem when navigating with keyboard
Next Topic: [not a bug] Menu isn`t drawn. NOGTK. FreeBSD/Fluxbox
Goto Forum:
  


Current Time: Thu Mar 28 18:18:44 CET 2024

Total time taken to generate the page: 0.01317 seconds