Interactive figure manipulation with App Designer
16 ビュー (過去 30 日間)
古いコメントを表示
Joris Lambrecht
2017 年 6 月 14 日
コメント済み: abdulla alyammahi
2020 年 4 月 6 日
I am in the early design stage of a GUI that involves interactive plotting (moving/adding/deleting points within graph via mouse clicks) similar to moveplot on File Exchange
I am new to App Designer, but it seems much easier to develop with than GUIDE (particularly for sharing data between callbacks and outside the GUI using the dot notation). It also supports tab groups which I plan to use, and seems better at graphically laying out UI elements and configuring them.
However, according to the manual: "Furthermore, UI figures do not support most of the interactive functionality that traditional figures support. For example, UI figures do not support printing, nor do they support mouse or keyboard interactions."
My GUI could always generate a new figure window (not uifigure), and that figure could handle the interactive stuff as in moveplot.
Another limitation I've noticed is that uilistbox (also uitextarea, uieditfield, uilabel) does not support HTML formatting whereas the uicontrol('Style','listbox'...) does (see: example). This affords much more flexibility than having to include a new textbox anytime a new font, font color, font size is required, and supports links and symbols.
I've used both GUIDE and built GUIs only from .m files in the past. App Designer intrigues me for my new design but I don't want to get burned after putting in a good amount of effort, only find out it doesn't have another feature I expected that requires another clunky workaround.
If you have experience with App Designer, are there other suggestions or warnings you could provide?
0 件のコメント
採用された回答
Ankita Nargundkar
2017 年 6 月 21 日
Developers are aware of lack of mouse click callback for a Figure in app designer. Html formatting is not documented feature, so is always subject to frequent changes. As a workaround, you could do individual text components created dynamically for each of the different sections of formatted text.
2 件のコメント
Marta
2017 年 12 月 13 日
Hi Ankita.
Thanks for the reply. Could you pass on an example code for how to create components dynamically? Could we use the position of the components as a way of tracking mouse positions in the App figures?
Many thanks! Marta
Philip Tamimi-Sarnikowski
2018 年 4 月 5 日
Hello
I am currently working on a GUI with the App designer. I am inquiring about the mouse click callback, as i need to register clicks on uiaxes and the specific location. Is this a feature that has been implemented since last year ? I do not seem to be able to find any documentation. Thank you in advance
その他の回答 (1 件)
Sebastian Bech-Terkilsen
2018 年 8 月 28 日
Hi Everyone, I encountered the same problem by trying to use imfreehand in a uifigure in an app. My workaround was to make a function outside of app designer which makes a figure pop-out which then carries the imfreehand. Then have any modifications assigned to the imfreehand be done inside the function and have your uifigure display the output image of the function.
1 件のコメント
abdulla alyammahi
2020 年 4 月 6 日
Hello, I would like to know how you made this happen, I have been trying and I have not been able to figure it out. Is it possible from within the app to make this pop-up appear?
参考
カテゴリ
Help Center および File Exchange で Develop uifigure-Based Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!