Home UserCP Memberlist Register Calendar FAQ
Home

Go Back   Official TouchBuddy Forum > TB General Discussion > Public Chat
Register FAQDonate Members List Calendar Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Display Modes
Question for Devs
Old 06-16-2009, 11:36 PM   #1 (permalink)
Addict
 
Join Date: Sep 2006
Posts: 12
GiGurra is on a distinguished road
Default Question for Devs

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.
GiGurra is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Question for Devs
Old 06-17-2009, 02:20 AM   #2 (permalink)
 
Wild.Bill.Kelso's Avatar
Toolkit Creator
 
Join Date: May 2006
Location: On your Six!
Posts: 2,070
Wild.Bill.Kelso is on a distinguished road
Default Re: Question for Devs

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


Wild.Bill.Kelso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Question for Devs
Old 06-17-2009, 10:07 AM   #3 (permalink)
Addict
 
Join Date: Sep 2006
Posts: 12
GiGurra is on a distinguished road
Default Re: Question for Devs

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.
GiGurra is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Question for Devs
Old 06-17-2009, 10:09 AM   #4 (permalink)
Addict
 
Join Date: Sep 2006
Posts: 12
GiGurra is on a distinguished road
Default Re: Question for Devs

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)
GiGurra is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Question for Devs
Old 06-17-2009, 05:34 PM   #5 (permalink)
 
Wild.Bill.Kelso's Avatar
Toolkit Creator
 
Join Date: May 2006
Location: On your Six!
Posts: 2,070
Wild.Bill.Kelso is on a distinguished road
Default Re: Question for Devs

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


Wild.Bill.Kelso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Question for Devs
Old 06-20-2009, 06:48 PM   #6 (permalink)
Addict
 
Join Date: Sep 2006
Posts: 12
GiGurra is on a distinguished road
Default Re: Question for Devs

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?
GiGurra is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Question for Devs
Old 06-21-2009, 01:42 AM   #7 (permalink)
 
Wild.Bill.Kelso's Avatar
Toolkit Creator
 
Join Date: May 2006
Location: On your Six!
Posts: 2,070
Wild.Bill.Kelso is on a distinguished road
Default Re: Question for Devs

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


Wild.Bill.Kelso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Question for Devs
Old 06-27-2009, 04:55 PM   #8 (permalink)
Addict
 
Join Date: Sep 2006
Posts: 12
GiGurra is on a distinguished road
Default Re: Question for Devs

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.
GiGurra is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:00 PM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

  www.touch-buddy.com        Archive  


Footer
vBSkinworks Top