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

2019-11-29 Thread Antoine Monmayrant
Le Jeudi, Novembre 28, 2019 19:40 CET, 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. > > > I see what you mean. I just now had trouble turni

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

2019-11-29 Thread Antoine Monmayrant
Le Jeudi, Novembre 28, 2019 20:55 CET, Samuel Gougeon a écrit: > 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 callback

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

2019-11-29 Thread Antoine Monmayrant
> get() and set() can now use a tagsPath, that might be less ambiguate > than using findobj(), that returns the first component with a matching > tag (unless only unique tags are defined). The documentation of set() is > being overhauled . You >

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

2019-11-29 Thread Antoine Monmayrant
> > 4) I will also look into this. My problem is the steep learning curve. > > If you look at the Scilab tutorials you have the good-old Openeering > > LHY_Tutorial - it's incredibly complicated and long. Is LHY_Tutorial > > using the Model-Viewer-Controller approach? - Maybe the > > Model-View

Re: [Scilab-users] ?= GUI hel

2019-11-29 Thread Claus Futtrup
Hi Antoine Not much progress because I never managed to get a minimal working example I can repeat my example again and again. It never works. Please see it below. Do you agree. This consistently fails if you run it from Scinotes editor ... but if I copy e.g. ge_r.visible = "on" to the com

Re: [Scilab-users] ?= GUI hel

2019-11-29 Thread Stéphane Mottelet
To makeit work, just insert ge_r=ge_r; ge_fs=ge_fs; ge_hz=ge_hz; at the begining of function calc. My two cents... S. Le 29/11/2019 à 18:58, Claus Futtrup a écrit : Hi Antoine >Not much progress because I never managed to get a minimal working example I can repeat my example again and agai

Re: [Scilab-users] ?= GUI hel

2019-11-29 Thread Claus Futtrup
Hi Antoine Thank you, with just 82 lines (incl. comments) it's within reason and I'm thinking it could be a suitable example for Scilab documentation. I shall study the details and see how it works out in my application (that I'm doing for work). Cheers, Claus On 29.11.2019 18:34, Antoine M

Re: [Scilab-users] ?= GUI hel

2019-11-29 Thread Claus Futtrup
Hi Stéphane Hm, you're right. This actually fixes the problem, but I do find it to be a strange "solution" that you write each of them to be equal with itself ... I prefer calling the set() function. Cheers, Claus On 29.11.2019 19:05, Stéphane Mottelet wrote: To makeit work, just insert ge

Re: [Scilab-users] ?= GUI hel

2019-11-29 Thread Stéphane Mottelet
Le 29/11/2019 à 19:17, Claus Futtrup a écrit : Hi Stéphane Hm, you're right. This actually fixes the problem, but I do find it to be a strange "solution" that you write each of them to be equal with itself ... I prefer calling the set() function. In "ge_fs=ge_fs" the lhs is a local copy and

Re: [Scilab-users] ?= GUI hel

2019-11-29 Thread Claus Futtrup
Hi Antoine, et al - anybody feel free to chime in. I see the below example uses f=figure() ... instead of f=scf(). What's the reason for this preference? From my side, the only difference I can see, is that figure() generates a place for a GUI with a grey background (background = 33) ... where

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

2019-11-29 Thread Antoine Monmayrant
Le Vendredi, Novembre 29, 2019 19:27 CET, Claus Futtrup a écrit: > Hi Antoine, et al - anybody feel free to chime in. > > I see the below example uses f=figure() ... instead of f=scf(). > > What's the reason for this preference? No particular reason, I just use either scf() or figure(). I t

Re: [Scilab-users] ?= GUI hel

2019-11-29 Thread Claus Futtrup
Hi Stéphane >In "ge_fs=ge_fs" the lhs is a local copy and the rhs the variable in the calling context. I figured something like this was going on, but I don't find it logical. I read this as follows: The ge_r is a global handle, for which the function doesn't have write access. When you assi

Re: [Scilab-users] ?= GUI hel

2019-11-29 Thread Stefan Du Rietz
figure() is a much more versatile function for the creation of a figure; you can set all(?) properties at once. scf() is useful when you want to change an existing figure. Regards Stefan On 2019-11-29 19:35, Antoine Monmayrant wrote: Le Vendredi, Novembre 29, 2019 19:27 CET, Claus Futtrup a

Re: [Scilab-users] ?= GUI hel

2019-11-29 Thread Stéphane Mottelet
Hello again, > Le 29 nov. 2019 à 19:55, Claus Futtrup a écrit : > >  > Hi Stéphane > > >In "ge_fs=ge_fs" the lhs is a local copy and the rhs the variable in the > >calling context. > > I figured something like this was going on, but I don't find it logical. I > read this as follows: The ge_

Re: [Scilab-users] ?= GUI hel

2019-11-29 Thread Claus Futtrup
Hi Stéphane Lazy = not pretty. ... but you didn't answer my question. Which way do you personally prefer? ... and why? Cheers, Claus On 29.11.2019 21:13, Stéphane Mottelet wrote: Hello again, Le 29 nov. 2019 à 19:55, Claus Futtrup a écrit :  Hi Stéphane >In "ge_fs=ge_fs" the lhs is a

Re: [Scilab-users] ?= GUI hel

2019-11-29 Thread Stéphane Mottelet
Le 29/11/2019 à 21:21, Claus Futtrup a écrit : Hi Stéphane Lazy = not pretty. Matlab users do not have this possibility, and as a result, programs do not suffer from eventual border effects. But I know many Matlab users using a bunch of "global" statements. This is WORSE than lazy globals..