@@ -613,12 +613,12 @@ void MCNativeControlExecCreateControl(MCExecContext& ctxt, MCStringRef p_type_na
613613 }
614614
615615 MCNativeControlType t_type;
616- if (!MCNativeControl::LookupType (p_type_name, t_type))
616+ if (!MCLookupNativeControlType (p_type_name, ( intenum_t &) t_type))
617617 return ;
618618
619619 MCNativeControl *t_new_control;
620620 t_new_control = nil;
621- if (MCNativeControl::CreateWithType ( t_type, t_new_control))
621+ if (MCCreateNativeControl (( intenum_t ) t_type, ( void *&) t_new_control))
622622 {
623623 extern MCExecContext *MCECptr;
624624 t_new_control -> SetOwner (MCECptr -> GetObject ());
@@ -701,7 +701,7 @@ void MCNativeControlExecGet(MCExecContext& ctxt, MCStringRef p_control_name, MCS
701701 return ;
702702
703703 Properties t_property;
704- if (!MCNativeControl::LookupProperty (p_property_name, t_property))
704+ if (!MCLookupNativeControlProperty (p_property_name, ( intenum_t &) t_property))
705705 return ;
706706
707707 MCPropertyInfo *t_info;
@@ -731,7 +731,7 @@ void MCNativeControlExecSet(MCExecContext& ctxt, MCStringRef p_control_name, MCS
731731 return ;
732732
733733 Properties t_property;
734- if (!MCNativeControl::LookupProperty (p_property_name, t_property))
734+ if (!MCLookupNativeControlProperty (p_property_name, ( intenum_t &) t_property))
735735 return ;
736736
737737 MCPropertyInfo *t_info;
@@ -775,7 +775,7 @@ void MCNativeControlExecDo(MCExecContext& ctxt, MCStringRef p_control_name, MCSt
775775 return ;
776776
777777 MCNativeControlAction t_action;
778- if (!MCNativeControl::LookupAction (p_action_name, t_action))
778+ if (!MCLookupNativeControlAction (p_action_name, ( intenum_t &) t_action))
779779 return ;
780780
781781 MCNativeControlActionInfo *t_info;
@@ -881,6 +881,8 @@ void MCNativeControlExecDo(MCExecContext& ctxt, MCStringRef p_control_name, MCSt
881881
882882 case kMCNativeControlActionUnknown :
883883 default :
884+ if (MCPerformNativeControlAction ((intenum_t )t_info -> action, &t_control, p_arguments, p_argument_count))
885+ return ;
884886 break ;
885887 }
886888 ctxt . Throw ();
0 commit comments