Filter löschen
Filter löschen

Load listbox content with main form

1 Ansicht (letzte 30 Tage)
Simon
Simon am 13 Mär. 2016
Beantwortet: Geoff Hayes am 13 Mär. 2016
Hello,
I create a GUI with Matlab which contains also a listbox. To fill the list box I have a function (fill_listbox).
Where have I to put this function, that the listbox is filled immediately after loading the GUI?
I solved this problem by clicking a button. Is there a more handy way?

Akzeptierte Antwort

Geoff Hayes
Geoff Hayes am 13 Mär. 2016
Simon - if you have created your GUI using GUIDE, then put this fill_listbox function in the _OpeningFcn of your GUI. Else, if you are creating your GUI programmatically, then you can call this function soon after you have created the controls and just before you show the GUI.

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by