필터 지우기
필터 지우기

Console versus splash screen ?

조회 수: 3 (최근 30일)
David Maynard
David Maynard 2018년 8월 30일
답변: Nihal 2024년 8월 21일
Using R2017a, I can get a splash screen to display if the "MS-DOS" console is configured to go away OR I can keep the console window open but then the splash screen refuses to display. I can not get the console AND the splash screen to display in the same build. Anybody know the trick (or is this a known bug?)

답변 (1개)

Nihal
Nihal 2024년 8월 21일
To achieve both a splash screen and a console window in a MATLAB R2017a standalone application, consider these theoretical strategies:
  1. Custom Splash Screen: Instead of relying on built-in splash screen behavior, implement a splash screen directly in your application. This way, you have full control over when and how it appears, regardless of console settings.
  2. Runtime Options: Use the -R option in the mcc command to specify runtime behaviors. Experiment with different settings to manage console and graphical outputs. For instance, -R -nojvm can influence how GUI elements are handled.
  3. Separate Execution: If both elements cannot coexist due to limitations, consider launching the console and application separately. This can be done using a script or batch file to start both processes independently.
  4. Logging: If console output is primarily for debugging, consider redirecting output to a log file. This allows the splash screen to function without interference from the console.
These strategies allow for flexibility in managing both console and GUI elements in your application.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by