Mac OS X Porting - Scrollbar

From Apache OpenOffice Wiki
Jump to: navigation, search

Scrollbar

Contributors

Introduction

The purpose of this article is first to present our current knowledge of the implementation of scrollbars in the native Mac OS X version of OpenOffice.org and second to be a tutorial on how to create scrollbars with HITheme.

Apple Documentation and References

The Appearance Manager and HITheme

As stated on the Native Controls page, HITheme is the new version of the Appearance Manager. Apple is pushing developers to use it since they are not supporting the AE anymore. But to make the transition easy Apple made the HITheme API very close to the AE. For example both have functions with very similar name and both share the same constants. You can always refer back to the AE to find the list of these constants and use them in HITheme functions.

The Track

The Appearance Manager hence HITheme group controls under 2 categories: buttons and tracks. Is considered a track: various types of rectangular controls including scroll bars, sliders, and progress bars.


Links

This work is part of http://wiki.services.openoffice.org/wiki/Mac_OS_X_Porting_-_Work_Areas/Todo%27s

Personal tools