Recent

Author Topic: Problem on Form.OnShow event  (Read 8600 times)

typo

  • Hero Member
  • *****
  • Posts: 3051
Problem on Form.OnShow event
« on: April 14, 2010, 08:12:52 pm »
I am having problems setting Window values on OnShow event of the form. I tested on OnActivate and OnCreate events and it works. But why it does not on OnShow event?
« Last Edit: April 14, 2010, 08:17:43 pm by typo »

cpalx

  • Hero Member
  • *****
  • Posts: 753
Re: Problem on Form.OnShow event
« Reply #1 on: April 14, 2010, 08:23:58 pm »
what kind of problems???

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Problem on Form.OnShow event
« Reply #2 on: April 14, 2010, 08:35:37 pm »
None of the window properties could be set on this event, Left, Top, Width and Height.

Lazarus 0.9.29 r24105 FPC 2.4.0 i386-win32-win32/win64
« Last Edit: April 14, 2010, 08:40:37 pm by typo »

bonmario

  • Sr. Member
  • ****
  • Posts: 346
Re: Problem on Form.OnShow event
« Reply #3 on: April 14, 2010, 08:45:22 pm »
The problem is this? http://bugs.freepascal.org/view.php?id=16087

If is the same, for the moment, you can rebuild IDE with the option
Code: [Select]
-dOldAutoSize

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Problem on Form.OnShow event
« Reply #4 on: April 14, 2010, 08:49:48 pm »
This is the problem.

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: Problem on Form.OnShow event
« Reply #5 on: April 15, 2010, 09:48:34 am »
You can also set variables at first OnIdle(), assigned at OnShow and immediately released after first use.
Lazarus 1.7 (SVN) FPC 3.0.0

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Problem on Form.OnShow event
« Reply #6 on: April 15, 2010, 02:33:06 pm »
-dOldAutoSize semms to work fine.

 

TinyPortal © 2005-2018