Radio buttons and GUI
Afficher commentaires plus anciens
I would like to use a GUI that runs on my friend's computer but not mine. I am trying to figure out what causes the problem.
We noticed that if I add "drawnow" or "pause(1)" after creating the GUI, it will work. We suspected that is a rendering issue. I have tried to set the renderer to all 3 available options but none have worked.
Is it possible that the video card (Intel) not capable of generating the buttons on the GUI fast enough? I would like to see what could potentially cause this problem.
Many thanks for your time.
5 commentaires
Matt Fig
le 13 Nov 2012
It would be helpful if you included such information as the version of MATLAB running on both computers, whether the GUI was built by GUIDE, and the OS on each computer.
Arthur
le 14 Nov 2012
Is their any code in the CreateFcn of the radio buttons, or are they modified in the OpeningFcn of the GUI? Do you get any errors?
Jan
le 14 Nov 2012
Please explain what "does not run on my computer" does exactly mean. Do you get error messages? Or explain the difference between your expectations and the results.
What is the problem of inserting a DRAWNOW?
Mitra
le 14 Nov 2012
Arthur
le 14 Nov 2012
Again: do you get any errors??
Post the lines of code that are supposed to create the buttons.
Réponses (1)
Inserting a DRAWNOW is a feasible method and even required for a lot of GUI actions.
Please explain what "after creating the GUI" exactly mean. A DRAWNOW is called implicitly after the creation of a GUI when the prompt returns to the command window. If the command window does not get the focus after the creation of the GUI, a DRAWNOW is usually obligatory: A DRAWNOW allows the ui-elements to be rendered.
I think without seeing the code it is hard to reconsider, why DRAWNOW is not feasible for you.
Catégories
En savoir plus sur Develop Apps Programmatically dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!