[Gambas-user] Control class missing a name and type property. ;)

R Onstenk ronstk at ...239...
Tue Aug 26 16:10:19 CEST 2003


Hi Benoit,

Let me introduce my self as Ron. I'm living in the Netherlands.
My skils are programming the z80/8080/8085 cpu at assembly level
and on m$ windows using VB.
After installing from SuSE your version 0.44 I was very interested if
Gambas was alive while many other 'basic' projects are more or less dead.
If dead is no changes/updates or user request/response in the last 6 months.
I did like the overall design of the project and hope it has the potential
to be a real entry level for VB programmers to Linux.

But i have a few commnents.
I can't classify them as bugs or feature request but more
as design corrections to contribute to the quality of Gambas.

When I put a control on a form it's background is transparent. (textlabel)
When I set a background color on it it shows nice but then I decide it
must be the same as the form. How to set background transparent again?

I'm missing a few properties on the Control Class.
For the example Blinking Lights the led on/off procedure

bits=rnd()*255
For Each ctrl in Me.Controls
  with ctrl
    if Left(.name) ="l" then
	if bits and 2^val(right(.name)) then
	  ctrl.picture=picture("on")
      else
	  ctrl.picture=picture("off")
      endif
    endif
  endwith
next

Doc says the following about the control/classes
Form.Children:
  property Children as .ContainerChildren

.ContainerChildren:
 returns a collection of each control (you can enum with FOR EACH...NEXT)

Image:
  inherits 'Control'

When I can use For Each how do I determine which control I have.
In my example the ctrl should have at least a name property.
It should have also a property which provide the Class or Type of the
control.

And shit again, I made again a long message,

--------------
Ron

[ I hate eating fish but for Gambas i like a this one]







More information about the User mailing list