Re: Physical Screen Size
Ok, what about attaching a scanner that you have already calibrated? Should be easy to up the contrast and then scan for edges. Another option would be to grab a pair of cheap electronic calipers and hacking them onto a USB device to read the output values. Alternatively: Hack a USB mouse and rig the H and V rollers to a table. Then attach a 'pointer' to these rollers and read the H and V values as the item is 'drawn' and translate them into the appropriate size (knowing the dimensions of the table and calibrating accordingly). Hmmm, maybe a graphics tablet would do, but it'd get damaged easily. It would avoid the monitor getting damaged...! I reckon the scanner would be the more accurate option and you can then store that for each client. I wouldn't count on the pixels being square by the way. Cheers, Luis. On 30 Jan 2007, at 18:52, Walton Sumner wrote: I have a survey instrument which can require interface elements to have exact physical lengths, especially a "visual analog scale" that is traditionally 10 cm. Not knowing what the screen settings will be on client machines, I have for the time being put a button on the first screen of the survey instrument that allows a survey administrator to drag it's right edge until it is 2 cm long. Then anything else in the stack that needs an absolute size can be rescaled accordingly. You can put some constraints on the assertions, like expecting no more than 100 pixels/2cm and no less than 50 (one real value is 83 on this iMac). So far I've assumed that pixels are squares, hope that's safe. As long as the survey instrument resides on a given machine, this is a one-time, set-and-forget event. The rev program reads instructions (including VAS lengths) in text files to implement new surveys, so the client holding the pixels/cm data should not be replaced very often. It is not at all elegant, but I expect that the obvious variations on this theme are pretty reliable (eg, "How long is this line?", "Click 3 cm from the end of this line"), and perhaps less trouble for the user than asking for several unfamiliar measurements. Still, if there is a transparent way, I'd like to use it! To use the info that Luis found, it seems like you would have to assert a pagerect in a print command, then get the printscale used in printing the page, then calculate the absolute size of the card on screen. Has anyone tried that? Seems like the simplest thing to do should be to read the diagonal of used screen space from the hardware, but I do not see a rev command to do that. Maybe there is a shell command to read the diagonal on some systems, but I have not found it. Walton Sumner Found this under the 'print' entry in the Rev Dictionary: 'The pageRect is the rectangle into which the card is printed, and consists of four integers separated by commas: the left, top, right, and bottom edges of the printed card, in points. (There are 72 points to an inch.) The card is scaled to fit the specified pageRect. If you don't specify a pageRect, the card's size depends on the printScale property.' Might help in calibrating the size. Cheers, Luis. Luis wrote: Hmmm, ok. What you could then do is open a dialogue box asking for dimensions (17 inch, 19 inch, etc), resolution, type (CRT, LCD or Plasma) and dpi. If the dpi is unknown by the user you could try to default to the most common dpi for that 'type' of monitor. Cheers, Luis. Mark Schonewille wrote: Hi Luis, Yup, my main monitor is of the brand "unknown". Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 19-jan-2007, om 17:00 heeft Luis het volgende geschreven: Hiya, If you can determine the monitor type you could probe a database of configurations/resolution/dpi settings etc and then calculate the image size (using its coordinates) based on this information. I haven't looked into this but I reckon OSX and WXP have these in the system somewhere (so they can 'plug and play'). Cheers, Luis. ___ 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: Physical Screen Size
I have a survey instrument which can require interface elements to have exact physical lengths, especially a "visual analog scale" that is traditionally 10 cm. Not knowing what the screen settings will be on client machines, I have for the time being put a button on the first screen of the survey instrument that allows a survey administrator to drag it's right edge until it is 2 cm long. Then anything else in the stack that needs an absolute size can be rescaled accordingly. You can put some constraints on the assertions, like expecting no more than 100 pixels/2cm and no less than 50 (one real value is 83 on this iMac). So far I've assumed that pixels are squares, hope that's safe. As long as the survey instrument resides on a given machine, this is a one-time, set-and-forget event. The rev program reads instructions (including VAS lengths) in text files to implement new surveys, so the client holding the pixels/cm data should not be replaced very often. It is not at all elegant, but I expect that the obvious variations on this theme are pretty reliable (eg, "How long is this line?", "Click 3 cm from the end of this line"), and perhaps less trouble for the user than asking for several unfamiliar measurements. Still, if there is a transparent way, I'd like to use it! To use the info that Luis found, it seems like you would have to assert a pagerect in a print command, then get the printscale used in printing the page, then calculate the absolute size of the card on screen. Has anyone tried that? Seems like the simplest thing to do should be to read the diagonal of used screen space from the hardware, but I do not see a rev command to do that. Maybe there is a shell command to read the diagonal on some systems, but I have not found it. Walton Sumner > Found this under the 'print' entry in the Rev Dictionary: > > 'The pageRect is the rectangle into which the card is printed, and > consists of four integers separated by commas: the left, top, right, and > bottom edges of the printed card, in points. (There are 72 points to an > inch.) The card is scaled to fit the specified pageRect. If you don't > specify a pageRect, the card's size depends on the printScale property.' > > Might help in calibrating the size. > > Cheers, > > Luis. > > > > Luis wrote: >> Hmmm, ok. What you could then do is open a dialogue box asking for >> dimensions (17 inch, 19 inch, etc), resolution, type (CRT, LCD or >> Plasma) and dpi. If the dpi is unknown by the user you could try to >> default to the most common dpi for that 'type' of monitor. >> >> Cheers, >> >> Luis. >> >> >> Mark Schonewille wrote: >>> Hi Luis, >>> >>> Yup, my main monitor is of the brand "unknown". >>> >>> Mark >>> >>> -- >>> >>> Economy-x-Talk >>> Consultancy and Software Engineering >>> http://economy-x-talk.com >>> http://www.salery.biz >>> >>> Get your store on-line within minutes with Salery Web Store software. >>> Download at http://www.salery.biz >>> >>> Op 19-jan-2007, om 17:00 heeft Luis het volgende geschreven: >>> Hiya, If you can determine the monitor type you could probe a database of configurations/resolution/dpi settings etc and then calculate the image size (using its coordinates) based on this information. I haven't looked into this but I reckon OSX and WXP have these in the system somewhere (so they can 'plug and play'). Cheers, Luis. ___ 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: Physical Screen Size
Found this under the 'print' entry in the Rev Dictionary: 'The pageRect is the rectangle into which the card is printed, and consists of four integers separated by commas: the left, top, right, and bottom edges of the printed card, in points. (There are 72 points to an inch.) The card is scaled to fit the specified pageRect. If you don't specify a pageRect, the card's size depends on the printScale property.' Might help in calibrating the size. Cheers, Luis. Luis wrote: Hmmm, ok. What you could then do is open a dialogue box asking for dimensions (17 inch, 19 inch, etc), resolution, type (CRT, LCD or Plasma) and dpi. If the dpi is unknown by the user you could try to default to the most common dpi for that 'type' of monitor. Cheers, Luis. Mark Schonewille wrote: Hi Luis, Yup, my main monitor is of the brand "unknown". Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 19-jan-2007, om 17:00 heeft Luis het volgende geschreven: Hiya, If you can determine the monitor type you could probe a database of configurations/resolution/dpi settings etc and then calculate the image size (using its coordinates) based on this information. I haven't looked into this but I reckon OSX and WXP have these in the system somewhere (so they can 'plug and play'). Cheers, Luis. ___ 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: Physical Screen Size
Hmmm, ok. What you could then do is open a dialogue box asking for dimensions (17 inch, 19 inch, etc), resolution, type (CRT, LCD or Plasma) and dpi. If the dpi is unknown by the user you could try to default to the most common dpi for that 'type' of monitor. Cheers, Luis. Mark Schonewille wrote: Hi Luis, Yup, my main monitor is of the brand "unknown". Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 19-jan-2007, om 17:00 heeft Luis het volgende geschreven: Hiya, If you can determine the monitor type you could probe a database of configurations/resolution/dpi settings etc and then calculate the image size (using its coordinates) based on this information. I haven't looked into this but I reckon OSX and WXP have these in the system somewhere (so they can 'plug and play'). Cheers, Luis. ___ 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: Physical Screen Size
Hi Luis, Yup, my main monitor is of the brand "unknown". Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 19-jan-2007, om 17:00 heeft Luis het volgende geschreven: Hiya, If you can determine the monitor type you could probe a database of configurations/resolution/dpi settings etc and then calculate the image size (using its coordinates) based on this information. I haven't looked into this but I reckon OSX and WXP have these in the system somewhere (so they can 'plug and play'). Cheers, Luis. ___ 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: Physical Screen Size
Hiya, If you can determine the monitor type you could probe a database of configurations/resolution/dpi settings etc and then calculate the image size (using its coordinates) based on this information. I haven't looked into this but I reckon OSX and WXP have these in the system somewhere (so they can 'plug and play'). Cheers, Luis. Mark Schonewille wrote: Hi TIm, Of course, you could make a few presets for the most common resolutions, but you won't be able to create presets for all current and future resolutions. Instead, I'd make a simple interface to adjust the size of the working space on screen. I don't think that people will mind that the size is not exactly the same as in reality, but they will appreciate the possibility to enlarge the view. Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 19-jan-2007, om 16:26 heeft Tim Ponn het volgende geschreven: Mark, Now...it just occurred to me as I was writing this...a good work around may be to tweak it on my monitor until it's the same scale, then use my set resolution to recalculate and change size based on the resolution of the user. In fact, I'm certain that will work. Thanks for your poking, you got me to think! Best Regards, Timothy R. Ponn ALPTEX, Inc. ___ 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: Physical Screen Size
Hi TIm, Of course, you could make a few presets for the most common resolutions, but you won't be able to create presets for all current and future resolutions. Instead, I'd make a simple interface to adjust the size of the working space on screen. I don't think that people will mind that the size is not exactly the same as in reality, but they will appreciate the possibility to enlarge the view. Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 19-jan-2007, om 16:26 heeft Tim Ponn het volgende geschreven: Mark, Now...it just occurred to me as I was writing this...a good work around may be to tweak it on my monitor until it's the same scale, then use my set resolution to recalculate and change size based on the resolution of the user. In fact, I'm certain that will work. Thanks for your poking, you got me to think! Best Regards, Timothy R. Ponn ALPTEX, Inc. ___ 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: Physical Screen Size
Mark, I understand why folks set their screen res the way they do...I know someone who always sets it at the highest possible...never mind that it's nearly impossible to see the icons on their desktop without magnification! ;=) Here's my application and why it's important to me... We designed and built an extremely accurate 3 axis cnc micro-driller about 7 years ago which is controlled by a HyperCard stack. We use it in production to drill holes as small as .010" dia. through a variety of plastics with a guaranteed accuracy of .00025". The "work area" is small, just 4" square...but it has served our needs perfectly. In my stack, I represent the work area on screen in exactly the same size...WYSIWYG-in-extreme, if you will. When the file is loaded, the pattern is displayed. As each hole is drilled, the appropriate circle is "filled in" on the screen. I've used Rev for about 5 years now, and am converting this stack into a rev app. If we were only using it in house, no biggie, I would just tweak the display like I did last time. But now we're thinking of building and selling these machines (with perhaps a 12" square work area and higher RPM drill head to allow for smaller drills) to others. Now...it just occurred to me as I was writing this...a good work around may be to tweak it on my monitor until it's the same scale, then use my set resolution to recalculate and change size based on the resolution of the user. In fact, I'm certain that will work. Thanks for your poking, you got me to think! Best Regards, Timothy R. Ponn ALPTEX, Inc. On Jan 19, 2007, at 7:26 AM, Mark Schonewille wrote: Hi Tim, Normally, people set the screen resolution to a higher number because they want more to fit on their screen. They would be surprised to see that your application doesn't show more on screen despite a higher resolution, if you manage to do this. I don't think that the actual screen size is of any importance. Sometimes, it could be useful to adjust an application to the screen resolution, e.g. if you are making a full-screen interface. The physical screen size has nothing to do with this. So, why would you want to do this? Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz ___ 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: Physical Screen Size
If you *have* to have the physical dimensions, remember that some of the odder screen resolution settings don't have the same vertical and horizontal pixels per inch, so the user will need to measure in both directions. Rather than asking the user to measure an object (and enter the measurement) it might be easier to vary the size of the object to match a ruler, i.e. "please line the ruler up with the left end of the bar, and drag the right end of the bar until it reaches the 10cm mark on the ruler". I don't know of ANY other way to find out the physical dimensions, even Apple don't manage it on their own hardware. Ian On 19 Jan 2007, at 12:02, Tim Ponn wrote: Hello! I'm working on a project and I would like to get the "physical" screen size of the system. Is there a way to do this? I see how to get many of the screen attributes...but as to physical siza...nadda. A cheesy way to do this, I suppose, would be to display an object when the app is started up and ask the user to measure it and enter the measurement. Based on that I could calculate the size of the screen. Has anyone discovered how to do this? Best Regards, Timothy R. Ponn ALPTEX, Inc. ___ 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: Physical Screen Size
Hi Tim, Normally, people set the screen resolution to a higher number because they want more to fit on their screen. They would be surprised to see that your application doesn't show more on screen despite a higher resolution, if you manage to do this. I don't think that the actual screen size is of any importance. Sometimes, it could be useful to adjust an application to the screen resolution, e.g. if you are making a full-screen interface. The physical screen size has nothing to do with this. So, why would you want to do this? Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 19-jan-2007, om 13:02 heeft Tim Ponn het volgende geschreven: Hello! I'm working on a project and I would like to get the "physical" screen size of the system. Is there a way to do this? I see how to get many of the screen attributes...but as to physical siza...nadda. A cheesy way to do this, I suppose, would be to display an object when the app is started up and ask the user to measure it and enter the measurement. Based on that I could calculate the size of the screen. Has anyone discovered how to do this? Best Regards, Timothy R. Ponn ALPTEX, Inc. ___ 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
Physical Screen Size
Hello! I'm working on a project and I would like to get the "physical" screen size of the system. Is there a way to do this? I see how to get many of the screen attributes...but as to physical siza...nadda. A cheesy way to do this, I suppose, would be to display an object when the app is started up and ask the user to measure it and enter the measurement. Based on that I could calculate the size of the screen. Has anyone discovered how to do this? Best Regards, Timothy R. Ponn ALPTEX, Inc. ___ 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