Rank: 148697 based on 0 downloads (last 30 days) and 0 file submitted
photo

Katana13

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Katana13 View all
Updated File Comments Rating
27 Feb 2013 FindJObj - find java handles of Matlab graphic objects Find java objects contained within a specified java container or Matlab GUI handle Author: Yair Altman

Ok, Thank you!!!! Yair Altman

26 Feb 2013 FindJObj - find java handles of Matlab graphic objects Find java objects contained within a specified java container or Matlab GUI handle Author: Yair Altman

Extremely useful toolbox for creating GUIs. I don't know if it's a limitation (Matlab R2012a). Example:
h = figure('Menubar','none', 'Toolbar','none','Tag','figure');
str = ' je suis vraiment le plus beau de la planete terrrer de la foucv oeufe fz ozfz efz fvousf zefzf ouvzfz ozfz fouz fz fzo ufzf zouz fozufozf uzo fzoufzo fuziofz fzofiuzfoiz fouzfo ';
hEdit = uicontrol('Parent',h, 'Style','edit', 'FontSize',9, ...
'Min',0, 'Max',2, 'HorizontalAlignment','left', ...
'Units','normalized', 'Position',[0 0 1 1], ...
'String',str,'Tag','hEdit');

%# enable horizontal scrolling
jEdit = findjobj(hEdit);
jEditbox = jEdit.getViewport().getComponent(0);
jEditbox.setWrapping(false); %# turn off word-wrapping
jEditbox.setEditable(false); %# non-editable
set(jEdit,'HorizontalScrollBarPolicy',30); %# HORIZONTAL_SCROLLBAR_AS_NEEDED

%# maintain horizontal scrollbar policy which reverts back on component resize
hjEdit = handle(jEdit,'CallbackProperties');
set(hjEdit, 'ComponentResizedCallback','set(gcbo,''HorizontalScrollBarPolicy'',30)')

saveas(h,'test','fig');

No problem, if you directly run the script (horizontal + vertical scrollbar available). But if you launch the saved file : 'test.fig', the horizontal scrollbar becomes unavailable.

Thanks

26 Feb 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Extremely useful toolbox for creating GUIs. I don't know if it's a limitation (Matlab R2012a,GUILayout_v1p12). Example:
h = figure('Menubar','none', 'Toolbar','none','Tag','figure');
hcom = uiextras.HBoxFlex('Parent',h,'Tag','hcom');
str = ' boub boub boub bou de la foucv oeufe fz ozfz efz fvousf zefzf ouvzfz ozfz fouz fz fzo ufzf zouz fozufozf uzo fzoufzo fuziofz fzofiuzfoiz fouzfo ';
hEdit = uicontrol('Parent',hcom, 'Style','edit','Min',0, 'Max',2, 'HorizontalAlignment','left','Units','normalized','String',str,'Tag','hEdit');
com = uicontrol('Style','edit','Parent',hcom,'Max',3,'Min',1,'HorizontalAlignment','left','Units','normalized','Tag','com');
saveas(h,'test','fig');

No problem, if you directly run the script. But if you launch the saved file : 'test.fig', 2 figures pop up (OK if you use "uiextras.HBox" instead of "uiextras.HBoxFlex")

Thanks

Contact us