Recent

Author Topic: OnAfterShow would be REALLY useful sometimes  (Read 4585 times)

Langecrew

  • New member
  • *
  • Posts: 8
OnAfterShow would be REALLY useful sometimes
« on: August 27, 2007, 06:29:36 pm »
I just had a quick suggestion from my experiences as a Delphi programmer:

I cannot even begin to tell you how many times (when programming with Delphi) I've needed to do something automatically, immediately following the appearance of the form on the screen...Times when "OnShow" just does not cut it.

Example:  I want to have a progress bar that shows the progress of something, preferably at the time of "FormCreate"...oh wait, the form is invisible until the progress bar is done, so let's try putting the code in the "OnShow" event...oh wait, the form is still invisible until the progress bar is done, so let's try...oh...wait...that sure is stupid...there is nothing else to try!!

An "OnAfterFormShow" event would be fantastic.



take it to heart, or not.  Just a suggestion.
-Langecrew-

vrull

  • Full Member
  • ***
  • Posts: 118
RE: OnAfterShow would be REALLY useful sometimes
« Reply #1 on: December 07, 2007, 05:27:59 am »
I would suggest the event "OnAfterFirstShow", as "OnCreate" is sometimes too early, and "OnShow" may happen many times.

"OnAfterFisrtShow" would allow to start some action, when the form is already visible, as a result of, say, getting some command-line parameters.

 

TinyPortal © 2005-2018