Board index » delphi » Taskbar Button

Taskbar Button

Hi
How can you get the taskbar buttons text
to change at the same time when typing
in a editbox of your form.
Thanks in advance
Tez

 

Re:Taskbar Button


Quote
Terry Bennett wrote:

> Hi
> How can you get the taskbar buttons text
> to change at the same time when typing
> in a editbox of your form.
> Thanks in advance
> Tez

Use the edit box OnChange event to change the form's caption.  The
form's caption is the text that will appear on the task bar button.

Denis Deslauriers

Re:Taskbar Button


Quote
> > How can you get the taskbar buttons text
> > to change at the same time when typing
> > in a editbox of your form.
> > Thanks in advance
> > Tez

> Use the edit box OnChange event to change the form's caption.  The
> form's caption is the text that will appear on the task bar button.

You should also change Application.Title as well - that's the caption
that appears when you minimize your program.

Nicolai Jorgensen

Re:Taskbar Button


Quote
Nicolai J?rgensen <dko1...@vip.{*word*104}city.dk> wrote:

:> > How can you get the taskbar buttons text
:> > to change at the same time when typing
:> > in a editbox of your form.
:> > Thanks in advance
:> > Tez
:>
:> Use the edit box OnChange event to change the form's caption.  The
:> form's caption is the text that will appear on the task bar button.
: You should also change Application.Title as well - that's the caption
: that appears when you minimize your program.
It's the text that always appears, not just when the program is minimized.

: Nicolai Jorgensen
Roel

Re:Taskbar Button


Quote
Terry Bennett wrote:

> Hi
> How can you get the taskbar buttons text
> to change at the same time when typing
> in a editbox of your form.
> Thanks in advance
> Tez

They are right, what you need to do in the OnChange event is this:

Application.Title := Edit1.Text;

And if you also want to chante the form's caption:
MainForm.Caption := Edit1.Text;

Other Threads