Fernando Cabral wrote
> I am trying to create a sundial faceplate. I took the analogic clock,
> discarded what I did not need and thought I was ready to work on the
> calculations and drawing of the hour angles.
>
> Nevertheless, I am mystified by two things I can't understand:
> a) The code
2017-08-02 6:40 GMT-03:00 Fabien Bodard :
> Ok Fernando ... your code is no so bad :-)
>
>
> ==> the code revised
>
>
Still being executed twice. I have not been able to understand why.
Thanks.
- fernando
> ' Gambas class file
>
> Private Const W As Integer = 2048
>
2017-08-02 6:40 GMT-03:00 Fabien Bodard :
> Ok Fernando ... your code is no so bad :-)
>
> I know. Some explanations bellow.
>
> First never call the resizing of the caneva in the drawing event as it
> call itself the drawing event ... (normally if I rememember well it
>
2017-08-02 7:05 GMT-03:00 Adrien Prokopowicz :
Le Wed, 02 Aug 2017 03:38:33 +0200, Fernando Cabral <
> fernandojosecab...@gmail.com> a écrit:
>
> Besides, I have a question: when a drawing area is created, it (0,0)
>> supposed to be the central point?
>>
>>
> No.
Le Wed, 02 Aug 2017 03:38:33 +0200, Fernando Cabral
a écrit:
I am trying to create a sundial faceplate. I took the analogic clock,
discarded what I did not need and thought I was ready to work on the
calculations and drawing of the hour angles.
Nevertheless, I
Ok Fernando ... your code is no so bad :-)
First never call the resizing of the caneva in the drawing event as it
call itself the drawing event ... (normally if I rememember well it
have been disabled)
So you must resize in another place.
then I don't really understand why you are resizing the