Tweaked the disableMenuBar function to pass the correct handles on hEdit ClickedCallback. Modifed editFigureDialog to accept that handle.