G'day all,
I have a console project where it is intended the user presses the keyboard direction keys (non-numeric keypad) to move an avatar. I am having difficulty coding to check for the press of these keys. In Pascal it was easy enough to use "readkey" and code, for example, for #80 for the down keypress. However, I am stumped how t...
G'day all,
After learning on here that the Java console doesn't support keyboard input a great deal, I switched to Swing and AWT. My problem now is how to detect when the keyboard direction keys (non-numeric keypad) are used. My code (below) does not do more than print a "small box" character when pressing the down, up, left, right key...
I am trying to get a new contract/job and virtually everything out there (UK) seems to equate .NET with ASP.NET - and that's not me.
Sorry if this seems a little rambling but I really am wondering "What next?"
I'm a Window Forms developer, used to doing the whole thing from design through to delivery/support. I've a VB background (but...
Hello All,
The documentation of UITouch mentions that you can get the [B]direction[/B] of finger swiped. But I am unable to find any way/reference how to get the direction information.
I found an old version of UITouch class reference that mentions direction information. "http://nuigroup.com/?ACT=28&fid=42&aid=696_Nh3eV276ETEwx...
Is it possible to set the direction that an asp:DropDownList appears on a page (e.g. up or down) in a code-behind/with javascript irrespective of how a browser will render it?
...
Hi,
With mx:Box I can set the direction to be either "horizontal" or "vertical". I'd like to reverse the order of the components in the box though. For example:
before:
|button1| |button2| |button3|
after:
|button3| |button2| |button1|
I've created a custom component that lives in a mx:Box and would like to do this in as simplest a...
I found that the Google Maps API supports Directions through:
var map;
var directionsPanel;
var directions;
function initialize() {
map = new GMap2(document.getElementById("map_canvas"));
directionsPanel = document.getElementById("my_textual_div");
map.setCenter(new GLatLng(49.496675,-102.65625), 3);
directions = new GDirection...
In a COM-addin for Outlook (using Redemption) I need to be able to determine whether a given message that I'm looking at was received or sent (I only want to act on the incoming ones). Simply looking at the parent folder or the recipients or senders will not work in my case as both incoming and outgoing messages might be thrown together ...
When editing text the user is able to use the keybord shift button and direction keys to modify the selection - one position stays anchored while the other moves. By pressing left it is possible to get the movable part on the left of the anchored part.
I'm trying to dinamicaly modify the users selection in WPF's TextBox (for the purpose...
Hello, is it possible to get the mouse direction (Left, Right, Up, Down) based on mouse last position and current position? I have written the code to calculate the angle between two vectors but I am not sure if it is right.
Can someone please point me to the right direction?
public enum Direction
{
Left = 0,
Ri...
I know this is quite easy trigonomety, however I was never introducted to vectors etc, and I'm at a loss understanding how this works.
Given an object at point XY, and a direction N, how do you move that object in that direction?
Also, given am object at point XY, and a destination at point XY, how do you move an object towards the des...
Hi SOers,
I need to change the direction of the growth of JTextField object when more characters are added to it. Currently when I add more stuff to it, it grows from left to right but I need this growth of the bounds of the JTextField from right to left.
For e.g. when I add "StackOverflow" to this JTextField the o/p is,
<empty space>St...
Is there a way to detect the FlowDirection in TextBox automatically based on the Unicode Characters used?
If you have an Arabic text in Excel it is automatically aligned to the right side of the cell. I would like the same logic in my WPF application. Has anyone experience with this and can tell me how to do this?
...
I need to create an iPhone simple view that, based on the location of the user in the world, points the person to a never-changing Long/Lat location.
Is it possible to know this from the iPhone API?
Any examples?
...
Is there a bug in WPF Drag and Drop when it runs in RTL mode?
It seems it does not update the drop object area which it's FlowDirection set to RTL.
I currently using WPF 3.5 + SP1 and facing this problem, Additionally, it seems this is inherited in WPF 4.0 and also does not work properly in VS2010.
Who can providing a solution or workaro...
I have birds flying within a frame in my game, but I can only get them to fly in two different directions. If there are 2 birds they go in two different directions. If there are 3 birds, 2 of them go in one direction and the other one goes in a different direction. I want the birds to randomly go in four different directions. Up right...
what is in XNA in 2D the standard way vector angles work ?
0 degrees points right, 90 points up, 180 left, 270 down ?
What are the 'standard' implementations of
float VectortoAngle(Vector2 vec)
and
Vector2 AngleToVector(float angle)
so that VectortoAngle(AngleToVector(PI)) == PI ?
...
I need to monitor the direction a user is indicating using the four directional arrow keys on a keyboard in ActionScript 3.0 and I want to know the most efficient and effective way to do this.
I've got several ideas of how to do it, and I'm not sure which would be best. I've found that when tracking Keyboard.KEY_DOWN events, the event r...
Hi, In my app I use the getdistancefrom method in my app and get a distance between a current location and another set location.
I would like to as well find the direction the other set location is in. What would the code look like to make this iPhone sdk call.
The output would look something like: Location is 500 feet North West
...
Hi I would like to in my application display something like: you're destination is 400 ft north west.
I currently use the getDistanceFrom method but that only gives me the feet between 2 locations.
Thanks for your help.
...