When I make the mouse visible, it jitters in the middle of screen. Does anyone know what the problem might be? thanks.
update:
I can't move the mouse.. it just stays at the same point
Are you setting the mouse position anywhere in your code?
This sounds like the result of an implementation of some "free look" code that sets the mouse position to the centre of the window each frame (so it can read how far it travels and then move it back, to allow for continuous movement without hitting the edge).
Related
I am facing a strange issue that I can reproduce with a vanilla FMX Form.
First I place an Edit, set the horizontal alignment in TextSettings to Center or Trailing, and run the application. If I start selecting some text and move the mouse far enough to the right, the selection inverts. In fact, it seems like the required distance from the right edge of the edit is exactly the same as the distance from the end of the selection to that edge.
Here's a gif to illustrate the issue:
Does anybody know what is going on there? I have a hard time imagining this is by design. Any ideas for a workaround / fix would be appreciated.
I have this design here : http://imgur.com/XHMBUdj
I would like to allocate the left half of the screen(splitting vertically) to panning up and down for the blue bars and allocate the right half of the screen(splitting vertically) to panning up and down for the red bars.
I can already use UIPanGestureRecognizer, however, I just need help making the region in which if the user pans on the right side of the screen, "this" happens and if the user pans on the left side, "this" happens.
A friend of mine recommended using UIBezierPath. Could someone help me out? Code will be much appreciated!
I looks like it would be easier to have two UIPanGestureRecognizers.
In your view, you can add a subview that take up the left half on the screen that contains the blue bars and the microphone and add another subview that is on the right half of the screen containing the red bars and the music icon.
Then you can create two separate UIPanGestureRecognizers and add one to each of the views. Then each side will have its one recognizer that will take care of the side detection for you.
I m under delphi and firemonkey. i manage myself the scroll via the ongesture event. i would like to add something like a "kinetic energy" effect to the scroll.
for exemple you put your finger on the bottom of the screen and you fastly move it to the top and removing it from the screen. the result will be that the screen will scroll much much more than where you remove your finger, like you gave some kinetic energy to the scroll. on the other way if you don't remove you finger from the screen at the end then you don't give any kinetic energy to the scroll.
any idea how to do this ?
You can use TVertScrollBox for making kinetic energy on your screen. It will help you.
When I'm in overview window and zoom in, some part of the graph is not visible. I want to drag the graph so that I can see it at the zoomed in size.
I tried the "Center on graph" button, but it zooms out the graph and centers it on the screen. I tried the direct and drag tool, which doesn't seem to do anything. What to do to accomplish this?
I want to drag the node in upper left corner so that I can see what it connects to:
Right-click and drag (Gephi 0.9.1 for Mac).
To move the graph at a given level of zoom, you can right click.
The keyword was "navigation" :)
Happy work!
I figured out a way to do this with the mouse. If you want to zoom in on an area, you need to position your mouse over the area you want to see, and then use the scroll wheel to zoom in. So for the case above, zoom out until you can see everything, and then hover your mouse over the area you want to zoom in on (the upper left node in this case), and you scroll your mouse wheel to zoom. That will allow you to zoom in on an area without having to move the object on the canvas first.
i'm trying to apply a shift effect to subviews of a UIView, but those shifts should'n have the same phase. A good example of that is the welcome screen in SoundClound.
As you can see, in the second image i'm scrolling to the second page, and the label slides more than the image (so it looks that the label moves faster than the image). So the subviews lose the alignment when scrolling, but recover it back if we stop the swipe.
Does anyone know how this effect is named? and where can i find some help to implement it?
Thanks a lot!
"Parallax scrolling" is what you want to search for.
Basically it is done by moving foreground objects faster background objects to simulate depth.
Check out http://blog.denivip.ru/index.php/2013/08/parallax-in-ios-applications/?lang=en for a starting point!