Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password

Mac > OOP Powerplant for Mac > Re: Get Data fr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 407 of 484
Post > Topic >>

Re: Get Data from keyboard event parameter

by "vcmac" <projectleader@[EMAIL PROTECTED] > Jul 22, 2005 at 06:17 AM

Hi david,
 My code for getting for value from keyboard event is as follows.

static OSStatus MainWindowEventHandler_ ( EventHandlerCallRef
nextHandler,EventRef event, void *userData)
{
OSStatus statPara;
UniChar      text;
UInt32    actualSize;
EventParamType hasType;
statPara =	GetEventParameter
(event,kEventParamTextInputSendText,//kEventUnicodeForKeyEvent,//
kEventParamTextInputSendText,

			typeUnicodeText, &hasType, 0, &actualSize, NULL);

			text =(UniChar)NewPtr(actualSize);
			
			statPara_ =	GetEventParameter (event, kEventParamTextInputSendText,

				typeUnicodeText, &hasType, &actualSize, NULL, &text);
}


Now as per my knowledge actual values are coming in text variable.
But It's not proper by this code.
Can u please modify and explain the code to me so that I can compare the 
value to Return key code.

Thanks
-Hemant
 



 3 Posts in Topic:
Get Data from keyboard event parameter
"vcmac" <pro  2005-07-21 07:45:29 
Re: Get Data from keyboard event parameter
David Phillip Oster <o  2005-07-21 14:53:49 
Re: Get Data from keyboard event parameter
"vcmac" <pro  2005-07-22 06:17:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 7 18:51:39 CDT 2008.