[Gambas-user] Release of gambas 1.9.42

Timothy Marshal-Nichols timothy.marshal-nichols at ...247...
Fri Sep 15 10:20:55 CEST 2006


Hello,

A little bug a appears to have crept in with the setting of the
Form.BackColor property. Possibly also the Form.ForeColor. (Using the gb.qt
controls.)

I have a couple of projects that use this properties to ensure the
background color is the same as the form when drawing.

Take the following code:

PUBLIC SUB Timer1_Timer()
  Draw.Begin(ME)
  Draw.FillStyle = Fill.Solid
  Draw.ForeColor = ME.ForeColor
  Draw.FillColor = ME.ForeColor
  Draw.BackColor = ME.ForeColor
  Draw.Rect(10, 10, 210, 210)
  Draw.ForeColor = ME.BackColor
  Draw.FillColor = ME.BackColor
  Draw.BackColor = ME.BackColor
  Draw.Rect(110, 110, 310, 310)
  Draw.End
END

Using the default values (empty) in the properties toolbox. It now draws two
squares both are white with a black border.

If you set the Form.BackColor or Form.ForeColor property at design time this
appears to be set these values correctly. It is just if you use the
Form.BackColor at its default value.

Thanks

8-{)} Timothy Marshal-Nichols
<mailto: timothy.marshal-nichols at ...247...>








More information about the User mailing list