Mailing Lists: Apple Mailing Lists

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

Edit text appearance control appended to nav dialog



Hi,

Yesterday I received Mark's email about Static Text appearance.
It seems I have a similar problem, but with an Edit Text filed instead.

I'm currently working on a "NavChooseFile" Navigation Services dialog.
I'm implementing the following feature:
When clicking on a file in the browser list, I want the name of this file to
be displayed in an edit text field using an EventProc. The edit text field
is located under the browser list.

Unfortunately, the edit text field does NOT get updated, it remains
invisible.

But...

1) if I use a static text field instead of an edit text field, the filename
is properly updated [btw, ONLY IF I add a call to InvalWindowRect(
callBackParms->window, &(callBackParms->customRect) ) in order to force the
custom user area to redraw]

2) if I click first on the edit text field, then click on any file in the
browser list, the filename is properly updated in the edit text field.
I thought it was a focus problem, so I tried to use "SetKeyboardFocus", but
it did not help.

3) If I resize the dialog window, then the text of the edit text field
become visible.

Anyone has an idea why this happens and how I could update the edit text
field without having to click on the edit text field first or without having
to resize the window ?

FYI: I'm using MacOS 9.2.1 on a TiBook. The version of CarbonLib is version
1.4. This issue also occurs on OS 10.1.

Thanks in advance for your help.

Nicolas.




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.