JTalton's picture

Issue: GameWindow Icon Support

Project:The Open Toolkit library
Category:feature request

I am getting to the point in my project where it would be nice to post screen shots. It would be nice to have Icon support for the GameWindow.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture


Fortunately for us, we can reuse the implementation from Mono WinForms.

On X11, we simply set the NET_WM_ICON property (search for SetIcon on X11Internal.cs).

Does anyone know how this can be achieved on Win32 and/or MacOS?

the Fiddler's picture


Status:open» postponed

This depends on the results of http://www.opentk.com/node/668 ("Investigate possible WinForms-based GameWindow implementation.")

the Fiddler's picture


Status:postponed» closed (invalid)

This will not be implemented. Please set an application icon through your IDE.

ghiboz's picture


Version:all versions» 0.9.x-dev
Status:closed (invalid)» open

Hi, I'm using visual studio 2005, and how can I set the icon on the GameWindow class??

thanks in advance

the Fiddler's picture


You can set the application icon through your project properties: right click your project in the VS2005 solution pane, select properties and click on the "Application" tab (the first one). Under the "Resources" section, you can select a custom application icon.

ghiboz's picture


thanks Fiddler, this is what I made, in fact the .exe icon is the icon that I set up in the properties of my application, but if the gamewindow is windowed the window icon is the default white form, and also in the task bar appears this icon and not the .exe icon

thanks in advance

the Fiddler's picture


Status:open» confirmed

Ah, I see. Will try to fix this in one of the upcoming releases.

ghiboz's picture


thanks very much fiddler!

rakkarage's picture


having this problem as well, thanks

edit: do i need a special branch to get icons working still?

the Fiddler's picture


No, there is no way to set the icon right now.

Edit: do you know how to retrieve the icon resource from the current executable? If there is a way to do this, we can add icon support trivially in the next version of OpenTK.