Forum > LCL

How to show form w/out focusing it?

(1/3) > >>

AlexTP:
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.)

AlexTP:
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.

BrunoK:
Maybe something like in the attached test project ?

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

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

Navigation

[0] Message Index

[#] Next page

Go to full version