[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: print menu in uicontrol
From: |
Kai Torben Ohlhus |
Subject: |
Re: print menu in uicontrol |
Date: |
Mon, 6 Jan 2020 17:49:10 +0900 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 |
On 1/4/20 4:37 AM, shivax via Help list for GNU Octave wrote:
> hi,
> i try to write a large text but i see text truncked in panel
>
> function canczz()
> %made by luca..preso spunto dagli esempi
> %https://octave.1599824.n4.nabble.com/UI-element-td4694936.html
>
> %http://ss2.eecs.umich.edu/matlab/ulaby_matlab.html
>
> %mi crea una interfaccia grafica per consentire le variazioni sul momento a
> scopo di testare i vari settaggi e altro..
> %N.B. una volta che cambio tramite interfaccia gui %i valori di
> OutSamplePosticipa(e confermo con PredatorPreset)
> % e VisualGraphPost(muovendo lo slider) questi mi rimangono come valori
> nuovi ..Quindi se poi torno in predatorVectorized e eseguo i grafici
> %a mano questi rimangono con le nuove impostazioni anche se in excelSetting
> c'e ne sono altri impostati di default!!!
> %Stessa cosa se eseguo PredatorPreset e li cambio...mi rimane il nuovo
> settaggio!
>
> clf;
> createPanelDecription();
> % createPlot();
> endfunction
>
> function createPanelDecription
> figure('name','PredatorGuiPanelDescription');
> pos = [0 0 0.25 1];
>
> panel2 = uipanel ('position', pos, 'visible', 'off');
>
> if (exist('OCTAVE_VERSION', 'builtin'))
> dellistener(gcf, 'position');
> addlistener (gcf, 'position', {@resetControlPanel2, panel2, pos});
> end
> global Instrument;
>
> str="this a demo !!! this a demo !!!this a demo !!!this a demo !!!this a
> demo !!!this a demo !!! this a demo !!!this a demo ";
> uicontrol (panel2, "style", "text", "string", str, "position",[10 800 300
> 40])
>
> pos=800;
>
> endfunction
>
> function resetControlPanel2(s, e, p, pos)
> %p = guiState('cpanel');
> set(p, 'visible', 'off');
> set(p, 'position', [0 0 1 1]);
> set(p, 'position', pos);
> set(p, 'visible', 'on');
> endfunction
>
>
> OUTPUT:
>
> https://gyazo.com/af54b15c868c9808d5cdecfbf87577c0
>
>
Your lengthy code suffered a lot by sending via email. I cannot
reproduce the output. Please send the code "canczz.m" as attachment to
this mailing-list, strip the non-English comments or translate if
necessary for understanding, and tell us:
1) What is your operating system?
2) Which version of Octave do you use?
3) What is the expected output?
HTH,
Kai