Recent

Author Topic: TForm.Position:= poDefault bug?  (Read 4917 times)

Avishai

  • Hero Member
  • *****
  • Posts: 1021
TForm.Position:= poDefault bug?
« on: April 15, 2011, 01:13:41 pm »
I'm not sure if this is a bug or it's just someing on my system.  When I set TForm.Position to poDefault of poDefaultSizeOnly, when I run the program and the TForm first shows, the Form is much larger than I have it set.  The area that I set it to is the right color and size, but the rest of the TForm.Client area is black.  If I then resize the TForm, the TForm.ClientArea is filled with the TForm color.  Has anyone else seen this?
Lazarus Trunk / fpc 2.6.2 / Win32

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: TForm.Position:= poDefault bug?
« Reply #1 on: April 15, 2011, 03:20:40 pm »
I cannot reproduce here - Linux+Qt.
I see no difference between poDesigned, poDefault, poDefaultPosOnly and poDefaultSizeOnly here.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Avishai

  • Hero Member
  • *****
  • Posts: 1021
Re: TForm.Position:= poDefault bug?
« Reply #2 on: April 15, 2011, 03:34:03 pm »
Thanks Blaazen.  I wish I could find what is causing it, but so far I have found nothing.  I found a way around it for now so it isn't a problem.  In the Form.OnShow event I add 1 to the width and everything looks fine.  But it is strange.  I won't report it as a bug unless others can reproduce this problem.
Lazarus Trunk / fpc 2.6.2 / Win32

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: TForm.Position:= poDefault bug?
« Reply #3 on: April 15, 2011, 04:46:02 pm »
It is all right here too.

Lazarus 0.9.30 r29749 FPC 2.4.2 i386-win32-win32/win64

Avishai

  • Hero Member
  • *****
  • Posts: 1021
Re: TForm.Position:= poDefault bug?
« Reply #4 on: April 15, 2011, 04:55:52 pm »
Thanks Typo.  I guess it's just something I have going on with my system.  I'm using Lazarus 0.9.31 r29691 FPC 2.4.3 i386-win32-win32/win64 - Win7-64 but I doubt that is where the problem is.  Since I have a work around I don't think I'll worry about it.  Thanks to both you and Blaazen for looking at it.
Lazarus Trunk / fpc 2.6.2 / Win32

 

TinyPortal © 2005-2018