ADC Home > Reference Library > Technical Q&As > Carbon > Human Interface Toolbox >
|
Q: My ListBox control works fine on Mac OS X but I get a crash on Mac OS 9 when I click in the scrollbar. What's happening? A:
In order for the ListBox control to work correctly, the control's owner
window needs to have a root control. If the control's owner
window doesn't have a root control,
then, indeed, you will get a crash or a non-working scrollbar,
depending on the value of the actionProc passed in your calls to
TrackControl or HandleControlClick. If a
root control has been established (CreateRootControl(...)),
then everything will work as expected. [Jul 12 2002] |