What will you be putting on this window?

Do you want to be able to design it (and place other controls on it),
or do you want to just be able to paint directly on its canvas?

To show a window without activating it, you should use the
SetWindowPos API with the SWP_NOACTIVATE flag. When doing this you
will also need to set the ParentWindow of the class (if it doesn't
descend from TCustomForm) and will also need to set Visible to True.

If you just want to paint directly on the windows canvas, descend from
TCustomControl.

cheers,
Jeremy

On Sat, Jul 26, 2008 at 10:56 PM, Ross Levis <[EMAIL PROTECTED]> wrote:
> I need to display a small window much like a hint window, without affecting
> the focus of the form that activated it.
>
> Currently I have a normal form which is made Visible when required, but the
> main form loses focus when it appears.  The Form has Enabled set to False.
>
> I assume this is possible since a hint window does not take the focus away
> from the activating form.
>
> Should I be using something other than a Form or are there some CreateParams
> I can override?  Note that the window needs to move outside the bounds of
> the main form.
>
> Many thanks,
> Ross.
>
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
>
_______________________________________________
Delphi mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to