manual_usuario:outros:formatadorrelatoriodesenv:fr_03_timing

Essa é uma revisão anterior do documento!


<fs x-large>Formatador de Relatório - ReportBuilder (Resumo do guia do desenvolvedor)</fs>

CÓDIGO - Modelo do evento delphi - Timing


Events fire at a moment when a meaningful action can be taken. In the case of a TButton.OnClick event, the meaningful action would be the one intended by the developer as the basic purpose of the button. This purpose might be to launch another window or close the current form. But not every action is appropriate within the context of the event. It would certainly not be appropriate to free the button in the OnClick or to call the OnClick event handler from within itself. These calls might be OK for other events of the application, but not within the context of the OnClick event.

Eventos incêndio em um momento em que uma ação significativa podem ser tomadas. No caso de um evento TButton.OnClick, a ação significativa seria o pretendido pelo desenvolvedor como o propósito básico do botão. Este objetivo pode ser o de lançar outra janela ou perto a forma atual. Mas nem toda ação é apropriada no contexto do evento. Certamente não seria apropriado para libertar o botão no OnClick ou para chamar o manipulador de eventos OnClick de dentro de si mesmo. Estas chamadas podem ser OK para outros eventos do aplicativo, mas não dentro do contexto do evento OnClick.

manual_usuario/outros/formatadorrelatoriodesenv/fr_03_timing.1420554140.txt.gz · Última modificação: por administrador