In Designer, when 2 mlapp files are open, I receive a Undefined function 'bringToFront' for input arguments of type 'double' error.

3 次查看(过去 30 天)
I have a GUI app that opens a seperate window with 2 separate .mlapp files, very similar to the Pass Data Between Apps example project (files MainAppExample.mlapp & DialogAppExample.mlapp).
When I have both files open and run the main app, I receive this error:
Undefined function 'bringToFront' for input arguments of type 'double'.
Error in matlab.ui.internal.controller.platformhost.CEFFigurePlatformHost/toFront (line 182)
bringToFront(this.CEF);
Error in matlab.ui.internal.controller.FigureController/toFront (line 480)
toFront(this.PlatformHost);
After debugging, I found it crashes at this line:
figure(1);
If I close the DialogAppExample.mlapp file in my project, it runs without issue. How can I solve this issue?
Also, should I be loading both .mlapp files when I open this project? I am loading them seperately because I couldn't figure out how to have them both load upon startup (similar to the example project 'Pass Data Between Apps')
  1 个评论
Walter Roberson
Walter Roberson 2023-11-18
The implementing code for that appears to be
toolbox/matlab/uitools/uicomponents/components/+matlab/+ui/+internal/+controller/+platformhost/CEFFigurePlatformHost.m
I will need to look at the source to see if I get any ideas.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by