Tab Key Disabled in Embedded Browser
이전 댓글 표시
I've implemented a simple test version of the documentation example showing how to use Internet Explorer in a Matlab figure ( found here ). However, it appears that the tab key (e.g., used for movement between form fields) is disabled. Anyone know how to allow for movement across the loaded web page components via the tab key?
function hExp = testActiveX()
hFig = figure('Pos', [0 0 1280 1024], 'Menu', 'none', 'Name', 'ActiveX Testing', 'ResizeFcn', @reSize, 'Renderer', 'Opengl');
conSize = calcSize;
hExp = actxcontrol('Shell.Explorer.2', conSize, hFig);
Navigate(hExp, 'https://www.mathworks.com/login');
movegui(hFig, 'center');
% Determine size of control container
function conSize = calcSize()
fp = get(hFig, 'Pos');
conSize = [0 0 1 1] .* fp([3 4 3 4]);
end % calcSize()
% Figure resize callback
function reSize(~, ~)
if ~exist('hExp', 'var')
return;
end
conSize = calcSize;
move(hExp, conSize);
end % reSize()
end % testActiveX()
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!