[Lazarus] how to change an application title on the taskbar

Vincent Snijders vsnijders at vodafonevast.nl
Fri Jun 26 09:06:02 CEST 2009


Roberto Padovani schreef:
> 2009/6/26 Paul Ishenin <ip at kmiac.ru>:
>> Roberto Padovani wrote:
>>> Hi List,
>>>
>>> does anyone know how to change the application title on the windows xp
>>> taskbar?
>> Application.Title := 'New title'?
> 
> Obviously, I am writing to the list just because that does not work.
> Any change to Application.Title in the form unit or in the .lpr main
> program after Application.Run is not propagated to the taskbar.
> 

This works on windows (form with on button):
procedure TForm1.Button1Click(Sender: TObject);
begin
   Application.Title:='New Name';
end;

Maybe you don't give windows time to make that change, because you are 
processing. (one long event handler without processing message)

Vincent





More information about the Lazarus mailing list