Home MATLAB gui: Execute code before CreateFcns
Reply: 0

MATLAB gui: Execute code before CreateFcns

user671
1#
user671 Published in May 23, 2018, 4:47 pm

I'd like to execute some code before the CreateFcns are called (e.g. from textbox, pop menus etc), because my CreateFcns rely on some struct data, which that specific code would fill in.

It seems that the functions are called in that order:

- CreateFcn 1
- Init Fcn
- CreateFcn 2
- Init Fcn
...
- CreateFcn n
- Init Fcn
- OpeningFcn
- Init Fcn

Is there a way to execute some code before the first CreateFcn? As the newest CreateFcn is called always first, the workaround to put the code in the first CreateFcn is extremely unhandy as you need to change the code everytime you add a new textbox etc. to the gui.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.307579 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO