Changing an app's icon

The default Red window icon (displaying the towers of Hanoi) can be replaced with your own .ico file as follows:

;-- see Chapter09/icon.red:Red [    needs: 'view    icon: %gaming.ico]view []

This window displays as:

But to see this new icon, the app must be compiled as red -r icon.red. This also works for the icon of a non-GUI app shown in the app-tray.

Get Learn Red - Fundamentals of Red now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.