Program start
Posted
#1
(In Topic #132)
Guru

Posted
Regular

You can also call it at the constructor, a.k.a. _new() (probably _init() and _ready() as well).
Posted
Guru

Posted
Regular

Posted
Guru

Posted
Regular

Anyway… I still do not know why you want to avoid this? Can you tell me like I am five years old, haha
Posted
Guru

Sorry I uploaded an earlier version :roll:
Please see attached..
Posted
Regular

Posted
Guru

Posted
Regular

Code (gambas)
and it says you panel is 8x8. That's probably the problem. Now to find out why it does not fit the FMain's proportions
Posted
Regular

Remove the FMain's Arrangement from the BuildForm() sub, remove the trigger timer, and replace the BuildPlayArea() sub with this:
… and voila… don't ask me why
Posted
Guru

Update
The display does not regenerate when rebuilt at the end of a game. Looking into it..
Posted
Guru

You can also try Form_GotFocus() instead of Form_Show().
Output: -
Hello
I got here
Posted
Regular

I think it has to do with in what order Gambas arranges the controls on the form. It might be that for some reason that is not clear, your subs are called in a different order than expected. You can try using breakpoints to follow (use step/next buttons beside the run button) Gambas' way through the code. You can also enable profiling to see how many times each sub is called.
Posted
Guru

Posted
Regular

Posted
Guru

Posted
Regular

Posted
Guru

Code (gambas)
Posted
Regular

1 guest and 0 members have just viewed this.


