Maybe I've found a new bug, maybe not, but have a look at the following
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, ComCtrls,
StdCtrls;
type
TForm1 = class(TForm)
StaticText1: TStaticText;
TrackBar1: TTrackBar;
procedure TrackBar1Change(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
{ TForm1 }
procedure TForm1.TrackBar1Change(Sender: TObject);
var s: string;
begin
str(trackbar1.position:2, s);
statictext1.caption:=s;
end;
initialization
{$I unit1.lrs}
end.
There is a standard Form, a StaticText, a DragBar;
... running the app and dragging the dragbar ...
... NOTHING HAPPENS!!!
the callback routine has never been called!!!
In Delphi6 the above code runs well, and the static text displays the dragbar position.
What's wrong?
BTW I'm actually running win32 + Laz-0.9.2 beta.