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 > Get Data from k...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 407 of 482
Post > Topic >>

Get Data from keyboard event parameter

by "vcmac" <projectleader@[EMAIL PROTECTED] > Jul 21, 2005 at 07:45 AM

I am catching keyboard event of MLTE.
I want to get the value of event parameter coming from keyboard event so
that I can
compare the value with Return key.
 Following is the code for it. 
 But not getting proper value.
please suggest.

EventRef     theTextEvent;
UniChar      *text;
UInt32    actualSize; 
void *outData;
GetEventParameter (theTextEvent,kEventUnicodeForKeyEvent,
			typeCString, NULL, 0, &actualSize, outData);

text = (UniChar*) NewPtr(actualSize);
GetEventParameter (theTextEvent, kEventUnicodeForKeyEvent,

				typeUnicodeText, NULL, actualSize, NULL, text);
			text = (UniChar*) NewPtr(actualSize);

Regards

-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 Sun Jul 6 2:01:20 CDT 2008.