Article Preview
Buy Now
COLUMN
Menu Glyphs
Icons for menu entries
Issue: 4.6 (July/August 2006)
Author: Christian Schmitz
Author Bio: Christian Schmitz is the creator of the Monkeybread Software REALbasic Plugins.
Article Description: No description available.
Article Length (in bytes): 7,530
Starting Page Number: 42
Article Number: 4617
Resource File(s):
4617.zip Updated: 2006-07-16 09:38:35
Related Link(s): None
Excerpt of article text...
Recently a reader asked me how to get an icon onto the menubar for a menu entry on Windows. Sadly, there is no direct way in REALbasic to do this. Even plugins can't always help. So this article will show you how to do menu icons in REALbasic 5.5 to 2006r2. Size of menu icons?
The first question to ask is how big the icons need to be. For Windows XP it should be 13 by 13 pixels. But instead of hard coding it, we want to ask the system for the required size. Different themes may use different sizes. The GetSystemMetrics function will do this. In the documentation for this function, we find the C declaration:
...End of Excerpt. Please purchase the magazine to read the full article.