-// appearance additions
-
-void UMAActivateControl( ControlHandle inControl )
-{
- if ( UMAHasAppearance() )
- {
- ::ActivateControl( inControl ) ;
- }
- else
- {
- AGAActivateControl( inControl ) ;
- }
-}
-
-void UMADrawControl( ControlHandle inControl )
-{
- if ( UMAHasAppearance() )
- {
- ::DrawControlInCurrentPort( inControl ) ;
- }
- else
- {
- AGADrawControl( inControl ) ;
- }
-}
-
-void UMAMoveControl( ControlHandle inControl , short x , short y )
-{
- if ( UMAHasAppearance() )
- {
- ::MoveControl( inControl , x , y ) ;
- }
- else
- {
- AGAMoveControl( inControl , x ,y ) ;
- }
-}
-
-void UMASizeControl( ControlHandle inControl , short x , short y )
-{
- if ( UMAHasAppearance() )
- {
- ::SizeControl( inControl , x , y ) ;
- }
- else
- {
- AGASizeControl( inControl , x ,y ) ;
- }
-}
-
-void UMADeactivateControl( ControlHandle inControl )
-{
- if ( UMAHasAppearance() )
- {
- ::DeactivateControl( inControl ) ;
- }
- else
- {
- AGADeactivateControl( inControl ) ;
- }
-}
-
-void UMASetThemeWindowBackground (WindowRef inWindow,
- ThemeBrush inBrush,
- Boolean inUpdate){
- if ( UMAHasAppearance() )
- {
- ::SetThemeWindowBackground( inWindow ,inBrush , inUpdate ) ;
- }
- else
- {
- AGASetThemeWindowBackground( inWindow , inBrush , inUpdate ) ;
- }
+void UMAEnableMenuItem( MenuRef inMenu , MenuItemIndex inItem , bool enable)
+{
+ if ( enable )
+ EnableMenuItem( inMenu , inItem ) ;
+ else
+ DisableMenuItem( inMenu , inItem ) ;