Forum > LCL

How to show form w/out focusing it?

(1/3) > >>

I need to do TForm.Show but w/out focusing the form (my app needs the form acting like a tooltip). How can I do it? Do i need to wait some delay (eg 100ms), and force focus on the main form?

(Form will be TopMost.)

Additional question: how IDE shows its editor tooltips w/o focusing them? Is it enough that tooltip's form don't have focusable controls? So IDE tooltips are not focused.

Maybe something like in the attached test project ?

Nope, this project shows focusable form (it gets the focus on showing), while I need to show the form w/o focusing.

Qt/Qt5 have QWidget_setAttribute(Qt_WA_ShowWithoutActivating, True);, don't know for others.


[0] Message Index

[#] Next page

Go to full version