Re: [Gambas-user] "Long" click

2017-09-25 Thread Miguel Manso
Hi all, I've found a strange issue related with this subject and qt5. In the example you sent me, if you replace the Form1.Show() to Form1.ShowModal(), on a computer with touchscreen it won't work correctly. I mean, it opens the Form1 but the next touch you do on the screen, will be ignored.

Re: [Gambas-user] "Long" click

2017-09-23 Thread d4t4full
That is precisely the reason I suggested an OBSERVER object. This Observer would get all MouseDown and MouseUp events for the desired controls and act accordingly. My code was, anyway, Form-oriented on purpose to make it simpler and straight to the point, without the observer complication. The

Re: [Gambas-user] "Long" click

2017-09-23 Thread PICCORO McKAY Lenz
i understand perfectly.. --->here but presed but not released > here a second was passed > here 20 second was passed but button are not released -> here due more that 20 second passed and but not released a form/window are raised your code looks with sense, but maybe i a good idea

Re: [Gambas-user] "Long" click

2017-09-21 Thread ML
My guess is that you want a new form to appear after the button is raised, but having been pressed more than X seconds. To this end, I'd add a timer with the desired "long-click lenght" to the main form (the one that "receives the long-click"). Maybe also the form and all its controls should have

Re: [Gambas-user] "Long" click

2017-09-21 Thread Gianluigi
I'm not sure I understand, but that's not enough? Public Sub Button1_MouseDown() Form1.Show() End Public Sub Button1_MouseUp() Form1.Hide() End Regards Gianluigi 2017-09-21 8:19 GMT+02:00 Miguel Manso : > Hi All, > > I'm using gambas3 for some time now and I'd like