Re: Cursor questions
On Mar 18, 2010, at 6:56 PM, Sarah Reichelt wrote: Second, is it possible for me to detect that the mouse is over a link and change the cursor to something else (i.e. the hand icon/ cursor)? I know there's changes coming w/ 4.5 that look promising. I haven't bothered to download the developer preview as I really don't want to risk is, but if some of these concerns go away with 4.5 and someone can just email me them (instead of breaking NDA on the list), that'd be fine, too. (mass...@gmail.com). This doesn't require 4.5, so no NDA conflict here. I put this in a card script and it seems to work fine: on mouseMove if word 1 of the target = field then if the textStyle of the mouseText contains link then lock cursor set the cursor to hand else unlock cursor end if end if pass mouseMove end mouseMove I prefer to set the defaultcursor to hand or to empty instead of locking and setting the cursor. Whenever I've tried to use lock cursor I've ended up having intermittent frozen cursor problems. Also, you might want to put in a if the locktext of the target then... test, or you'll get the cursor changing over links in unlocked fields, and when the cursor changes to hand the user will think the link is clickable -- but it won't be. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Cursor questions
After taking this to the next level and using my own image as a cursor... my cursor (a 16x16 imported PNG image) is turning into 100% white when I set the cursor to it. The shape is correct, but just all the colors are white. I can't find anything in the documentation about this. Any hints as to what I'm doing wrong? Jeff M.___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Cursor questions
Bonjour, Le 19 mars 10 à 13:15, Peter Brigham MD a écrit : On Mar 18, 2010, at 6:56 PM, Sarah Reichelt wrote: Second, is it possible for me to detect that the mouse is over a link and change the cursor to something else (i.e. the hand icon/ cursor)? I know there's changes coming w/ 4.5 that look promising. I haven't bothered to download the developer preview as I really don't want to risk is, but if some of these concerns go away with 4.5 and someone can just email me them (instead of breaking NDA on the list), that'd be fine, too. (mass...@gmail.com). This doesn't require 4.5, so no NDA conflict here. I put this in a card script and it seems to work fine: on mouseMove if word 1 of the target = field then if the textStyle of the mouseText contains link then lock cursor set the cursor to hand else unlock cursor end if end if pass mouseMove end mouseMove With browse tool choosen the handler above works perfectly, but not if pointer tool is choosen: in this case one gets errors (for the second if line). To avoid that,, seems that is necessary to include the case where the mouseText is empty. Something like the following: on mouseMove if word 1 of the target = field then if the mouseText = empty then unlock cursor else if the textStyle of the mouseText contains link then lock cursor set the cursor to hand else unlock cursor end if end if end if pass mouseMove end mouseMove By the way, generally I am using the following (thanks to the help of Éric Chatonet) which include the case of buttons and which works well local tCode, - on mouseMove switch case button is in the target ShowHandCursor # break case the mouseText = empty --mouseText = empty -- important! unlock cursor break case link is in the textStyle of the mouseChunk ShowHandCursor # break default ResetCursor # end switch end mouseMove -- on mouseLeave ResetCursor # end mouseLeave -- on ShowHandCursor set the cursor to hand lock cursor end ShowHandCursor -- on ResetCursor unlock cursor end ResetCursor I prefer to set the defaultcursor to hand or to empty instead of locking and setting the cursor. Whenever I've tried to use lock cursor I've ended up having intermittent frozen cursor problems. did not notice such issue, but well, I am going to pay attention to this Also, you might want to put in a if the locktext of the target then... test, or you'll get the cursor changing over links in unlocked fields, and when the cursor changes to hand the user will think the link is clickable -- but it won't be. -- Peter Thank you Peter for this goog suggestion. I will keep it in mind if I have links in unlocked fields You seem very and rightly user-orented ;-)) Best regards from Grenoble André ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Cursor questions
On Mar 19, 2010, at 11:54 AM, Jeffrey Massung wrote: After taking this to the next level and using my own image as a cursor... my cursor (a 16x16 imported PNG image) is turning into 100% white when I set the cursor to it. The shape is correct, but just all the colors are white. I can't find anything in the documentation about this. Any hints as to what I'm doing wrong? http://lessons.runrev.com/spaces/lessons/buckets/784/lessons/6349-How-To-Create-a-Custom-Cursor -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Cursor questions
Here are the directions for producing cursors for Revolution that won't come out white: 1. Open Photoshop. Name the image, Mode being RGB color, Background Transparent, and width and height 16 pixels. 2. Change Image/Mode to Indexed Color, using the defaults for indexed color (Palette: Exact; Forced: Web; Transparency checked; Matte: none) 3. With image maximally magnified, used the pencil tool to insert black or white pixels. Enclosed areas can be filled with white or black if desired and pixels can be erased if desired. 4. Save as PNG. 5. Bring the PNG image into Revolution and note it's ID number (it may be 1003 for instance). 6. In the script to call the cursor write: on mouseUp set lockcursor to true set the cursor to 1003 -- if that's the ID number end mouseUp All cursors should show up fine on both Mac and Windows. (I used Mac OS X with Revolution 2.7 in development) It is interesting that sometimes there can be two identical pictures in Photoshop, one of which will show up cursors correctly and the other will show up only a white square or a black filled image, even though all the parameters in Photoshop seem to be the same!! I don't know why this should be the case but it implies that there is something different about the two images even if not apparent. This can be easily corrected either by creating a new Photoshop 16x16 document, carefully duplicating the pixels of the defective image, or more simply, just pasting the defective image into the new Photoshop document. The cursors should then appear fine. If you would like a group of many new cursors produced this way, let me know and I'll be glad to send them. Stephen Goldberg stgoldb...@aol.com In a message dated 3/19/10 12:05:36 PM, use-revolution-requ...@lists.runrev.com writes: From: Jeffrey Massung mass...@gmail.com Subject: Re: Cursor questions To: How to use Revolution use-revolution@lists.runrev.com Message-ID: 3be3c33d-aa42-49b3-bf31-e2c8b5121...@gmail.com Content-Type: text/plain; charset=us-ascii After taking this to the next level and using my own image as a cursor... my cursor (a 16x16 imported PNG image) is turning into 100% white when I set the cursor to it. The shape is correct, but just all the colors are white. I can't find anything in the documentation about this. Any hints as to what I'm doing wrong? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Cursor questions
First, I have a splitter bar I've created that works fine, except in a standalone, the cursor I use (image ID 65) doesn't exist and therefore the app just uses the standard arrow cursor. Any way for me to ensure this cursor ends up in the standalone? Second, is it possible for me to detect that the mouse is over a link and change the cursor to something else (i.e. the hand icon/cursor)? I know there's changes coming w/ 4.5 that look promising. I haven't bothered to download the developer preview as I really don't want to risk is, but if some of these concerns go away with 4.5 and someone can just email me them (instead of breaking NDA on the list), that'd be fine, too. (mass...@gmail.com). Thanks! Jeff M.___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Cursor questions
On Fri, Mar 19, 2010 at 8:39 AM, Jeffrey Massung mass...@gmail.com wrote: First, I have a splitter bar I've created that works fine, except in a standalone, the cursor I use (image ID 65) doesn't exist and therefore the app just uses the standard arrow cursor. Any way for me to ensure this cursor ends up in the standalone? In the Standalone settings, you can check the box that says to include the cursors. But I prefer to import the cursor myself and reference it directly rather than relying in RunRev not changing the cursor ID or anything else. If you go to the Image library in the Development menu, you can select Cursors and get the ones you need. Second, is it possible for me to detect that the mouse is over a link and change the cursor to something else (i.e. the hand icon/cursor)? I know there's changes coming w/ 4.5 that look promising. I haven't bothered to download the developer preview as I really don't want to risk is, but if some of these concerns go away with 4.5 and someone can just email me them (instead of breaking NDA on the list), that'd be fine, too. (mass...@gmail.com). This doesn't require 4.5, so no NDA conflict here. I put this in a card script and it seems to work fine: on mouseMove if word 1 of the target = field then if the textStyle of the mouseText contains link then lock cursor set the cursor to hand else unlock cursor end if end if pass mouseMove end mouseMove Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Cursor questions
That took about 5 seconds to implement. Thanks, Sarah. Jeff M. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution