button chart event problem with massageboxW

 

hi everyone i have a custom indicator that have a button that works with chart event function for delete or create some object tables

the custom indicator also have a massageboxw (include  <WinUser32.mqh>) 

but as soon as i put the button code in the event function the massageboxw doesn't work right // also console say the indicator is too slow need to rewrite it