Active Topics

 



Notices


Reply
Thread Tools
Markkyboy's Avatar
Posts: 319 | Thanked: 439 times | Joined on Oct 2012 @ Costa Blanca, España
#1
Hi all,

sometime ago, I asked is there a way to show mouse X and Y coordinates in real time when a rectangle is dragged. I had the code saved on Sublime Text, but sadly the application crashed and took ALL of my notes with it.

I have been through all my own posts and done a general search of TMO, but I cannot find the article, I'm quite certain this response was posted here and not on TJC. I've also done a general search on Google to find the same/similar articles but with no joy.

thanks in advance,

EDIT: to make things clearer, a picture paints a thousand words, no?, okay.....

So when the red rectangle is dragged anywhere on the lockscreen, the x and y positions update, giving me the actual x and y position in real time.
Attached Images
 
__________________
| Openrepos | T.J.C. |

Don't just sit there standing around, pick up a shovel and sweep up!

Last edited by Markkyboy; 2018-10-03 at 09:24. Reason: added image
 
velox's Avatar
Posts: 340 | Thanked: 1,153 times | Joined on Dec 2009
#2
Hi there,
you can search for threads started by you:
https://talk.maemo.org/search.php?do...&starteronly=1

I think the thread you're searching for might be this one:
https://talk.maemo.org/showthread.php?t=99301

cheers
__________________
slumber: sensors enabled sleep timer for SFOS (translations/input/… appreciated if you've got some spare time)
talefish: directory based audiobook player for SFOS
nofono: ofono restart for SFOS
___
list of i486/noarch packages on openrepos (jolla tablet)
 
Markkyboy's Avatar
Posts: 319 | Thanked: 439 times | Joined on Oct 2012 @ Costa Blanca, España
#3
Originally Posted by velox View Post
Hi there,
you can search for threads started by you:
https://talk.maemo.org/search.php?do...&starteronly=1

I think the thread you're searching for might be this one:
https://talk.maemo.org/showthread.php?t=99301

cheers
Thanks for the tips, but I already did what you suggested anyway, I'm fully aware of 'Markkyboy/statistics'

And no, I've been through that thread a few times, it is close because it addresses dragging rectangles, but the response I saw showed how to have the x and y coordinates in real time text, as you drag. I've also searched quite heavily via Google....it's out there somewhere
__________________
| Openrepos | T.J.C. |

Don't just sit there standing around, pick up a shovel and sweep up!
 
velox's Avatar
Posts: 340 | Thanked: 1,153 times | Joined on Dec 2009
#4
Well, without knowing what you want, you could always just do something with onXChanged and onYChanged to do some further processing.

Or you might even just reference the x/y values in some Label text or something.
As long as the dragging already works, outputting some Component's attributes is more or less trivial.

cheers!
__________________
slumber: sensors enabled sleep timer for SFOS (translations/input/… appreciated if you've got some spare time)
talefish: directory based audiobook player for SFOS
nofono: ofono restart for SFOS
___
list of i486/noarch packages on openrepos (jolla tablet)
 

The Following User Says Thank You to velox For This Useful Post:
Markkyboy's Avatar
Posts: 319 | Thanked: 439 times | Joined on Oct 2012 @ Costa Blanca, España
#5
Originally Posted by velox View Post
Well, without knowing what you want, you could always just do something with onXChanged and onYChanged to do some further processing.

Or you might even just reference the x/y values in some Label text or something.
As long as the dragging already works, outputting some Component's attributes is more or less trivial.

cheers!
Is exactly what I've set out to do. It is rather frustrating to know there is a thread out there somewhere with the exact answer, the code is really very short as well, I just cannot recall the content, your response was my next thought
__________________
| Openrepos | T.J.C. |

Don't just sit there standing around, pick up a shovel and sweep up!
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 00:45.