hello, i have a following problem, the edit area of the code view seems frozened, it only force me to edit within the area which marked with white background, when i want edit to other area, no any respond, how to handle this.

댓글 수: 1

wenchao zhang
wenchao zhang 2024년 5월 24일
이동: Voss 2024년 5월 25일
white area is coding area, other area can not edit.

댓글을 달려면 로그인하십시오.

 채택된 답변

VBBV
VBBV 2024년 5월 24일

0 개 추천

function DropDown(app,event)

댓글 수: 4

VBBV
VBBV 2024년 5월 24일
There is typo error in the function for DropDown. Missing a 'o' in the function definition
wenchao zhang
wenchao zhang 2024년 5월 24일
hi VBBV, thanks for your answer. i know why this will happen, seems the callback function related to the cutomer added object can be edited, the rest part is system frame code, they can not changed.
VBBV
VBBV 2024년 5월 24일
ok, @wenchao zhang, It seems you have added a function for ValueChangedFcn property for your GUI component i.e. dropdown. You can only edit it the Design Mode. Switch to that mode and select the GUI component and/or right click the item and modify the name., Then it will allow you to edit the callback function name. Ensure that callback name matches exactly in the app.
VBBV
VBBV 2024년 5월 25일
편집: VBBV 2024년 5월 25일
Please post a different question for this issue. Thanks. Accept the answer if you found it useful.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Adam Danz
Adam Danz 2024년 5월 24일

0 개 추천

> the edit area of the code view seems frozened, it only force me to edit within the area which marked with white background
This is by design in App Designer. App Designer creates your app as a MATLAB class viewable in Code View where you can add properties and method functions but you cannot change the gray sections directly from within Code View.
You can change callback function names that are in the gray sections. In Code View, go to Code Browser (left panel) > Callbacks tabs, and right-click on the callback function name, then select "Rename".
For more information, see Manage Code in App Designer Code View

댓글 수: 2

wenchao zhang
wenchao zhang 2024년 5월 25일
hi, Adam, thanks for give more description, if i want change the name of UIFigure, how to do.
Adam Danz
Adam Danz 2024년 5월 28일
From the design view, right click on the "uifigure" name in the right pannel Component Browser and select "rename".

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2024년 5월 24일

댓글:

2024년 5월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by