Re: Setting the Cursor to an image
> William P. wrote: > I use: > on mouseUp > set the cursor to # —the ID of the image > lock cursor > end mouseUp You could try to _first_ lock the cursor then set it. (This works for here). ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Setting the Cursor to an image
I submitted a bug report (bug #: 19092) for this. Best, Bill > On Jan 11, 2017, at 3:46 PM, William Prothero via use-livecode > wrote: > > Folks: > I am setting the cursor to a 32x32 image. It works in the standalone app, but > not in the development system. Is there something wrong with the IDE? > > This happens in version 8 and 9 (latest downloads). > > I use: > > on mouseUp >set the cursor to #—the ID of the image >lock cursor > end mouseUp > > What’s up? I’d like to have this work in the IDE. > > Best, > Bill > > William A. Prothero > http://earthlearningsolution.org/ > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Setting the Cursor to an image
Folks: I am setting the cursor to a 32x32 image. It works in the standalone app, but not in the development system. Is there something wrong with the IDE? This happens in version 8 and 9 (latest downloads). I use: on mouseUp set the cursor to #—the ID of the image lock cursor end mouseUp What’s up? I’d like to have this work in the IDE. Best, Bill William A. Prothero http://earthlearningsolution.org/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Setting the cursor
Jim Hurley wrote: > Ken's suggestion (using screenMouseLoc) would allow me to take > control of the cursor. It is odd that there is a command to > locate the mouse relative to the screen but not the card. > I wonder whether this, and the notion of exercising "power only > for good," might not date back to Scott Rainey. He had strong > feelings about the rights and wrongs of programming. I think the reasoning with the screenMouseLoc is that, unlike controls, the mouse is not bound to a single window, but is global in nature. When obtaining coordinates, those are most useful to do something with them within the window, hence the local coords. But you can set the mouse location to anywhere on the display, so global coords seem a more natural fit. I you need to translate from global to local coords you can use the toLocal function. FWIW, I think the doc's note of "You must use this power only for good" came from Jeanne DeVoto from back when she wrote the original Dictionary. I could be wrong, but it sounds like her style. I've had the pleasure of working with her to document a client product for the last few years, and her passion for usability and keeping the user in control has been much appreciated. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Setting the cursor
Perhaps a png would be better. That way you could show a Mac cursor to a Mac user, and a Windows cursor to Windows users. On Jan 3, 2012, at 10:00 AM, Jim Hurley wrote: > I think now that I will manufacture my own cursor, using RR's line graphic > (with arrow attached) and thereby simulate a cursor. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Setting the cursor
Thanks Jacque. I was hoping to present the user with vision of a cursor moving to the button and then clicking on it. I think now that I will manufacture my own cursor, using RR's line graphic (with arrow attached) and thereby simulate a cursor. It is perhaps the dark side of my nature that allows me this ruse, but at least I am not wresting control of the cursor from the user, and my intentions are honorable. Ken's suggestion (using screenMouseLoc) would allow me to take control of the cursor. It is odd that there is a command to locate the mouse relative to the screen but not the card. I wonder whether this, and the notion of exercising "power only for good," might not date back to Scott Rainey. He had strong feelings about the rights and wrongs of programming. I remember a battle I had with him over "repeat while the mouse is down," an instance where the programmer wrests control of the COMPUTER from the user. Jim > > Message: 16 > Date: Mon, 02 Jan 2012 15:26:40 -0600 > From: "J. Landman Gay" > To: How to use LiveCode > Subject: Re: Setting the cursor > Message-ID: <4f022110.1000...@hyperactivesw.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 1/2/12 2:37 PM, Jim Hurley wrote: >> Thanks Ken, >> >> I see that the dictionary warns against taking control of the mouse, >> The discussion concludes with this admonishment: "You must use this >> power only for good." >> >> I feel evil. I just wanted to simulate the clicking of a button in my >> "help" script. >> >> I will need to consult my spiritual advisor to see if this usage >> conforms with RR's ethical standards. > > :) You can avoid all evil by: > > click at the loc of btn "whatever" > > No cursor movement necessary. But even better, if you only need the > mouseup action (i.e., there is no need to simulate mousedown, > mousestilldown, etc.) then just: > > send "mouseup" to btn "whatever" > > Either of these methods avoids the need to consult with outside parties. :) > > -- > Jacqueline Landman Gay | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Setting the cursor
On 1/2/12 2:37 PM, Jim Hurley wrote: Thanks Ken, I see that the dictionary warns against taking control of the mouse, The discussion concludes with this admonishment: "You must use this power only for good." I feel evil. I just wanted to simulate the clicking of a button in my "help" script. I will need to consult my spiritual advisor to see if this usage conforms with RR's ethical standards. :) You can avoid all evil by: click at the loc of btn "whatever" No cursor movement necessary. But even better, if you only need the mouseup action (i.e., there is no need to simulate mousedown, mousestilldown, etc.) then just: send "mouseup" to btn "whatever" Either of these methods avoids the need to consult with outside parties. :) -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Setting the cursor
Thanks Ken, I see that the dictionary warns against taking control of the mouse, The discussion concludes with this admonishment: "You must use this power only for good." I feel evil. I just wanted to simulate the clicking of a button in my "help" script. I will need to consult my spiritual advisor to see if this usage conforms with RR's ethical standards. Jim > > Message: 22 > Date: Mon, 2 Jan 2012 11:03:35 -0600 > From: Ken Ray > To: How to use LiveCode > Subject: Re: Setting the cursor > Message-ID: > Content-Type: text/plain; charset=us-ascii > > > On Jan 2, 2012, at 1:23 AM, James Hurley wrote: > >> How do I set the loc of the cursor? By script, of course. > > set the screenMouseLoc to > > :D > > Ken Ray > Sons of Thunder Software, Inc. > Email: k...@sonsothunder.com > Web Site: http://www.sonsothunder.com/ > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Setting the cursor
On Jan 2, 2012, at 1:23 AM, James Hurley wrote: > How do I set the loc of the cursor? By script, of course. set the screenMouseLoc to :D Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Setting the cursor
Hello Jim, See in dictionary : xHot and yHot properties Bon souvenir de Paris René Le 2 janv. 2012 à 08:23, James Hurley a écrit : > How do I set the loc of the cursor? By script, of course. > > Jim > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Setting the cursor
How do I set the loc of the cursor? By script, of course. Jim ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode