フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Create single (standard) toolbar elements w/o GUIDE

3 ビュー (過去 30 日間)
geieraffe
geieraffe 2012 年 8 月 6 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hey there,
is there a way to create a toolbar with some specific elements of the standard toolbar without using GUIDE?
I've written a function opening a new figure with axes. but after loading a video to these, the toolbar disappears. I just need the buttons zoom in/out, pan and data cursor ... inclueding their functions.
%%START VIDEO PLAYER
% FIGURE and AXES
figure('Tag', 'figVideo');
handles.figVideo = findobj('Tag', 'figVideo');
axes('parent', handles.figVideo, 'Tag', 'axVideo');
handles.axVideo = findobj('Tag', 'axVideo');
% TOOLBAR
uitoolbar(handles.figVideo, 'Tag', 'toolbarVideo');
handles.toolbarVideo = findobj('Tag', 'toolbarVideo');
% PLAYER
mplay_SigComp(video, handles.axVideo, handles.axPlot, ...
handles.toolbarVideo, zoomArea, fps, fmt);
MPLAY_SIGCOMP is my video player, loading the video to the axes. after this, die toolbar disappears. But i need the buttons zoom,pan, data cursor.
Thanks!
  2 件のコメント
Walter Roberson
Walter Roberson 2012 年 8 月 6 日
This might be related to the toolbar property of the figure; see http://www.mathworks.com/help/techdoc/ref/figure_props.html
Matt Fig
Matt Fig 2012 年 8 月 6 日
Also, did you know that both the FIGURE and AXES commands return the handles? There is no need to call FINDOBJ when you create both of these in the code.
handles.figVideo = figure('tag','figVideo');

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by