Re: How can I create a meme generator using js canvas? Programming Web Development by jessicaboland … allow users to move text around the canvas using the mousemove event, you'll want to directly manipulate the text within…(userInput, x, y); // Initial text rendering // Mouse interaction canvas.addEventListener('mousemove', (e) => { // Update text position based on mouse coordinates x… How can I create a meme generator using js canvas? Programming Web Development by FarrisFahad I am trying to create a meme generator similar to imgflip.com I know javascript but not sure how to implement this. I want users to be able to move text around the canvas using mousemove event listener. But I am not sure if they are moving the text on the canvas or are they creating an overlay div then transform the dimension's to canvas? Re: How can I create a meme generator using js canvas? Programming Web Development by kimnancy Implement text movement on the canvas using mousemove. Update text position within the canvas for efficiency; avoid overlay divs. Aligns with the graphical nature of meme generation. Re: How can I create a meme generator using js canvas? Programming Web Development by rproffitt As I read https://github.com/jacebrowning/memegen it looks more capable and complete than the other site you mentioned. To me I'd use this unless the goal is to write it from scratch. Re: MouseMove Programming Software Development by LizR The mousemove event has 2 parameters (object sender, MouseEventArgs e) e.X and e.Y return the mouses location over the item for which that event fired, eg, if you do it over a picture box it tells you where within the picturebox you are.. This should help Re: MouseMove Programming Software Development by Duki so if I have a PictureBox... where would I code the MouseMove event? Sorry for being soooo new ... sort of embarrassing actually. I know C++ well, i just heard that C# is easier than Visual C++. :( Drawing and deleting line on MouseMove event Programming Software Development by jugosoft …. I want to draw a temporary line on PictureBox control MouseMove event. That works fine but deleting of that line doesn… Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles drawing.MouseMove coordinates.Text = "X = " & e.X & "… Re: help needed, mousemove related and more. Programming Web Development by suresure88 … the whole process. So right now since our codes are mousemove right, we cant achieve the forwarding actions and so unless… it's click plus mousemove. As when we uses mimio and swipe(which basically now… Re: Drawing and deleting line on MouseMove event Programming Software Development by ÜnLoCo … Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles drawing.MouseMove coordinates.Text = "X = " & e.X & "… help needed, mousemove related and more. Programming Web Development by suresure88 … IE = document.all?true:false; if (!IE) document.captureEvents(Event.MOUSEMOVE) document.onmousemove = getMouseXY; var tempX = 0; var tempY = 0; function… Re: help needed, mousemove related and more. Programming Web Development by Airshow …; mouseSensitivity = (!s) ? 300 : s; if(document.captureEvents) { document.captureEvents(Event.MOUSEMOVE); } document.onmousemove = getMouseXY; } function getMouseXY(e){ if(event){ // grab the… Re: help needed, mousemove related and more. Programming Web Development by Airshow ….display = (!suppressForm) ? 'block' : 'none'; if(document.captureEvents) { document.captureEvents(Event.MOUSEMOVE); } document.onmousemove = getMouseXY; }[/CODE] Thus, on page(s) you wish… How to tell if mouse button is down during mousemove event in DataGridView Programming Software Development by tom3.14 … info will be pulled off a server during the mousedown/mousemove event. I don't want the info stored within the… MouseMove Programming Software Development by Duki Hey everyone, I'm completely new to C# so I'm sorry if I don't make sense. I need to capture the x and y position of the mouse cursor within a group box (or some other frame). How can I do that? Re: MouseMove Programming Software Development by Duki To be more thorough, here's what I'm trying to do... I need to be able to allow a user to click a button within a frame on the form. Once the user clicks the button, I need the cursor to be confined to only that frame until the button is clicked again. Also, after the first click, I need to continuously output the x and y coordinates of the … Re: MouseMove Programming Software Development by Duki Thanks for the help. Do you think you could provide an example? Re: MouseMove Programming Software Development by LizR Sorry if the following seems a little offensive, but thats verging on very lazy. Re: MouseMove Programming Software Development by Duki I suppose. I just have no clue how to use what you gave me. I've never really used C# Re: MouseMove Programming Software Development by LizR Well they give your X and Y co-ords, do what you want to do with them.. Re: MouseMove Programming Software Development by Duki Here's what I have so far... but nothing happens: [code=c#] private void groupBox1_MouseMove(object sender, MouseEventArgs e) { int x; int y; x = e.X; y = e.Y; label1.Text = x.ToString(); label2.Text = y.ToString(); }[/code] Re: MouseMove Programming Software Development by selvaganapathy Hi, your above code will work when you move the mouse over groupBox1, it will show the X and y position of the Mouse [QUOTE]I need to be able to allow a user to click a button within a frame on the form. Once the user clicks the button, I need the cursor to be confined to only that frame until the button is clicked again.[/QUOTE] From your … Re: MouseMove Programming Software Development by Duki Thanks for the reply. When I run the program nothing happens to label1 and label2 when I move my mouse over the box. The text stays at "label1" and "label2" :( Also about the Cursor.Clip... I have no clue how to use that. What does it do? Thanks for the help! Re: MouseMove Programming Software Development by Duki I got the first part to work!! Can you help with the Cursor.Clip part now? Also, how can I make the cursor start at the center of the picture box? Here's my code: [code=c#]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.… Re: MouseMove Programming Software Development by selvaganapathy Ya Nice, >>To Clip the Cursor, you have to Capture it First. To do use Cursor.Capture = true in button1_Click. >>Another thing is to set the Bounding Rectangle of the Clipping area. Cursor.Clip = Clipping Rectangle In this case pictureBox1.ClientRectangle Cursor.Clip = pictureBox1.ClientRectangle but Cursor.Clip … Re: MouseMove Programming Software Development by LizR Be aware in your code if you did apply the clip you wouldnt be able to press the button. The clip code can be found at [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.cursor.clip.aspx[/url] Its position can be set with [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.cursor.position.aspx[/url] most of the MS … Re: MouseMove Programming Software Development by Duki [QUOTE=selvaganapathy;676840]Ya Nice, >>To Clip the Cursor, you have to Capture it First. To do use Cursor.Capture = true in button1_Click. >>Another thing is to set the Bounding Rectangle of the Clipping area. Cursor.Clip = Clipping Rectangle In this case pictureBox1.ClientRectangle Cursor.Clip = pictureBox1.… Re: MouseMove Programming Software Development by cVz Hey dude, hahaha, welcome to the confusion club, heres what you'll do ... [code] private void Form1_MouseMove(object sender, MouseEventArgs e) { int X = MousePosition.X; int Y = MousePosition.Y; TxtShowX.Text = X.ToString(); txtShowY.Text = Y.ToString(); if (… MouseMove in Visual C++ Programming Software Development by Duki Hey guys, We're trying to work with a driver program for our robot. If we can grab the x and y coordinates of the Mouse we could send them to the controller for driving. Does anyone know how to capture the mouse movement into an integer? Re: MouseMove in Visual C++ Programming Software Development by iamthwee maybe: [url]http://www.daniweb.com/forums/thread67435.html[/url] [code=cplusplus]#include <windows.h> #include <iostream> using namespace std; int main() { while ( 1 ) { Sleep ( 500 ); POINT pos; GetCursorPos ( &pos ); // here is your coordinates int x = pos.x; int y = pos.y; cout … Re: Drawing and deleting line on MouseMove event Programming Software Development by ÜnLoCo can you post a snapshot of the form and the picture-box? anyways if i got you right then maybe this will help you out preserve the last B and put it in B1 [CODE] With B1 .X = B.X .Y = B.Y End With With B .X = e.X .Y = e.Y…