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. Afte
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
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 st
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 a
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 to know your opinion
Hi All,
I'm using gambas3 for some time now and I'd like to know your opinion about
the best way to implement a "long" click.
The idea is to leave a button presses for a certain amount of seconds and
without releasing it, a new form will open.
We did this using a timer but I'd like to know if th