Re: [Gambas-user] Get the object of a component by name.

2016-02-26 Thread Matias De lellis
El Viernes, 26 de febrero, 2016 18:17:14, Matias De lellis escribió: Hi Fabien, As an idea is good .. I found it very interesting.. I also thought do something similar at the form level, but this implementation requires me to place all components that depend on a Firmata on the same

Re: [Gambas-user] Get the object of a component by name.

2016-02-26 Thread Matias De lellis
Hi Tobi, Sorry about the delay. > OK, then another, more self-contained way. You have a class Firmata which is > instantiable and you want to keep track of the instances, right? Then modify > Firmata.class like so: > > Static Private $cObjects As New Collection > > Static Public Sub _get(Name A

Re: [Gambas-user] Get the object of a component by name.

2016-02-24 Thread Matias De lellis
Hi again, >You seem to misunderstand Class["name"].Instance. In your first mail you>wrote: > >>> Dim hFirmata As Firmata >>> >>> hFirmata = Class["Firmata1"].Instance > >But Firmata1 is the name of one of your *objects*. The syntax Class["name"] >searches for a *class* named "Firmata1", which lik

Re: [Gambas-user] Get the object of a component by name.

2016-02-24 Thread Matias De lellis
13:31:33, Jussi Lahtinen escribió: No, you completely misunderstood what I meant. I'm talking about the IDE. See the pics. Jussi On Wed, Feb 24, 2016 at 4:10 PM, Matias De lellis wrote: Hi Jussi > I see only Load method for Class!? Need the instance to use methods and observe event

Re: [Gambas-user] Get the object of a component by name.

2016-02-24 Thread Matias De lellis
Hi Jussi > I see only Load method for Class!? Need the instance to use methods and observe events.. > Is the "instance" hidden..? No.. However test make it public, private, and any other options that I know.. :s > in what version? Last example attached, on Gambas 3.4.5 (Debian Jessie), but t

Re: [Gambas-user] Get the object of a component by name.

2016-02-24 Thread Matias De lellis
Hi El Martes, 23 de febrero, 2016 21:00:06, Tobias Boege escribió: On Tue, 23 Feb 2016, Matias De lellis wrote: > > So, what I read out of your mail is that you have one object Firmata1 which > > has a certain configuration. You now want to add controls dynamically to the > >

Re: [Gambas-user] Get the object of a component by name.

2016-02-23 Thread Matias De lellis
Hi, > I'm not sure if I understand you correctly. [ In case I don't, I would > suggest that you maybe use pseudo code and simpler (Gambas-only) terms to > state what you want to do. I mean: should I be required to look up the > "Firmata protocol" and "Ctrlr" and "MIDI" to answer your question abou

Re: [Gambas-user] Get the object of a component by name.

2016-02-23 Thread Matias De lellis
ata") Name of the object can be passed as argument. Jussi On Tue, Feb 23, 2016 at 10:54 PM, Matias De lellis wrote: Dear All, > > >I'm starting a new project. In a few words is a set of controls to interact >with Arduino using the Firmata protocol[1]. >T

[Gambas-user] Get the object of a component by name.

2016-02-23 Thread Matias De lellis
Dear All, I'm starting a new project. In a few words is a set of controls to interact with Arduino using the Firmata protocol[1]. To understand better, in general the idea is inspired by Ctrlr[2] that allows interact with MIDI controllers adding simple components in a form.. I started implem