User`s guide

7 Create Custom Components
7-22
6
Modify the getdialogschema.m file to change the appearance of the Properties
pane. Enter the following text into this file to display the last quoted price for the
security in the Properties pane.
function dlgStruct = getdialogschema(thisComp, name)
try
currQuote = fetch(yahoo, thisComp.Ticker);
quoteStr = sprintf('Last value: %g', currQuote.Last);
catch
quoteStr = sprintf('Warning: ...
"%s" is not a valid symbol.', thisComp.Ticker);
end
dlgStruct = thisComp.dlgMain(name,...
thisComp.dlgContainer({