[Lazarus] main form icon and other things

shoKwave shokwave at gmx.net
Thu Apr 1 14:12:14 CEST 2010


Am 01.04.2010 09:50, schrieb Alberto Narduzzi:
> 1. I specify (load, from the object inspector) an icon for the 
> application's main form, but when I compile and run the application, 
> its icon is always the red "X" icon; no matter what file I load (be it 
> an .ico, or an .xpm). Nothing changes even if I dynamically load it at 
> runtime, in the form's oncreate handler (in this case I can load only 
> an .ico).
> This thing worked in the previous versions, althou' the correct icon's 
> transparency was obtainable only using an .xpm.
>
> 2. I used to start my program minimized in the application's bar (not 
> the tray area) by specifying WindowState := wsMinimized in the 
> oncreate handler, and it all worked; but now this doesn't.
> To solve the thing I can do a Application.Minimize in the onshow 
> handler, but this causes an annoying flicker (the form is shown in its 
> normal state for a fraction of a second, then minimizes).

Hi,

1. Have you seen the possibility to set an icon in 
project/projectoptions menu?
2. I use Form1.Hide in onShow event and can't see any flicker. Maybe my 
mashine is to fast?

Hope it helps.

Ingo




More information about the Lazarus mailing list