function g_HelpButtonCallback(varargin)
   % Whenever the user click the Help button
   
   global guiFontSize

    try
      functionname = getappdata(0,'ltpda_currFunctionName');
      
      [func,classes] = strtok(get(gcbh,'Tag'));
      if strcmp(func,'method')
         helptext = help([strtrim(classes),'/',functionname]);
      else
         helptext = help(functionname);
      end
      
      helpFigure    =   figure('MenuBar','none','Toolbar','none','Name',strcat(functionname,' help'),'NumberTitle','off','Units','pixels','Position',[200,200,500,300],'Resize','on','ResizeFcn','refresh(gcf)','Color', get(0, 'defaultuicontrolbackgroundcolor'));
      % Help text:
      uicontrol('Parent',helpFigure,'Units','normalized','HorizontalAlignment','left','Position',[0 0 1 1],'FontSize',guiFontSize+1,'String',helptext,'Visible','on','max',100,'Style','edit');
   catch
      disp('Something''s wrong with the creation of the Help figure. Please check ''g_HelpButtonCallback''')
   end
end
