Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 4.6

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):

Download Icon 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.