Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: edit unicode text control




On Mar 30, 2005, at 12:12 PM, Steve Mills wrote:

Thanks everyone for all the help getting our edit unicode text fields working. I got it all to work with a minimal impact on our wrapper class. One thing I'm seeing now is that every once in a while, I'll bring up a dialog that has 1 or more fields, and our code throws some assertions because this:

SetControlData(iControlHdl,
kControlEditTextPart,
iPasswordField ? kControlEditTextPasswordTag : kControlEditTextTextTag,
newTextHdl ? GetHandleSize(newTextHdl) : 0,
newTextHdl ? *newTextHdl : nil);


returns -9874. If I keep running, when it draws the window, that field doesn't get its edit field drawn, like the control is incomplete. The call to CreateEditUnicodeTextControl returned noErr, otherwise it would've thrown the error.

Any ideas why some of these controls are failing?

fwiw, I always use kControlEntireControl for the control part... Not sure if that's the issue though.


Bryan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: edit unicode text control (From: Mike Kluev <email@hidden>)
 >Re: edit unicode text control (From: "Steve Mills" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.