First of all, I'm fairly sure snapping to grid is fairly easy, however I've run into some odd trouble in this situation and my maths are too weak to work out specifically what is wrong.
Here's the situation
I have an abstract concept of a grid, with Y steps exactly Y_STEP apart (the x steps are working fine so ignore them for now)
The...
I'm having trouble wrapping my head around how to code this, and would appreciate any assistance.
The picture above is something I googled quickly, but depicts a decent example. Imagine the squares and triangle are able to be moved around by the user. If the user drags and drops the BGFC square "near" the ABC triangle, I would like ...
Hello everyone,
my current free-time project, in order to dive into WPF MVVM, is a "digital" copy of an old puzzle I used to play a lot in my childhood. It basically is a simple puzzle where one has to fill a given space with different kind of pieces so the whole space is filled. But with the extra twist of being in hexagonal space.
...
is there a way to adjust the hover time before snap popups up?
...
Hi,
I have two gps coordinates which link together to make a line. I also have a gps point which is near to, but never exactly on, the line. My question is how do I find the nearest point along the line to the given point?
Many thanks
...
So, I have a DataGridView that has multi-line data. I set the default cell style to have wrap turned on for cells so that the multi-line data is displayed rather than it all being on one line. However, when the data is larger than the DataGridView height the vertical scroll doesn't really work well. It snaps to the top of the cells su...
Hi there ,
i am using GoogleMaps and i have 2 or more markers and they are draggable.
I want to snap 2 markers if they are near and merge them into 1.
is this possible ?
Can someone give me pointers .. how i can realize that ?
...
I use Visual Studio (C#) 2008
I've got a SplitContainer - each of its two panels contains one datagridview.
The user can resize the panels by dragging the splitter up and down.
I'd like to implement the "snap" effect - whenever the splitter gets close to the edge of one of the datagridviews, it would "get caught", so that the grid fits...
hi all,
i'm having a scrollable table with fixed header.
would it be possible to have "snapped scrolling" on the scrollbar - which means that the table rows won't scroll pixel by pixel but snap responding to its row height, for better viewing.
thx
...
Hi guys
I was just wonderin' in a .bat file, if there was a way to call an external .bat file, or even an *.exe and make it open so it 'snaps' to the top left hand corner of the screen ?
Cheers
...
I am interested in creating a work place consisting of multiple jframes. I would like to implement the functionality that google dashboard uses to dock their frames into a position. I would also like to be able to snap two frames together. Does anyone have any idea how google does this, how it might be done or perhaps code of an open sou...
There are multiple <input /> and <textarea> in the <form>,but none have their id or name.
Is it possible to take a snap shot of every thing inside the <form> and render it when need?
...
Hi All
I have an app where users can drag controls around on a Form. But they
re asking me for Snap-To lines to make the alignment of controls easier. I have no idea about the snep-to lines and how to implement them - I have looked at:
http://msdn.microsoft.com/en-us/library/ms752100.aspx Adorner's, but it says it's only for WPF. And I...
Hello,
I have a canvas (Panel Control) in my WinForms app where users can drag things like textbox's, labels etc around. But I want to make it easier for them to more precisely align the objects. I've read into it and Adorners seem to be the way to go? But, apparently it's only for WPF. WPF is not an option for me, unfortunately.
What ...
I'm creating a list with ListView where each element in the list is a fullscreen picture. When I scroll/slide from element to element - I want the application to automatic show the picture I scrolled to in fullscreen. Kind of the same way that the Android Album does, when it shows pictures in fullscreen. It automatically detecs wich item...
I want my Android app to take a picture, as part of something larger it is doing.
Ideally, I would like to just send out an Intent saying "snap a picture" and get back an image file.
Is there an Activity that can handle that, or do I need to do all the low level work with the Camera class myself?
Thanks,
Peter
...
Hello, I am working on a program for the mapping and playing of the popular tabletop game D&D :D Right now I am working on getting the basic functionality like dragging UI elements around, snapping to the grid and checking for collisions.
Right now every object when released from the mouse immediately snaps to the nearest grid point. Th...
Background:
In Windows 7 it is possible to maximize and "semi-maximize" application windows by dragging them to the top/top-left/top-right corner of the screen (the latter two will make your application windows fill the screen vertically, but only fill half the screen horizontally, allowing for another application to be "semi-maximized"...