MATLAB Answers


Is it possible to build custom UI components in app designer that can be visually re-used in app designer?

Asked by Xander Twombly on 24 Jun 2019
Latest activity Commented on by Jan
on 28 Jun 2019
I would like to build a series of custom compound ui components from the common components in app designer, and then make the custom ui components available as drag and drop components in app designer. Perhaps something as simple as creating a container, populating the container with common components, and then saving the container as a ui*** component that can be visually selected from a component library in app designer.
Fundamentally, does this level of flexibility to create and manage custom ui components exist yet in app designer?


I am not aware of that functionality, but you can of course create ui components programmatically and pass the handles back to your app.
Thanks Dennis - confirms what I thought. I'll take the programmatic approach, but hoping to find a way to create WYSIWYG custom component libraries in AppDesigner. That would be a very useful bit of functionality, though perhaps for too small an audience
You can aswell create your components in one app, group your elements and copy & paste them to different apps.

Sign in to comment.

1 Answer

Answer by Jan
on 25 Jun 2019
Edited by Jan
on 25 Jun 2019

nonce = {'00' '11' '22' '33' '44' '55'};
toAdd = hex2dec('01');
for k = 1:5
nonce{k} = dec2hex(hex2dec(nonce{k}) + toAdd);
It might be easier to work with a double vector, if you want to perform calculations. Then hex strings are rather inefficient.


Hmm, I think you might have been answering a different question than mine - or I completely missed the answer :)
@Xander Twombly: This is really strange. You are right: this is an answer for another question: . I have no clue, why it appears here.
In addition in the original thread there was almost the same answer given more than 24 hours earlier, 24 Jun 2019 at 8:41, by someone else, but this answer did not appear in my browser.
I will send this example to the admins. Maybe an inconsistency in the data base? I ask them for removing my answer if it is not needed for an analysis anymore.

Sign in to comment.