![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Question for Devs |
|
|
#1 (permalink) |
|
Addict
Join Date: Sep 2006
Posts: 12
![]() |
Hi,
This question is meant for the TB devs or anyone here who may know the answer. I'm not very active in these forums, but since I plan on making an application that has similar requirements as touch buddy I was wondering I could ask you a question : How (in principle) do you make the game/app window not lose focus when you click the TB window? I mean do you somehow prevent windows through some API to not switch focus, or do you *kick the focus back* to the game window? ![]() If you don't want to tell ok, but maybe a hint? =) //Thanks Last edited by GiGurra; 06-16-2009 at 11:45 PM. |
|
|
|
| Re: Question for Devs |
|
|
#2 (permalink) |
|
Toolkit Creator
Join Date: May 2006
Location: On your Six!
Posts: 2,070
![]() |
What is your application?
You are half right. It is a API call on the Window object. But not of the game/app window. The idea is to not 'give' focus to your app. Thus the game remains the current focus. It's been a long time since I've used it. But it might be the SetWindowPos API function using the NOACTIVATE parameter. Or something like that. You call the API and pass it the hWnd Handle of your window, and tell it to not allow it never to become the active window. You will be able to click on it, but not type text into it since it is not the active window. WBK
__________________
(a.k.a. Snacko) Touchscreen: Innovatek TM-868 8"; Running Local Mode on XP Pro ![]() |
|
|
|
| Re: Question for Devs |
|
|
#3 (permalink) |
|
Addict
Join Date: Sep 2006
Posts: 12
![]() |
Yes that is exactly what I'm looking for!
Any further informatino on the subject is greatly appreciated Thanks Wild.Bill.Kelso I googled it and found what I'm looking for ![]() remarkably simple! Last edited by GiGurra; 06-17-2009 at 10:14 AM. |
|
|
|
| Re: Question for Devs |
|
|
#4 (permalink) |
|
Addict
Join Date: Sep 2006
Posts: 12
![]() |
I was thinking of doing my own app for htis, but i might end up making a TB instead,
however, does TB support active data input through sockets? (I don't want to do file IO since my app will require a very high update rate) |
|
|
|
| Re: Question for Devs |
|
|
#5 (permalink) |
|
Toolkit Creator
Join Date: May 2006
Location: On your Six!
Posts: 2,070
![]() |
I don't know about how tb handles data for sure. But if you setup Lockon, you will see that it writes out the game data to a file. So, I would 'assume' it is sent across the network by file.. But I don't know.
__________________
(a.k.a. Snacko) Touchscreen: Innovatek TM-868 8"; Running Local Mode on XP Pro ![]() |
|
|
|
| Re: Question for Devs |
|
|
#6 (permalink) |
|
Addict
Join Date: Sep 2006
Posts: 12
![]() |
I found this: Adding NoActivate to a New Form - CodeGuru Forums
But it applies to C#, Im not sure how to create the same behaviour to my form in C++ =/, any ideas? |
|
|
|
| Re: Question for Devs |
|
|
#7 (permalink) |
|
Toolkit Creator
Join Date: May 2006
Location: On your Six!
Posts: 2,070
![]() |
C# and C++ are different. C# has a library of objects that they are probably using. I'm pretty sure you need to use that API declaratoin and function call that I first described. VB6 and C++ I believe both use the API. But I am not a C++ programmer. But I know VB6 very well.
__________________
(a.k.a. Snacko) Touchscreen: Innovatek TM-868 8"; Running Local Mode on XP Pro ![]() |
|
|
|
| Re: Question for Devs |
|
|
#8 (permalink) |
|
Addict
Join Date: Sep 2006
Posts: 12
![]() |
I found a way to do it
.Thanks, it would not have been possible without your hints. here is what im making btw : LEAVU development phase, coding MPCD graphics - ED Forums Last edited by GiGurra; 06-28-2009 at 07:13 PM. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|