Rank: 1790 based on 83 downloads (last 30 days) and 7 files submitted
photo

Alexander Mering

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Alexander Mering View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
02 Dec 2013 Screenshot Add Icons to GUI menus Adds icons to the main figure menu of a given GUI Author: Alexander Mering guide, gui, icon, menu, uimenu, figure 23 2
  • 4.0
4.0 | 2 ratings
27 Sep 2013 Screenshot AddMultipleLegends Add as many legend you want to a single figure Author: Alexander Mering multiple, legend, plot, axes, diagram 3 0
27 Sep 2013 Screenshot Dependency Analyzer Starting from a given directory, the dependencies of all files are analyzed and visualized as a map. Author: Alexander Mering dependency, files, call, map, visualize, excel 15 0
27 Sep 2013 Screenshot Struct2MindMap - A Structure to MindMap converter Creates a mindmap from a given Matlab structure Author: Alexander Mering structure, mindmap, visualization, freemind, xmind 8 0
26 Sep 2013 Screenshot Open new editor window with template / header information This file opens a new window in the editor and prefills it with some template or header information. Author: Alexander Mering header, template, editor, new file 7 0
Comments and Ratings by Alexander Mering
Updated File Comments Rating
15 Nov 2012 Figures-menu adaption for standalone applications Create dockable figures for standalones and disable or remove menu items from the figures container Author: Alexander Mering

Thanks Aurelien.
The main praise should go to Yair Altman how showed the route. I just discovered and removed the crashing items.

About the error: I extracted the functions from a larger project and forgot to rename the MousePressed Callback in the Callback_DockingFcn.

I made an update and changed
Cbrake_Callback_Diagrams_DockingFcn -> Callback_DockingFcn

Comments and Ratings on Alexander Mering's Files View all
Updated File Comment by Comments Rating
05 Nov 2014 Add Icons to GUI menus Adds icons to the main figure menu of a given GUI Author: Alexander Mering Roger GALLOU

Hi Alexander,
Thanks for this work .
I would like to make some changes to the code for its compatibility with R2014b.

a) - I have to change top_level_menu_handle by (which is available for < R2014b) :
top_level_menu_handles = findobj(GUI_handle, {'Type', 'uimenu', 'Parent', GUI_handle});

b) - Then I give my version about majors changes in function Loop_SubMenues (can certainly be improved):
==========================================
function Loop_SubMenues(JMenu, Menu_Children)
% recursively runs through the menu entries and adds the icon, if exists

if isempty(Menu_Children)
return
end

%% take care of seperators
% these change the positions
separator_state = get(Menu_Children, {'Separator'});
separator_state(strcmp(separator_state, 'off')) = {0};
separator_state(strcmp(separator_state, 'on')) = {1};

% sort position in ascending order

children_info = {Menu_Children, cell2mat(get(Menu_Children, 'Position')), cell2mat(separator_state)};
[~, iperm] = sort(children_info{2}, 1);
children_info{1} = children_info{1}(iperm);
children_info{2} = children_info{2}(iperm);
children_info{3} = children_info{3}(iperm);

children_info{3} = cumsum(children_info{3});

for num_entry=1:length(Menu_Children)
% pos_entry_java = children_info(num_entry, 2) + children_info(num_entry, 3) - 1; % java indexing
pos_entry_java = children_info{2}(num_entry) + children_info{3}(num_entry) - 1; % java indexing

try % Pour éviter :

AddIcon(javaObjectEDT(JMenu.getItem(pos_entry_java)), children_info{1}(num_entry))

% Recurse into submenues
Loop_SubMenues(javaObjectEDT(JMenu.getItem(pos_entry_java)), get(children_info{1}(num_entry), 'Children'))
catch
end
end

27 Mar 2014 Figures-menu adaption for standalone applications Create dockable figures for standalones and disable or remove menu items from the figures container Author: Alexander Mering Thierry Dalon

Instead of DTDocumentBar = javaObjectEDT(figures_frame.getRootPane.getLayeredPane.getComponent(1).getComponent(1).getComponent(0).getComponent(0).getComponent(1).getComponent(0));
one could use the great findjobj:
hDocumentButtons=findjobj(container,’class’,'DTDocumentBar$DocumentButton’);
or for Matlab >=R2012a:
hTabs=findjobj(container,’class’,'DTDocumentTabs$Tab’);

JMenuBar.updateUI shall be added to refresh the menus.

27 Nov 2013 Add Icons to GUI menus Adds icons to the main figure menu of a given GUI Author: Alexander Mering Thierry Dalon

Idea is good. But implementation still contains some bugs. (Example gcf is used instead of input hfig)

26 Nov 2013 Add Icons to GUI menus Adds icons to the main figure menu of a given GUI Author: Alexander Mering Dongwon

15 Nov 2012 Figures-menu adaption for standalone applications Create dockable figures for standalones and disable or remove menu items from the figures container Author: Alexander Mering Alexander Mering

Thanks Aurelien.
The main praise should go to Yair Altman how showed the route. I just discovered and removed the crashing items.

About the error: I extracted the functions from a larger project and forgot to rename the MousePressed Callback in the Callback_DockingFcn.

I made an update and changed
Cbrake_Callback_Diagrams_DockingFcn -> Callback_DockingFcn

Contact us