Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Problem on Form.OnShow event
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Controls inside the form ...
by
GetMem
[
Today
at 08:04:09 pm]
Let's make Shift+wheel sc...
by
zeljko
[
Today
at 07:44:22 pm]
Component to sdf file - M...
by
paweld
[
Today
at 07:40:51 pm]
Getting info that is very...
by
alpine
[
Today
at 07:32:16 pm]
Compiler directive - what...
by
howardpc
[
Today
at 07:30:46 pm]
is there a "Lazarus.ini"?
by
Nicole
[
Today
at 07:10:31 pm]
"TestAll" project issues
by
JuhaManninen
[
Today
at 07:00:22 pm]
Query an image in a TPopu...
by
petevick
[
Today
at 06:57:54 pm]
CryptLib + SigSev (Runtim...
by
KennethH
[
Today
at 06:47:07 pm]
Online Package Manager
by
GetMem
[
Today
at 06:40:07 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Problem on Form.OnShow event (Read 8098 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
»
Logged
LazarusBrasil.Org
cpalx
Hero Member
Posts: 736
Re: Problem on Form.OnShow event
«
Reply #1 on:
April 14, 2010, 08:23:58 pm »
what kind of problems???
Logged
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
»
Logged
LazarusBrasil.Org
bonmario
Sr. Member
Posts: 340
Re: Problem on Form.OnShow event
«
Reply #3 on:
April 14, 2010, 08:45:22 pm »
The problem is this?
**://bugs.freepascal.org/view.php?id=16087
If is the same, for the moment, you can rebuild IDE with the option
Code:
[Select]
-dOldAutoSize
Logged
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.
Logged
LazarusBrasil.Org
Ocye
Hero Member
Posts: 518
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.
Logged
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.
Logged
LazarusBrasil.Org
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Problem on Form.OnShow event
TinyPortal
© 2005-2018