• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1557
  • Last Modified:

Application.BringToFront / Distribution

Hi,

I hope someone can help me out with this:

My programm lists some items. With a double click on a selected item,
the item is being transfered into a ms-word document. The "normal" Windows
behaviour would cause my programm to drop into background - a taskbar entry
remains...To bring my application back into business i used the
Application.BringToFront Command. This works fine so far. But - it
only works with my developement workstation. if i install my programm
on another PC, without the delphi environment, the application is not
"breaking through". It stays in the background - the taskbar entry is
blinking.

What is wrong - is there a special BPL, that i have to install?
or what could it be?

any hint would be fantastic!






0
longhugo
Asked:
longhugo
1 Solution
 
ITugayCommented:
Hi longhugo
I think that is not issue of Delphi environment, it looks like you have different Windows versions (W98 and W2K)
0
 
longhugoAuthor Commented:
Hi ITugay,
no - both systems are Win98SE :(
0
 
DaFoxCommented:
Hi.

Does this solve your problem?
-> http://www.swissdelphicenter.ch/en/showcode.php?id=261

Markus
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
BAlexandrovCommented:
There was a setting somewhere (in Windows) to prevent applications to steal the focus.

See at Explorer options, or TweakUI tool

Bojidar Alexandrov
0
 
longhugoAuthor Commented:
Bojidar,

do you know where i can find the settings exactly?

longhugo
0
 
BAlexandrovCommented:
Get TweakUI - tool from Microsoft
On General Page.
0
 
longhugoAuthor Commented:
Doesn't work (tried HKAY_LOCAL_USER\Control Panel\Desktop with ForegroundLockTimeout=0 (bin))

any other ideas?
0
 
mocartsCommented:
// if minimized
ShowWindow(Handle, SW_RESTORE);
// must receive input focus
SetForegroundWindow(Handle);
// put in front of all windows
SetWindowPos(GetForegroundWindow(), Handle, 0, 0, 0, 0,
         SWP_SHOWWINDOW or SWP_NOMOVE or SWP_NOSIZE);

wbr, mo.
0
 
longhugoAuthor Commented:
thx - u r the best
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now