On Jul 23, 2006, at 12:59 PM, Terry Ford wrote:


On Jul 23, 2006, at 9:15 AM, Karen wrote:

In the release notes for R3 it says:

[New] [All] MenuItem: Added Icon As Picture property to the MenuItem
class. Use this to assign individual pictures to the menu
            item.  Note the default sizes for each platform, since
            REALbasic will not resize the icons for you.

However there is NOTHING about this about this in the MenuItem entry in the language reference and the release note leaves a lot unsaid.

It's quite simple:

MenuItem.Icon= [your picture]. Drag it into the project tab at the correct size as Rb will not scale it for you.

I want to draw them on the fly in some cases to represent state such as for a color menuItem



What are the default sizes for each platform?

I would start with 16 X 16 Pixels and go from there.


If they know what the defaults are, would it have hurt to put them i the language reference or the releases note? Trial and error is time consuming!

Are there any requirements for the type of picture, are RB drawn graphics OK or does it need to a certain platform dependent format loaded from a file (like bmp in Windows)?

I think its requirements are the same as the Picture and Graphics classes.


If so I could just draw them on the fly without having to save to disk first in a specific format

I guess I'll just have to try it.

Thanks,
- karen
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to