Re: [Gambas-user] Can not draw outside of draw event handler

2011-04-16 Thread Demosthenes Koptsis
ok! On Sat, 2011-04-16 at 15:35 +0200, Benoît Minisini wrote: > > On Wed, 2011-03-30 at 01:12 +0200, Benoît Minisini wrote: > > > > Please check that the Draw.FillRect uses the Background property and > > > > not the FillColor property. > > > > > > > > is this ok? > > > > > > > > > > > > See fr

Re: [Gambas-user] Can not draw outside of draw event handler

2011-04-16 Thread Benoît Minisini
> On Wed, 2011-03-30 at 01:12 +0200, Benoît Minisini wrote: > > > Please check that the Draw.FillRect uses the Background property and > > > not the FillColor property. > > > > > > is this ok? > > > > > > > > > See from previous email project99. > > > > Normally, Draw.FillRect() takes the color

Re: [Gambas-user] Can not draw outside of draw event handler

2011-03-30 Thread Demosthenes Koptsis
ok, i have looked the drawing examples. i saw that the AnalogWatch is more near to what i want to implement. But in this example it is used the Drawing.Refresh() which redesign the clock form the beginning in each second. As i learn now the Draw and Drawing classes i see that i have to use the

Re: [Gambas-user] Can not draw outside of draw event handler

2011-03-29 Thread Demosthenes Koptsis
oh... until now i tried to find examples in wiki and i had forgot the examples of Gambas3 code... i will see them -- Regards, Demosthenes Koptsis. -- Enable your software for Intel(R) Active Management Technology to

Re: [Gambas-user] Can not draw outside of draw event handler

2011-03-29 Thread Demosthenes Koptsis
On Wed, 2011-03-30 at 01:12 +0200, Benoît Minisini wrote: > > Please check that the Draw.FillRect uses the Background property and not > > the FillColor property. > > > > is this ok? > > > > > > See from previous email project99. > > Normally, Draw.FillRect() takes the color as its fifth argume

Re: [Gambas-user] Can not draw outside of draw event handler

2011-03-29 Thread Benoît Minisini
> Please check that the Draw.FillRect uses the Background property and not > the FillColor property. > > is this ok? > > > See from previous email project99. Normally, Draw.FillRect() takes the color as its fifth argument. When not specified, it actually uses the Background color. Do you think

Re: [Gambas-user] Can not draw outside of draw event handler

2011-03-29 Thread Benoît Minisini
> well actually before send the previous email i used that you say Matti. > > But drawArea.Refresh it Redraws the control. > > This may be call automatic the Draw.Begin and Draw.End but clears > totally all the area and i cannot draw one rectangle and after a circle > and then something else. >

Re: [Gambas-user] Can not draw outside of draw event handler

2011-03-29 Thread Demosthenes Koptsis
well actually before send the previous email i used that you say Matti. But drawArea.Refresh it Redraws the control. This may be call automatic the Draw.Begin and Draw.End but clears totally all the area and i cannot draw one rectangle and after a circle and then something else. So the solution

Re: [Gambas-user] Can not draw outside of draw event handler

2011-03-29 Thread Benoît Minisini
> You don't need all those Draw.Begin and Draw.End: > > "A Draw.Begin on the drawing area is automatically called before raising > the event, and the drawing is clipped to the area to be redrawn. > Draw.End will be automatically called after the event." (Wiki) > > So, just do > > iAct = 1 > draw

Re: [Gambas-user] Can not draw outside of draw event handler

2011-03-29 Thread Matti
You don't need all those Draw.Begin and Draw.End: "A Draw.Begin on the drawing area is automatically called before raising the event, and the drawing is clipped to the area to be redrawn. Draw.End will be automatically called after the event." (Wiki) So, just do iAct = 1 drawArea.Refresh Am 2