MATLAB: GUIDE using CreateFcn to set TooltipString

guidelatextooltipstring

Hello everyone,
simple question, is it possible to change the TooltipString value of a static text in its CreateFcn? I want to display a formula, normally I would do it with following code:
set(handles.statictext,'TooltipString','somewhat longer formula here','Interpreter','latex')
Problem here is that the handles.statictext does not yet exist in its CreateFcn. If I only do:
set('TooltipString','somewhat longer formula here','Interpreter','latex')
it does not work either. Maybe there is a way to set the TooltipString interpreter to latex in the GUI Inspector in GUIDE?
Thanks for your help!

Best Answer

You can do it in OpenFcn! Is there any specific reason, why you do it in CreateFcn?