[fpc-pascal]Graph for Windows

Milos Pejovic pejovic at drenik.net
Wed May 29 13:23:17 CEST 2002


Hi Andreas,

> It is possible to change the icon of a 'graph' fpc-program.
> Read in the 'programmers manual' chapter 12, 'Using Windows
> resources'.

Yes, but that is only for the app icon display in Explorer, and
I meant to change the icon of the 'mainwindow' system box.

> Additional information:
> For using an icon, you must define {$APPTYPE GUI} and then put the
> command 'ShowWindow(GetActiveWindow,0);' before the 'InitGraph()'.

This doesn't work on my fpc-1.0.6, i.e. it still shows the default
'idi_Application' icon. Frankly, I don't know how to accomplish this without
the changes in the windows 'graph' source...

Cheers,
Milos







More information about the fpc-pascal mailing list