Re: revlets, browsers, OSs and image formats
Firefox 3.5.5 Mac OSX 10.5.8 Seem's OK Best regards from Grenoble André Le 9 déc. 09 à 17:28, Richmond Mathewson a écrit : Please have a look at this: http://andregarzia.on-rev.com/richmond/revletIMAGES.html and then SHARE with the use-list the following: Browser Operating System sincerely, Richmond Mathewson. ___ 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 ___ 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: revlets, browsers, OSs and image formats
Safari 4.0.4 MacOS X 10.6.2 OK Bons souvenirs de Paris René Le 9 déc. 09 à 17:28, Richmond Mathewson a écrit : Please have a look at this: http://andregarzia.on-rev.com/richmond/revletIMAGES.html and then SHARE with the use-list the following: Browser Operating System sincerely, Richmond Mathewson. ___ 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 ___ 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: revlets, browsers, OSs and image formats
I can't take part in this since there is still no revWeb plugin for Linux. Bernard ___ 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: revlets, browsers, OSs and image formats
On 12/10/09 12:25 PM, Bernard Devlin wrote: I can't take part in this since there is still no revWeb plugin for Linux. Come On RunRev !! ___ 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: revlets, browsers, OSs and image formats
Safari 4.0.4 Macintosh OSX 10.5.8 Revlet and screenshot look pretty close to me. Tom McGrath III Lazy River Software 3mcgr...@comcast.net iTunes Library Suite - libITS Information and download can be found on this page: http://www.lazyriversoftware.com/RevOne.html On Dec 9, 2009, at 11:28 AM, Richmond Mathewson wrote: Please have a look at this: http://andregarzia.on-rev.com/richmond/revletIMAGES.html and then SHARE with the use-list the following: Browser Operating System sincerely, Richmond Mathewson. ___ 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 ___ 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: bitXor 8 bytes of data
This is not just good natured banter. It is a poltergeist that lives in all x-talk programming, going way back to early HC. I absolutely KNOW that I have had scripts fail, even though they are perfectly well constructed, and then just fix themselves while I am fiddling with them. This even though I am CERTAIN that I changed nothing pertinent during the fiddling. Craig Newman In a message dated 12/9/09 6:51:56 PM, a...@tweedly.net writes: Sometimes it's not enough to try something . you need to tell someone else that it still fails, and only then will it start working again :-) At least once a month, I start writing an email to the use-list explaining a problem (or sometimes just ranting about it :-), and by the time I have finished writing the email, including the one last try to copy/paste the failing code, the problem has mysteriously disappeared. ___ 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: revlets, browsers, OSs and image formats
The white point looks different. On Dec 10, 2009, at 9:16 AM, Thomas McGrath III wrote: Safari 4.0.4 Macintosh OSX 10.5.8 Revlet and screenshot look pretty close to me. Tom McGrath III Lazy River Software 3mcgr...@comcast.net iTunes Library Suite - libITS Information and download can be found on this page: http://www.lazyriversoftware.com/RevOne.html On Dec 9, 2009, at 11:28 AM, Richmond Mathewson wrote: Please have a look at this: http://andregarzia.on-rev.com/richmond/revletIMAGES.html and then SHARE with the use-list the following: Browser Operating System sincerely, Richmond Mathewson. ___ 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 ___ 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 ___ 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: revlets, browsers, OSs and image formats
Thomas McGrath III mcgra...@mac.com wrote: The white point looks different. iMac G5 Mac OS X 10.5.8 Safari 4.0.4 the template seems a bit darker: (estimated with Pixie) on the kitten whiskers: - screen capture RVB=191,179,175 - revlet RVB= 212,209,209 -- Dom^W Medard ___ 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: revlets, browsers, OSs and image formats
I am not sure how this matters to color if the color reference swatch on the web page is one graphic saved as ?? png? and not the individual file types. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/12/10 Medard liste.r...@medard.on-rev.com Thomas McGrath III mcgra...@mac.com wrote: The white point looks different. iMac G5 Mac OS X 10.5.8 Safari 4.0.4 the template seems a bit darker: (estimated with Pixie) on the kitten whiskers: - screen capture RVB=191,179,175 - revlet RVB= 212,209,209 -- Dom^W Medard ___ 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 ___ 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: revlets, browsers, OSs and image formats
[the template seems a bit darker:] [The white point looks different.] Note about the RGB values in Rev images Do the following: go to a Rev card with an image choose pointer tool right click on the image and do 'launch editor' --in my case it is Photoshop then inspect the exact RGB of each pixel You will find each of these has a small offset such that the image in Rev is slightly darker. This is a bummer when trying to edit images that overlay or surround in Rev. I did not resolve how to compensate for this when I was working with an image project 2 years ago. Hope this helps. On Dec 10, 2009, at 8:11 AM, stephen barncard wrote: I am not sure how this matters to color if the color reference swatch on the web page is one graphic saved as ?? png? and not the individual file types. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/12/10 Medard liste.r...@medard.on-rev.com Thomas McGrath III mcgra...@mac.com wrote: The white point looks different. iMac G5 Mac OS X 10.5.8 Safari 4.0.4 the template seems a bit darker: (estimated with Pixie) on the kitten whiskers: - screen capture RVB=191,179,175 - revlet RVB= 212,209,209 -- Dom^W Medard Jim Ault Las Vegas ___ 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: Another Datagrid question
On Dec 9, 2009, at 10:15 PM, william humphrey wrote: How do you do a returninfield? It doesn't work if you put it in the group script. I want to return one of the cells in the selected line of a dataGroup when the return key is hit. If you have an editable field in the Data Grid then there is no message trapping that would prevent you from receiving this message in the Data Grid script (I just tested). If you are trying to trap returnInField in the built-in field editor then you need to customize the behavior script associated with it. How Can I Customize The Field Editor Behavior?: http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7338-How-Can-I-Customize-The-Field-Editor-Behavior- -- 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
Re: revlets, browsers, OSs and image formats
On 12/10/09 6:11 PM, stephen barncard wrote: I am not sure how this matters to color if the color reference swatch on the web page is one graphic saved as ?? png? and not the individual file types. - web-page now modified to include the 4 original images: http://andregarzia.on-rev.com/richmond/revletIMAGES.html and, for those of you who care about this sort of thing, the cat is now about 10 times bigger and currently asleep in front of our fireplace. ___ 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: revlets, browsers, OSs and image formats
Not to be a problem, Richmond, but it's still showing the same single jpg SNAP.jpg - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/12/10 Richmond Mathewson richmondmathew...@gmail.com On 12/10/09 6:11 PM, stephen barncard wrote: I am not sure how this matters to color if the color reference swatch on the web page is one graphic saved as ?? png? and not the individual file types. - web-page now modified to include the 4 original images: http://andregarzia.on-rev.com/richmond/revletIMAGES.html and, for those of you who care about this sort of thing, the cat is now about 10 times bigger and currently asleep in front of our fireplace. ___ 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 ___ 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: revlets, browsers, OSs and image formats
On 12/10/09 8:17 PM, stephen barncard wrote: Not to be a problem, Richmond, but it's still showing the same single jpg SNAP.jpg - Scroll down! ___ 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
Standalone ( revlet) not working: internet LIB missing?
I updated today a small stack, aimed at showing the weather forecast for my town [The Weather Channel] It works nicely, excepted for the forecast data, as they changed their web page ;-) -- set right I tried to make a standalone to put it on the desktop -- but the app refuses to launch! I tried also to build a revlet -- the plugin insists on bad revlet ;- So, I wonder if the standalone needs more resources, such as an internet lib, since it has to connect on the internet to get the forecast data... Am I correct? In this situation, what to do? ___ 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
Can a SQL data base update app when there is a change?
I have an app that talks to a MySQL data base. This is fine for posting queries and updating records. Is there a mechanism that tells my application when someone else updates the data base? When that happens I want to update the display in my app with the changes. I can do this with periodic queries but it would be much better to have a push system originating from the data base. Bill Vlahos _ InfoWallet (http://www.infowallet.com) helps me remember the important details of my life. ___ 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
Tab Button question
I make a tab button and click on a tab. The tab hilites. A menuPick message is sent to the button. But the menuPick message is not sent if the hilited tab is clicked again. Why should this be so? MouseDown and mouseUp are always sent. Thank goodness. MenuPick is sent with similarly constructed objects like a combo box, where reselecting a previously selected (and showing) menuItem still sends the menuPick message. Seems logical it ought to. Thanks. Craig Newman ___ 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: Trevor's wonderful QT External and 30 inch monitors
On Dec 8, 2009, at 4:38 PM, Mark Talluto wrote: I am having a problem using the QT ext with the qtFlipMovie param set to horizontal,yes On 24 inch and smaller monitors the videos flip just fine. On 30 inch monitors the video is not flipped. Anyone else seeing that? Some very helpful list members took a look at the problem on their own hardware while using our software and provided some helpful results. In short, something is not working correctly with the QT external and flipping a video so that it appears mirrored on 30 inch displays. Under certain conditions the video mirrored. We are guessing it has something to do with the codec used but are not sure. I am going to attempt to make a player that matches a 30inch display resolution on one of my 24inch displays and see if it renders the same results. All findings will be sent to Trevor. It is a free external so I understand this may not be a high priority. Special thanks to Wolfgang Happe and Christopher Rosien for providing detailed results. Best regards, Mark Talluto http://www.canelasoftware.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
Scaling Groups?
Hi List: Before I go off and try to reinvent the wheel, does anyone have a script that will proportionally scale objects within a group relative to each other? I have several groups consisting of images and graphics, and I need to be able to scale the individual objects in the group up and down, while keeping their relative positions intact, not just their relative sizes. Thanks for any suggestions. Best Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design ___ 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: Tab Button question
The docs seem to fully explain the situation, in the Dictionary, under the entry for menuPick it says: (However, no menuPick message is sent when an already-chosen tab in a tabbed button is clicked, since no menu is displayed.) Might not be how you want it to behave, but it's clearly documented that that's the way it is. Seems reasonable to me, FireFox, Safari and tRev don't seem to do anything when I select the already active tab again. In my stacks that use tabs I appreciate not wasting cycles on something that has already been done. On Fri, Dec 11, 2009 at 7:36 AM, dunb...@aol.com wrote: I make a tab button and click on a tab. The tab hilites. A menuPick message is sent to the button. But the menuPick message is not sent if the hilited tab is clicked again. Why should this be so? MouseDown and mouseUp are always sent. Thank goodness. MenuPick is sent with similarly constructed objects like a combo box, where reselecting a previously selected (and showing) menuItem still sends the menuPick message. Seems logical it ought to. Thanks. Craig Newman ___ 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 ___ 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: Scaling Groups?
Scott, I have no code for you, only a thought on the easiest way I could imagine: - calculate orig width / new width ratio of the meta group - calculate orig height / new height ratio of the meta group - I would scale the individual objects' height and width using the ratios above - I would scale the locations of each object with the same ratios - I would then place the new resized objects at their new locations But you probably know all that. I was fun to type it out, tho. Best, Jerry Daniels The latest Rev Editor Video: http://reveditor.com/feature-friday-drag-n-drop-your-handlers On Dec 10, 2009, at 7:21 PM, Scott Rossi wrote: Hi List: Before I go off and try to reinvent the wheel, does anyone have a script that will proportionally scale objects within a group relative to each other? I have several groups consisting of images and graphics, and I need to be able to scale the individual objects in the group up and down, while keeping their relative positions intact, not just their relative sizes. Thanks for any suggestions. Best Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design ___ 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 ___ 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: Scaling Groups?
I do have some code that does exactly this - not on this computer though - I'll try to look it out for you later tomorrow? I'll have to check it though as it is a few years old (in the early days of creating nested widgets), and well may be fine but may be ugly as hell :) ___ 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: Scaling Groups?
Thanks to all who replied about my scaling groups question. As it turns out, I was able to come up with a solution in about a tenth of the time I thought it would take (and I was dreading it). The biggest issue for me is Rev¹s reliance on integers for object positioning -- this is a serious limitation when it comes to scaling because object dimensions can get heavily distorted when the objects are repeatedly scaled. I needed a way to keep object dimensions from getting too messed up if the user wants to size a group up and down repeatedly. The only way I know how to do this is to store the original dimensions and refer to those whenever an object is scaled. The following code does this, called from a scrollbar whose start/end values are 50 and 200 (equates to 50% and 200%). Objects are initialized with their ³starting² specs, and since those specs are always used in the code, scaling is as distortion-free as possible: on scrollbarDrag pValue scaleGroup long id of grp ³my great group²,pValue end scrollbarDrag on scaleGroup pGroup,pValue initObjSpecs pGroup put pValue/100 into tPercent put loc of pGroup into masterLoc lock screen set width of pGroup to the uDefaultWidth of pGroup * tPercent set height of pGroup to the uDefaultHeight of pGroup * tPercent set loc of pGroup to masterLoc repeat with N = 1 to number of controls of pGroup put long id of control N of pGroup into tObj set width of tObj to (item 1 of the uOrigDimensions of tObj * tPercent) set height of tObj to (item 2 of the uOrigDimensions of tObj * tPercent) put item 1 of masterLoc - (item 1 of the uOrigOffset of tObj * tPercent) into X put item 2 of masterLoc - (item 2 of the uOrigOffset of tObj * tPercent) into Y set loc of tObj to X,Y end repeat set loc of pGroup to masterLoc unlock screen end scaleGroup on initObjSpecs pGroup put loc of pGroup into masterLoc if the uDefaultWidth of pGroup = then set the uDefaultWidth of pGroup to width of pGroup if the uDefaultHeight of pGroup = then set the uDefaultHeight of pGroup to height of pGroup put the number of controls of pGroup into objCount repeat with N = 1 to objCount put long id of control N of pGroup into tObj if the uOrigOffset of tObj and the uOrigDimensions of tObj then next repeat put loc of tObj into objLoc set the uOrigOffset of tObj to item 1 of masterLoc - item 1 of objLoc,item 2 of masterLoc - item 2 of objLoc set the uOrigDimensions of tObj to width of tObj,height of tObj end repeat end initObjSpecs Maybe other folks will find this useful. Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design ___ 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: Tab Button question
I must read the dictionary more. I was trying to find info on the object, the button, and it didn't occur to me to read up on the message. This makes some sort of sense, I guess, in hindsight, but still, I miss a Goodman-like resource. Where is Dan, anyway? Thanks for the research. Craig Newman ___ 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
Printing a player image in XP
I need to display TIFFs and QuickTime is the only way I know to do that in Rev. So, I make sure XP has QT installed and then I use the Player object. Everything displays fine. When I print in XP, though, i get mush. The Players are just a grey box (everything else on the page prints fine.) I also tried Printing to PDF to see if that helped but no dice. It works fine in OSX so the approach appears to be sound. I did consider a workaround of 'export snapshot as PNG' and then putting that image in front of the Player. However, the QT approach is already a little pokey and so I'd like to find a better solution. (It also might snapshot the print dialogue unless it supports off-screen shots!) Any thoughts, ideas, magical incantations ??? TY ... Chris ___ 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: Tab Button question
On Fri, Dec 11, 2009 at 1:08 PM, dunb...@aol.com wrote: I must read the dictionary more. Shouldn't we all :-) ___ 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: Scaling Groups?
Hello Scott, Thanks for posting your script. I just tried it on a small collection of controls and images and it worked well. Much appreciated. Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email sc...@elementarysoftware.com -- On Dec 10, 2009, at 9:00 PM, Scott Rossi wrote: Thanks to all who replied about my scaling groups question. As it turns out, I was able to come up with a solution in about a tenth of the time I thought it would take (and I was dreading it). The biggest issue for me is Rev’s reliance on integers for object positioning -- this is a serious limitation when it comes to scaling because object dimensions can get heavily distorted when the objects are repeatedly scaled. I needed a way to keep object dimensions from getting too messed up if the user wants to size a group up and down repeatedly. The only way I know how to do this is to store the original dimensions and refer to those whenever an object is scaled. The following code does this, called from a scrollbar whose start/end values are 50 and 200 (equates to 50% and 200%). Objects are initialized with their “starting” specs, and since those specs are always used in the code, scaling is as distortion-free as possible: on scrollbarDrag pValue scaleGroup long id of grp “my great group”,pValue end scrollbarDrag on scaleGroup pGroup,pValue initObjSpecs pGroup put pValue/100 into tPercent put loc of pGroup into masterLoc lock screen set width of pGroup to the uDefaultWidth of pGroup * tPercent set height of pGroup to the uDefaultHeight of pGroup * tPercent set loc of pGroup to masterLoc repeat with N = 1 to number of controls of pGroup put long id of control N of pGroup into tObj set width of tObj to (item 1 of the uOrigDimensions of tObj * tPercent) set height of tObj to (item 2 of the uOrigDimensions of tObj * tPercent) put item 1 of masterLoc - (item 1 of the uOrigOffset of tObj * tPercent) into X put item 2 of masterLoc - (item 2 of the uOrigOffset of tObj * tPercent) into Y set loc of tObj to X,Y end repeat set loc of pGroup to masterLoc unlock screen end scaleGroup on initObjSpecs pGroup put loc of pGroup into masterLoc if the uDefaultWidth of pGroup = then set the uDefaultWidth of pGroup to width of pGroup if the uDefaultHeight of pGroup = then set the uDefaultHeight of pGroup to height of pGroup put the number of controls of pGroup into objCount repeat with N = 1 to objCount put long id of control N of pGroup into tObj if the uOrigOffset of tObj and the uOrigDimensions of tObj then next repeat put loc of tObj into objLoc set the uOrigOffset of tObj to item 1 of masterLoc - item 1 of objLoc,item 2 of masterLoc - item 2 of objLoc set the uOrigDimensions of tObj to width of tObj,height of tObj end repeat end initObjSpecs Maybe other folks will find this useful. Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design ___ 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 ___ 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: Scaling Groups?
Thanks, Scott. Since you still have almost ninety percent of the time left, what do you think of scaling the content of fields using tPercent? That could be good when the text is too small for the old reading glasses. -- Dick On 12/10/09 9:00 PM, Scott Rossi sc...@tactilemedia.com wrote: Thanks to all who replied about my scaling groups question. As it turns out, I was able to come up with a solution in about a tenth of the time I thought it would take (and I was dreading it). The biggest issue for me is Rev¹s reliance on integers for object positioning -- this is a serious limitation when it comes to scaling because object dimensions can get heavily distorted when the objects are repeatedly scaled. I needed a way to keep object dimensions from getting too messed up if the user wants to size a group up and down repeatedly. The only way I know how to do this is to store the original dimensions and refer to those whenever an object is scaled. The following code does this, called from a scrollbar whose start/end values are 50 and 200 (equates to 50% and 200%). Objects are initialized with their ³starting² specs, and since those specs are always used in the code, scaling is as distortion-free as possible: on scrollbarDrag pValue scaleGroup long id of grp ³my great group²,pValue end scrollbarDrag on scaleGroup pGroup,pValue initObjSpecs pGroup put pValue/100 into tPercent put loc of pGroup into masterLoc lock screen set width of pGroup to the uDefaultWidth of pGroup * tPercent set height of pGroup to the uDefaultHeight of pGroup * tPercent set loc of pGroup to masterLoc repeat with N = 1 to number of controls of pGroup put long id of control N of pGroup into tObj set width of tObj to (item 1 of the uOrigDimensions of tObj * tPercent) set height of tObj to (item 2 of the uOrigDimensions of tObj * tPercent) put item 1 of masterLoc - (item 1 of the uOrigOffset of tObj * tPercent) into X put item 2 of masterLoc - (item 2 of the uOrigOffset of tObj * tPercent) into Y set loc of tObj to X,Y end repeat set loc of pGroup to masterLoc unlock screen end scaleGroup on initObjSpecs pGroup put loc of pGroup into masterLoc if the uDefaultWidth of pGroup = then set the uDefaultWidth of pGroup to width of pGroup if the uDefaultHeight of pGroup = then set the uDefaultHeight of pGroup to height of pGroup put the number of controls of pGroup into objCount repeat with N = 1 to objCount put long id of control N of pGroup into tObj if the uOrigOffset of tObj and the uOrigDimensions of tObj then next repeat put loc of tObj into objLoc set the uOrigOffset of tObj to item 1 of masterLoc - item 1 of objLoc,item 2 of masterLoc - item 2 of objLoc set the uOrigDimensions of tObj to width of tObj,height of tObj end repeat end initObjSpecs Maybe other folks will find this useful. Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design ___ 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 ___ 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