Progressbar is just a drawingarea that dsplay a blue square ....so putting a drawingarea on another is not really the soluce
You can do : ' Gambas class file Private OBS As Observer Public Sub Form_Open() OBS = New Observer(ProgressBar1.Children[0]) As "OBS" End Public Sub OBS_MouseDown() ProgressBar1.Value = Mouse.x / ProgressBar1.W End 2014-11-16 18:03 GMT+01:00 Wolfgang <[email protected]>: > 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 -- Fabien Bodard ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
