Radio buttons and GUI

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
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
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
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
Mitra le 14 Nov 2012
Matt: We both have 2012_b (64-bit). We both have Windows (64-bit).
Arthur: The GUI is created using figure command, uimenu, and uicontrol.
Jan: On my computer only an empty page shows up. On my friend's computer, the buttons show up on the page and he can click away.
This is a very long and somewhat complicated code and it would be unfeasible for me to insert the "drawnow" command where becomes necessary.
Thank you very much for your time.
Arthur
Arthur le 14 Nov 2012
Again: do you get any errors??
Post the lines of code that are supposed to create the buttons.

Connectez-vous pour commenter.

Réponses (1)

Jan
Jan le 14 Nov 2012
Modifié(e) : Jan le 14 Nov 2012

0 votes

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

Question posée :

le 13 Nov 2012

Community Treasure Hunt

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

Start Hunting!

Translated by