XNA Game Development Forums
2012/05/21 19:23:08 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: Interface problem. Help!!  (Read 2112 times)
XNASorcerer
Newbie
*
Offline Offline

Posts: 25



View Profile
« on: 2007/05/07 09:41:25 »

Hi.

I created this interface:

 

I am using a few UserControls to make this.

And and you can see, it has a propertyGrid panel. My problem is that I can access every property of it, but I can not write anything inside any of my controls. I also have a richtextbox and I can not type on it. Mouse input is working fine and I can click inside the richtextbox and the focus go to it, but when I try to type, nothing happens.

This problem is also happening with simple textBoxes, richtextboxes and any controls that accept text.

Here is a simple project showing this. It has a button and a RichTextBox. Just click inside of it and then try to type any text. Nothing will happen.

http://putstuff.putfile.com/77147/6846978   - 58 kB

Does anyone know a way to fix this problem?



Thanks
Logged
CarlosFreitas
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #1 on: 2007/05/07 14:23:20 »

Hey there !

I just made this little project that captures the keyboard to a TextBox in a form..

Dont know if this is the best / correct way to do it, but anyway...

http://www.indiegamesdude.com/textbox.zip

Just unzip and open / compile the solution and there u go.

Best Regards
Logged
XNASorcerer
Newbie
*
Offline Offline

Posts: 25



View Profile
« Reply #2 on: 2007/05/08 07:09:30 »

Hey there !

I just made this little project that captures the keyboard to a TextBox in a form..

Dont know if this is the best / correct way to do it, but anyway...

http://www.indiegamesdude.com/textbox.zip

Just unzip and open / compile the solution and there u go.

Best Regards

Thanks, but that won't do it. I have also a propertygrid control, that shows dynamics textbox fields depending on what I select, and I can not be doing that for every.

I don't understand why mouse input works for the usercontrols and keyboard input doesn't.
Logged
CarlosFreitas
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #3 on: 2007/05/08 17:35:39 »

Hi there.

shouldnt we capture the keyboard typing and convert it to normal text to make the input , making maybe some coding stuff in the main loop ?

Sorry, I'm also new to C#, hope someone more experienced can help.
Logged
Chr0n1x
Global Moderator
Sr. Member
*****
Offline Offline

Posts: 307


View Profile WWW
« Reply #4 on: 2007/05/09 00:28:03 »

Possibly because the way XNA handles forms, it doesnt capture the keyboard input normally? You'd need to write something up yourself to capture them using a KeyboardState.
Logged

CarlosFreitas
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #5 on: 2007/05/09 09:46:36 »

Possibly because the way XNA handles forms, it doesnt capture the keyboard input normally? You'd need to write something up yourself to capture them using a KeyboardState.

So, Sorcerer, maybe that code I posted, with some adaptions, can work for us. I will give a try on it tonight with your sample project, if you dont mind.
Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
3d Engine-- Tutorial 2 problem. Hazy Mind 3D Engine ZebraHDH 4 2203 Last post 2006/12/03 14:20:43
by tuxdalinux
Got a problem with an .x file Hazy Mind XNA Engine bobbie_dache 8 2784 Last post 2007/01/16 12:26:30
by bobbie_dache
Screen Flickering problem... Hazy Mind XNA Engine simpson.jon 4 1701 Last post 2007/02/25 17:09:05
by simpson.jon
Strange Problem ( Advice/Assistance Needed Please :-) ) General Discussion DaphydTheBard 4 1778 Last post 2007/03/17 10:23:52
by DaphydTheBard
Animations! But one problem... Hazy Mind XNA Engine EclipsE 2 1415 Last post 2007/04/12 02:42:27
by EclipsE
Minimize problem - app crash Hazy Mind XNA Engine nicknz 4 2242 Last post 2007/08/02 04:32:10
by Suzume
tutorial 4 problem Hazy Mind 3D Engine precious roy 3 2499 Last post 2007/08/03 12:24:26
by mikeschuld
usercontrols over gamewindow and keyboard problem General Discussion XNASorcerer 2 1465 Last post 2007/05/09 00:52:09
by Chr0n1x
ObjectManagers problem Hazy Mind XNA Engine Jonotron 1 1340 Last post 2007/08/03 12:29:19
by mikeschuld
Spaceship orientation problem Hazy Mind XNA Engine murga 3 1619 Last post 2007/07/18 07:00:15
by Nemo Krad
Camera problem Hazy Mind XNA Engine Montynis 2 1685 Last post 2007/08/02 09:54:14
by Montynis
Problem with the pick Hazy Mind 3D Engine Zandman26 0 1422 Last post 2007/08/06 15:04:06
by Zandman26
Animation Problem.. Hazy Mind XNA Engine DoomMarine 10 3540 Last post 2008/04/25 19:32:58
by DoomMarine
Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.114 seconds with 18 queries.