[Scilab-users] Confusion about types (typeof vs. Variabe Browser)

2019-11-28 Thread Federico Miyara
Dear all, I'm trying to elucidate some details regarding types. The most basic type, corresponding to real or complex decimal numbers (or vectors, matrices and hypermatrices with this kind of components) is called "constant" by the function typeof (and so listed in the documentation).

[Scilab-users] Zooming the console with the mouse wheel

2019-11-28 Thread Samuel Gougeon
Hello, Do you know any shortcut key to zoom the Scilab console with the mouse wheel? CTRL|ALT|... + wheel do not work. The preferences do not show any defined shortcut to do this. But we have recently seen for figures that ALT+wheel exists without (yet) being documented... Thanks Samuel

Re: [Scilab-users] ?= GUI hel

2019-11-28 Thread Stefan Du Rietz
On 2019-11-28 20:55, Samuel Gougeon wrote: Le 28/11/2019 à 17:47, Antoine Monmayrant a écrit : .../... Also, you should better use get(a, 'propertyName') or set(a, 'propertyName', value) instead of a.propertyName and a.propertyName=value in your callbacks. I have found that this latter

Re: [Scilab-users] ?= GUI hel

2019-11-28 Thread Stéphane Mottelet
Hello, Le 28/11/2019 à 18:54, Stefan Du Rietz a écrit : Le Jeudi, Novembre 28, 2019 17:05 CET, Claus Futtrup a écrit:   I think you can achieve what you want by setting ".visible='off'" for all the uicontrols you don't want to show initialy. You can then set  ".visible='on'" after the first

Re: [Scilab-users] ?= GUI hel

2019-11-28 Thread Samuel Gougeon
Le 28/11/2019 à 17:47, Antoine Monmayrant a écrit : .../... Also, you should better use get(a, 'propertyName') or set(a, 'propertyName', value) instead of a.propertyName and a.propertyName=value in your callbacks. I have found that this latter syntax is causing a lot of bug if your callback

Re: [Scilab-users] ?==?utf-8?q? GUI help

2019-11-28 Thread Samuel Gougeon
Le 28/11/2019 à 08:57, Antoine Monmayrant a écrit : Hello Claus, I've been playing a bit with GUIs for teaching, so maybe I can help. The issue is that I don't get what your problem is exactly here, so I my answer might be a bit off-topic. Do not hesitate to rephrase your issue, I'll try a

Re: [Scilab-users] ?= GUI hel

2019-11-28 Thread Samuel Gougeon
Le 28/11/2019 à 18:54, Stefan Du Rietz a écrit : I do that and it is very convenient. I also save my GUI data in a struct() in the "user_data" of the parent figure of the GUI. Then I don't need global variables or even findobj(). If the stored data are not handles, this could be a bit risky

Re: [Scilab-users] ?= GUI hel

2019-11-28 Thread Samuel Gougeon
Le 28/11/2019 à 19:40, Claus Futtrup a écrit : Hi Antoine Also, you should better use get(a, 'propertyName') or set(a, 'propertyName', value) instead of a.propertyName and a.propertyName=value in your callbacks. Why? It should be strictly equivalent, doesn't it?

Re: [Scilab-users] ?= GUI hel

2019-11-28 Thread Claus Futtrup
Hi Antoine Also, you should better use get(a, 'propertyName') or set(a, 'propertyName', value) instead of a.propertyName and a.propertyName=value in your callbacks. I see what you mean. I just now had trouble turning visibility on/off, but using set(), it works fine. Thanks for the tip.

Re: [Scilab-users] ?= GUI hel

2019-11-28 Thread Claus Futtrup
Hi Stefan >save my GUI data in a struct() in the "user_data" I don't understand. Can you show me an example to explain this? Best regards, Claus On 28.11.2019 18:54, Stefan Du Rietz wrote: Le Jeudi, Novembre 28, 2019 17:05 CET, Claus Futtrup a écrit:   I think you can achieve what you want

Re: [Scilab-users] ?= GUI hel

2019-11-28 Thread Claus Futtrup
Hi Antoine and Stefan Thanks for the tip using visible='off' ... it looks like a better way. Regards, Claus On 28.11.2019 18:54, Stefan Du Rietz wrote: Le Jeudi, Novembre 28, 2019 17:05 CET, Claus Futtrup a écrit:   I think you can achieve what you want by setting ".visible='off'" for all

Re: [Scilab-users] ?= GUI hel

2019-11-28 Thread Stefan Du Rietz
Le Jeudi, Novembre 28, 2019 17:05 CET, Claus Futtrup a écrit: I think you can achieve what you want by setting ".visible='off'" for all the uicontrols you don't want to show initialy. You can then set ".visible='on'" after the first call to the callback (or at each call if you are lazy).

Re: [Scilab-users] Run Scilab 6.0.2 on OSX Catalina

