On 16. November 2014 17:14:35 MEZ, "Benoît Minisini" <[email protected]> wrote: >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 > >------------------------------------------------------------------------------ >Comprehensive Server Monitoring with Site24x7. >Monitor 10 servers for $9/Month. >Get alerted through email, SMS, voice calls or mobile push >notifications. >Take corrective actions from your mobile device. >http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk >_______________________________________________ >Gambas-user mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/gambas-user
I use it as a meter in an amplifier. The display is a touch screen and by touching it I want to open a control/setting window. Just a "point-to-set" feeling. I totally agree that in "normal" programs there is no need for such a behaviour. ;-) For now I placed a draw-area in front of the progressbar. The draw-area is empty and therefore transparent. Now touching over the ProgressBar does what is needed here. Just thought I had missed something. Thank you for answering so quickly! ...mobile message... ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
