Re: [Lazarus] Loading icon from Application.Icon

2009-02-02 Thread Guionardo Furlan
Don't worked. The icon is loaded by the application. begin Application.Title := uTipos.ProgTitulo; Application.Initialize; Tray.Cria; Application.Run; end. 2009/2/1 Vincent Snijders vincent.snijd...@gmail.com: Guionardo Furlan schreef: The application don't have a main form. Look:

Re: [Lazarus] Loading icon from Application.Icon

2009-02-02 Thread Paul Ishenin
Guionardo Furlan wrote: Don't worked. The icon is loaded by the application. begin Application.Title := uTipos.ProgTitulo; Application.Initialize; Tray.Cria; Application.Run; end. It is all with 0.9.27 I suppose? Best regards, Paul Ishenin.

Re: [Lazarus] Loading icon from Application.Icon

2009-02-01 Thread Paul Ishenin
Guionardo Furlan wrote: Windows XP SP3 FPC 2.2.2 Lazarus 0.9.26 In 0.9.27 we've made rather big icon rework. Please test with either 0.9.27 snapshot or with svn version. I think your problem is solved. Best regards, Paul Ishenin. ___ Lazarus

Re: [Lazarus] Loading icon from Application.Icon

2009-02-01 Thread Felipe Monteiro de Carvalho
Can you post a very simple, but complete, example which fails? The code you showed on the first e-mail was too short to check if your code is wrong or if it's a bug in TIcon. -- Felipe Monteiro de Carvalho ___ Lazarus mailing list

Re: [Lazarus] Loading icon from Application.Icon

2009-02-01 Thread Héctor Fiandor Rosario
Dear Paul Ishenin: I want to know if in my 0.9.27 I can insert a gif (moving chetach) in my application first form. thanks in advance, Ing. Héctor F. Fiandor hfian...@infomed.sld.cu Guionardo Furlan wrote: Windows XP SP3 FPC 2.2.2 Lazarus 0.9.26 In 0.9.27 we've made rather big icon

Re: [Lazarus] Loading icon from Application.Icon

2009-02-01 Thread Guionardo Furlan
The application don't have a main form. Look: program nodort; {$mode objfpc}{$H+} uses {$IFDEF UNIX} {$IFDEF UseCThreads} cthreads, {$ENDIF} {$ENDIF} Interfaces, // this includes the LCL widgetset Forms { you can add units after this }, uEvento, uTrayIcon, uResources, uConfigura,

Re: [Lazarus] Loading icon from Application.Icon

2009-02-01 Thread Vincent Snijders
Guionardo Furlan schreef: The application don't have a main form. Look: program nodort; {$mode objfpc}{$H+} uses {$IFDEF UNIX} {$IFDEF UseCThreads} cthreads, {$ENDIF} {$ENDIF} Interfaces, // this includes the LCL widgetset Forms { you can add units after this }, uEvento,

[Lazarus] Loading icon from Application.Icon

2009-01-31 Thread Guionardo Furlan
Hello lazarentos, I've an TTrayIcon instance and need to use the same icon defined in the Application.Icon. I've tried: * TrayIcon.Assign(Application.Icon) * TrayIcon.LoadFromResourceName(HInstance, 'trayicon'); // Included an resource file with the icon i want Both don't worked. No errors, but

Re: [Lazarus] Loading icon from Application.Icon

2009-01-31 Thread Felipe Monteiro de Carvalho
Which operating system, fpc and lazarus versions? Does the example application work for you? It's in examples/trayicon and it loads the icon from the LFM (inside the executable) -- Felipe Monteiro de Carvalho ___ Lazarus mailing list