12-02-2019, 09:49 PM
[quote pid='4685' dateline='1575293764']
So the order of declarations matters.
I have
uses
Classes, SysUtils, Vcl.Graphics, Vcl.Controls, IWAppForm, IWApplication, IWColor,
IWTypes, IWCompButton, IWCompRadioButton, IWCompExtCtrls, IWVCLBaseControl,
IWBaseControl, IWBaseHTMLControl, IWControl, IWCompEdit, IWHTMLControls;
and it has turned out that
Winapi.Windows, //for TRGBTriple and scanline
FMX.graphics, //for TBitmap;
has to be put at the beggining of the "uses" part, and now it all works only pretty slowly, comparing with the desktop app with the same code.
[/quote]
So the order of declarations matters.
I have
uses
Classes, SysUtils, Vcl.Graphics, Vcl.Controls, IWAppForm, IWApplication, IWColor,
IWTypes, IWCompButton, IWCompRadioButton, IWCompExtCtrls, IWVCLBaseControl,
IWBaseControl, IWBaseHTMLControl, IWControl, IWCompEdit, IWHTMLControls;
and it has turned out that
Winapi.Windows, //for TRGBTriple and scanline
FMX.graphics, //for TBitmap;
has to be put at the beggining of the "uses" part, and now it all works only pretty slowly, comparing with the desktop app with the same code.
[/quote]