当前位置: 动力学知识库 > 问答 > 编程问答 >

delphi - Focus not moved to inputbox() and box remains behind of apps (Vista)

问题描述:

How can I make my delphi systray app using standard vcl inputbox() function to request focus, now dialog box seem to remain in taskbar and dialog does not open to front of other apps. This is Vista issue I think. Creating own form would solve it I believe.

ps: I can edit dialogs.pas if needed, it seem to be using Tcustomforms.showmodal

网友答案:

You are probably using older version of delphi.

Some Vista specific workarounds for older delphi versions can be fond here.

网友答案:

Have you tried an application.BringtoFront() before you launch the inputbox?

Editing dialogs.pas seems to be a bad ide. I would rather make my own inputbox-form.

Applications stealing focus can be quite annoying, though... How do you launch the inputbox? On a timer, or on a userrequest (e.g. clicking on the icon)?

网友答案:

Try Application.ProcessMessages; just before inputbox call.

分享给朋友:
您可能感兴趣的文章:
随机阅读: