ginsonic
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!
don't tell me to set my form to be showed on top :). not enough!
ASKER
is not. when start the game my form is somewhere on back.
ASKER
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 ;-)
--> if so, no chance
meikl ;-)
ASKER
http://www.xfire.com/ can do it :)
ASKER
Hm, the experts ladder is different from my last visit here ( one year ago :P )
ASKER
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 :)
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 ;-)
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.
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
yes, this is the problem and solution :) any idea how can do that?
Try this component:
http://www.torry.net/vcl/forms/other/topwin.zip.
It stays OnTop even when it's not focused.
http://www.torry.net/vcl/forms/other/topwin.zip.
It stays OnTop even when it's not focused.
usual it should be enough to set the formStyle to fsStayOnTop
(of course it must be the mainForm!)
meikl ;-)