Form out of screen lazarus / 32-Linux ---------------------------------------------------------------------- Riccardo Giuliani · 2011-06-10 10:50 Hi everybody! I'm trying to design - on runtime - a form out of screen, making it appear slowly inside it. Using Screen properties I get correct values, nevertheless form doesn't start from outside, but directly from the extreme screen positions near my coordinates. Under win i can manage to get desired result (using specific functions), under linux (kubuntu 11.04) not yet. Anybody knows how to? Thanks ---------------------------------------------------------------------- JuhaManninen · 2011-06-10 11:05 Quote from: Riccardo Giuliani on June 10, 2011, 12:50:09 pmUnder win i can manage to get desired result (using specific functions), under linux (kubuntu 11.04) not yet. This is a feature in KDE's window manager, not in Lazarus. There may be a setting for it but I am not sure. Juha ---------------------------------------------------------------------- Blaazen · 2011-06-10 11:07 Works. (Linux + Qt , KDE4) Code: [Select]procedure TForm1.FormActivate(Sender: TObject); begin   Left:=1680;   OnActivate:=nil; end; procedure TForm1.Timer1Timer(Sender: TObject); begin   if Left>600 then Left:=Left-4     else Timer1.Enabled:=False; end; Set Timer interval = 50 (ms). ---------------------------------------------------------------------- Riccardo Giuliani · 2011-06-10 12:01 @ JuhaManninen I see, thanks @ Blaazen Doesn't work: I used in my code left and top properties to adjust starting position. Checked yours with same result too. Thanks anyway A friend of mine suggested me a simple idea: just set form's height to 0 and get it up step by step. ---------------------------------------------------------------------- Shebuka · 2011-06-10 12:18 Have you tried to use setbounds? and i think you need to show the form before you can move it from original position to out of screen. ---------------------------------------------------------------------- Riccardo Giuliani · 2011-06-10 12:26 Quote from: Shebuka on June 10, 2011, 02:18:46 pmHave you tried to use setbounds? and i think you need to show the form before you can move it from original position to out of screen. Not setbounds directly, but top property has been used after form showed; to be sure i tried with a new form project, a button on, clickbutton event which i set form's position in. Nothing to do.