tags:

views:

175

answers:

2

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

+1  A: 

You are probably using older version of delphi.

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

dmajkic
A: 

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)?

Vegar
BringtoFront did not do anything, however I dont have Application main form at all, this is Systray background app..
Tom