| Log In | Not a Member? |
Contact ADC
|
|
ADC Home > Reference Library > Technical Q&As > Carbon > Human Interface Toolbox >
|
|
Q: Why isn't my edit text box in my Navigation dialog's custom area working on 10.3? A: Navigation Services dialogs are now compositing on Mac OS X 10.3. The NavCustomControl / kNavCtlAddControl call now adds (or moves) the control or HIView in the dialog's control list. Previously, the control had to be in the control list already. Due to a bug, which will be fixed, this NavCustomControl call mishandles the Edit Text control if it was already in the control list. The symptoms are an empty box (even if a string was provided at creation) which doesn't accept typed characters even when the edit box has the focus. There is a simple workaround to this bug which is given below. Thus, the code which was correct previously:
should be changed, for Mac OS X 10.3, into:
You may add a check for the version this way:
And you can use the following code to retrieve the HIToolbox version:
After the bug is fixed, once again enabling the use of callBackParms->window as first parameter of the CreateEditUnicodeTextControl call, the workaround of passing NULL as first parameter will also still work as expected on Mac OS X 10.3 and later. [Oct 28, 2003] |
|