Crash
Neophyte
USA
9 Posts |
Posted - Feb 18 2005 : 11:31:23 PM
|
I made a Game using that relies on DirectX, and i made a helper type program that is just a form in visual basic that contains an image an no more. I have put in some code that will put my program on top of everything, however, DirectX fullscreen objects apparently place themselves ontop thus overlapping my program. To counter this i have attached a timer that "re-puts" my program on top. This has worked however, when you try to click on the image (not game, picture) the game minimizes. Is there anything i can do to prevent this? Also, is there a more efficeint way of placing my control? |
|
Lachlan87
Moderator
USA
160 Posts |
Posted - Feb 19 2005 : 07:19:04 AM
|
Well, you could try telling your DirectX window it should always be on top as well (but before you tell your helper window), otherwise, I really wouldn't know. I think telling it not to show up on the taskbar might work as well.
|
|
|
Catatonic
Neophyte
3 Posts |
Posted - Feb 21 2005 : 10:29:39 AM
|
Hi, I am trying to do the same thing with a program i am making. What code did you use to make the image on top of directx? I do not need to interact with it for my program, it will only be used to display chat messages so hopefully it would work for me.
Sorry i couldn't help you with your problem but maybe you can help with mine?
Thanks |
|
|
Crash
Neophyte
USA
9 Posts |
Posted - Feb 21 2005 : 7:13:17 PM
|
Yours, i can make work IF you do not need to 'touch' the program. What i mean by this is that my current method shows it on top however the directX Game will minimize when you click on the program (you can mouse over it though). If anyone reads this then please tell me how to use the setFocus command, thank you. |
|
|
Catatonic
Neophyte
3 Posts |
Posted - Feb 22 2005 : 02:23:04 AM
|
Hi Crash,
I really don't know if what you want to acomplish is possible. Someone told me that it might be possible to use a proxy dll to display images ontop of directx, I'm not sure it works in VB though. Maye it's worth some research? Look here: http://www.proxy.mikoweb.de/.
Do you mind telling me how you put that image ontop of a directx? It would help me alot.
Thanks in advance. |
|
|
Eric Coleman
Gladiator
USA
811 Posts |
Posted - Feb 22 2005 : 11:57:15 AM
|
Use Windowed mode instead of Fullscreen mode for the directx program. |
|
|
Crash
Neophyte
USA
9 Posts |
Posted - Feb 22 2005 : 3:26:02 PM
|
The program does not support windowed mode, and i do not intend to implement it in order to prevent people from tyrying to make their own programs. In order to put the program on top of directX take the code that your using to put the window on top (its similar to mine) and make a timer, throw the Always On Top function in the timer and have the timer set at like 500ms. Another way, possibly more efficient would be to research Global Hotkeys - If you cant find anything then i will put it down here. And set the Stay On Top function to a HotKey, when your program goes under the game which i am guessing only happens once which is when the game starts up (a new instance of On Top overrides the older one - Z-Ordering) you push the hotkey and are good because now your program has the newest instance of the on top function. If i were using C++ or Assembly this would be SOOOOOO easy =X.
|
|
|
ct_techno
Neophyte
1 Posts |
Posted - Mar 10 2005 : 11:32:36 AM
|
hi crash ... i am doing the same project for my exams and i am in urgent need of the exact ... details u have created man.. can u pls help me and send me the code da .
I wont forget it man .. Pls help....I know u will send it..
Urgent need help !!! |
|
|
Crash
Neophyte
USA
9 Posts |
Posted - Mar 10 2005 : 3:16:57 PM
|
Please contact me through AIM. AIM SN : BORN L3ET MSN SN : omar.alkurd@gmail.com |
|
|