[Gambas-user] Progressbar_mousedown() does not work

Benoît Minisini gambas at ...1...
Sun Nov 16 17:14:35 CET 2014


Le 16/11/2014 15:31, Wolfgang, dl7nb a écrit :
> Hello all,
> I have tested with Gambas3.6.2. I placed a simple Progressbar and tried:
>
> #####
> Public Sub ProgressBar1_Enter()
>
>       Debug "Here we are!"
>
> End
> #####
>
> Which worked perfectly. But
>
> #####
> Public Sub ProgressBar1_MouseDown()
>
>       Debug "Here we are!"
>
> End
> #####
>
> did never execute. What went wrong?
>
> Please help me....
>
> Wolf
>

It's because ProgressBar has be remade in Gambas, and then you don't 
automatically get the standard events. Because controls made in Gambas 
are always embedded into an invisible "UserControl" container.

As I didn't think it would be useful to catch events in ProgressBar 
(which is normally a read-only display control), I didn't enabled them.

I will add them, so that things keep being as they were before, but I'm 
curious why you need to catch mouse events on a ProgressBar!

-- 
Benoît Minisini




More information about the User mailing list