quinta-feira, 26 de julho de 2007

Testes começarão com Rem Objects Data Abstract

I ai galera,
Fui altorizado a postar artigos sobre o remobjects data abstract, então nos próximos dias estarei postando artigos sobre como utiliza-lo.

Bom primeiro gostaria de agradecer Marc Hoffman e toda a equipe da Rem Objects por tornar isto possivel, primeiro por terem criado este framework e por terem me ajuda com muitas coisas ;)

Então fiquem antenados, pois nos proximos dias vocês muitas noticias no blog.

Abraço,
Diego M. Garcia

Rem Objects Data Abstract - The tests will begin

Hi guys,
I've been authorized to post articles about the remobjects data abstract framework, and in the next days I will start posting some articles on how to use it.

First of all I need to Thanks Marc Hoffman and all the Team of Rem Objects to make it possible, by mading the framework and by help me with a lote of things ;)

So keep tunned, the next days will have a lote of news about it in this blog.

Regards,
Diego M. Garcia.

domingo, 1 de julho de 2007

Using the TTrayIcon component

Hello guys, how do you do ?

I've found a litle time today to post an litle article about the ttrayicon component that came with Delphi.

There are some samples that you can found it on the web, but all those I've have seen has a litle problem when you minimize and restore your app. The problem is that it stays two titles of your application on the start menu bar.

So lets do the job.

On onClick event of your TTrayIcon put the follow code:

Self.Show; //comment this line if your D2007 doesnt have update 1
application.Restore;

Drop an TApplicationEvents on your form and put the follow code on OnMinimize event of your TApplicationEvents component.

triPrincipal.Visible := True; //triPrincipal is the TTrayIcon component
Application.Minimize;
Self.Hide;

On OnRestore event write the follow:

//Self.Show; //uncomment this line if your D2007 doesnt have update 1
application.BringToFront;
triPrincipal.Visible := False; //triPrincipal is the TTrayIcon component

Now your application will appear on windows tray without problems.

I hope you guys liked ;)

Regards,
Diego M. Garcia.