Link to home
Create AccountLog in
Avatar of ginsonic
ginsonicFlag for Romania

asked on

Want my application form on top all the time

i have a game (GW, WOW, ..name it how wish)  that run in full screen. in same time i run my application. but allways when i activate the game my form is behind and can't show it on top. how can i program my from to be ALWAYS ON TOP. I want to display a clock all the time over any application.

don't tell me to set my form to be showed on top :). not enough!
Avatar of kretzschmar
kretzschmar
Flag of Germany image

??

usual it should be enough to set the formStyle to fsStayOnTop
(of course it must be the mainForm!)

meikl ;-)
Avatar of ginsonic

ASKER

is not. when start the game my form is somewhere on back.
work just if I set the game to run in a window. else if is maximized the gave fill the screen and my windoe diseapear.
well, then your game run in another device-context and not maximized on your window-desktop
--> if so, no chance

meikl ;-)
http://www.xfire.com/ can do it :)
Hm, the experts ladder is different from my last visit here ( one year ago :P  )
and how i see my avatar isn't set as guru ( my rank on Ex-Ex ).

Sorry for off topic comments. But happy to back here :)
phew, this is out of my expirience, but guess, there is a lot more to do, to get it work

sorry, so i'm out of help in this case

about your avatar --> questioners are so displayed, regardless about its expert-state
(if you comment on a q not owned by yours, you should see your guru-state)

meikl ;-)
OnShow event, put this code

SetWindowPos(Form1.Handle,
              HWND_TOPMOST,
              0, 0, 0, 0,
              SWP_NOMOVE or SWP_NOSIZE or SWP_SHOWWINDOW);

This will stay the form always on the top.
ASKER CERTIFIED SOLUTION
Avatar of ZhaawZ
ZhaawZ
Flag of Latvia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
yes, this is the problem and solution :) any idea how can do that?

Avatar of RuntimeError007
RuntimeError007

Try this component:

http://www.torry.net/vcl/forms/other/topwin.zip.

It stays OnTop even when it's not focused.