Jump to content

Position of Form changes if titlebar-mousedown


erich.wanker

Recommended Posts

Hi,

if i mousedown the closebutton or titlebar for 1 seconds  - the form jumps in the center of the screen:

  BorderStyle = bsSizeToolWin
  FormStyle = fsStayOnTop
  Position = poDesigned

procedure TuniForm.UniFormCreate(Sender: TObject);
begin
  self.Top:=40;
  self.Height:=MainForm.Height-80;
  self.Left:= MainForm.Width-20-self.Width;

..

 

 

it seems that a javascript-value does not recognite the left and top values what are given at create-time..

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...