Skip to Content

How do I change the icon in the upper left corner of the Window?

Estimated Reading Time: 1 Minutes

Question:

The icon in the upper left corner of the Window is a blue circle containing the letters "is". How can I replace this with my own icon?

Answer:

If you want to display the Java icon instead of the isCOBOL icon, you can set iscobol.gui.icon to false.

To replace the default window icon with your own, set this variable in your configuration file:
   iscobol.gui.icon_file=[path and name of new icon file]
You can change the icon on a specific window by using the "ICON" syntax in the DISPLAY WINDOW statement.
You pass a bitmap handle returned by calling W$BITMAP using wbitmap-load.

You can also customize the icon that displays in the system tray with W$MENU's WMENUNEW-TRAY.

How do I change the icon in the upper left corner of the Window?