2019-11-28 Thread Chin Luh Tan
Hi,  Java SE 13.0.1 Thanks Rgds, CL On Fri, 29 Nov 2019 00:52:15 +0800 stephane.motte...@utc.fr wrote Le 28/11/2019 à 17:15, Chin Luh Tan a écrit : Hi Stephane,  I tested the latest jdk what is the version ? from the web, with your patch, it works! Thanks. rgds,

Re: [Scilab-users] Run Scilab 6.0.2 on OSX Catalina

2019-11-28 Thread Stéphane Mottelet
Le 28/11/2019 à 17:15, Chin Luh Tan a écrit : Hi Stephane, I tested the latest jdk what is the version ? from the web, with your patch, it works! Thanks. rgds, CL On Thu, 28 Nov 2019 23:27:09 +0800 *Stéphane Mottelet * wrote Sorry, there was a typo error (wrong tilda) in

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= GUI hel

2019-11-28 Thread Antoine Monmayrant
Le Jeudi, Novembre 28, 2019 17:05 CET, Claus Futtrup a écrit: > Hi Antoine, et al. > > Your reply is very helpful, so I think you got the right question :-) > > 1) Good point that I can use callback on every uicontrol. This would be > suitable for a simple example (like gui_example.sce)

Re: [Scilab-users] Run Scilab 6.0.2 on OSX Catalina

2019-11-28 Thread Chin Luh Tan
Hi Stephane,  I tested the latest jdk from the web, with your patch, it works! Thanks. rgds, CL On Thu, 28 Nov 2019 23:27:09 +0800 Stéphane Mottelet wrote Sorry, there was a typo error (wrong tilda) in the URL, the valid one is

Re: [Scilab-users] ?==?utf-8?q? GUI help

2019-11-28 Thread Claus Futtrup
Hi Philipp, et al. Thanks for the (long) email. I appreciate it. Way 1 - I already do. Way 2 - Yes, the established part of the GUI updates, no problem. The big question was if I could turn certain parts of the GUI on (and maybe off again)? Way 3 - interesting idea, to use a "handles"

Re: [Scilab-users] ?==?utf-8?q? GUI help

2019-11-28 Thread Claus Futtrup
Hi Antoine, et al. Your reply is very helpful, so I think you got the right question :-) 1) Good point that I can use callback on every uicontrol. This would be suitable for a simple example (like gui_example.sce) ... but for heavy calculations, it might be more practical with a CALC button.

Re: [Scilab-users] Run Scilab 6.0.2 on OSX Catalina

2019-11-28 Thread Stéphane Mottelet
Sorry, there was a typo error (wrong tilda) in the URL, the valid one is https:/www.utc.fr/~mottelet/java/enableJDK.dmg S. Le 28/11/2019 à 10:51, Stéphane Mottelet a écrit : Hello, I have prepared a small Applescript application  enabling the current JDK to run Scilab on OSX Catalina at the

Re: [Scilab-users] ?==?utf-8?q? GUI help

2019-11-28 Thread P M
Hallo Claus, from what I understand the question is: How can GUI updated outside of the function "calc" ? In other words: right now "calc" updates the GUI. I guess the aim is that "calc" only returns output values, which will be used to update the GUI . Way 1: Use global variables, which can be

[Scilab-users] Run Scilab 6.0.2 on OSX Catalina

2019-11-28 Thread Stéphane Mottelet
Hello, I have prepared a small Applescript application  enabling the current JDK to run Scilab on OSX Catalina at the url http://www.utc.fr/˜mottelet/java/enableJDK.dmg This application automates the fix we already discussed in this ML. If I summarize the necessary steps to run Scilab under

Re: [Scilab-users] symbolic functions

2019-11-28 Thread Samuel Gougeon
Hello Federico, Le 19/11/2019 à 08:01, Federico Miyara a écrit : Dear all, I've found in a tutorial (http://ryanrossi.com/teaching/search/papers/scilabguide.pdf) reference to some symbolic functions such as addf or trianfml, and even official Scilab help pages seemingly for an earlier

Re: [Scilab-users] ?==?utf-8?q? Question on constant variables

2019-11-28 Thread Samuel Gougeon
Le 28/11/2019 à 09:06, Antoine Monmayrant a écrit : Hello Frederico, Le Mercredi, Novembre 27, 2019 22:51 CET, Federico Miyara a écrit: Dear all, What is the reason why %pi, %e, %i, %f, %t are considered variables (see help percent) when they are really constants? Maybe because the

Re: [Scilab-users] ?==?utf-8?q? Question on constant variables

2019-11-28 Thread Antoine Monmayrant
Hello Frederico, Le Mercredi, Novembre 27, 2019 22:51 CET, Federico Miyara a écrit: > > Dear all, > > What is the reason why %pi, %e, %i, %f, %t are considered variables (see > help percent) when they are really constants? Maybe because the actual variables, if they are scalar, are