Re: Call to all you one-liners !
The 'color' function is most definitely a grey area... or maybe it is a gray area. On Jun 27, 2010, at 9:59 PM, J. Landman Gay wrote: Ken Ray wrote: Depends on your objective. If the aim of the isAColor function is to determine whether the passed parameter can be used as a parameter in setting one of the color properties, then I think the function performs as designed. My issue isn't with *your* isAColor function - it's with the built-in is a color function (or is it statement?)... I meant that this: put 1000,1000,1000 is a color should return false instead of true. I agree. If is a date doesn't wrap, colors shouldn't either. This returns false: put 13/133/09 is a date So for consistency, and to avoid confusion, 1000,1000,1000 shouldn't be a color. I think that's what most people would expect. Now, dates can also be single integers (they're considered seconds) so single color integers could also be considered...um...whatever they're considered. -- 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: Question about Native Geometry
Jacque, Its 1920 x 1080. When you set the text size, it works but only partly. Some of the fonts come up the right size, others do not. Some parts of a para in the dictionary are resized, other parts not. The objects also are not resized, so they don't fit any more. To make any difference, it has to be set higher than 14, to 16 or 18. I suspect that the reason it doesn't work properly is two fold. One, the objects do not resize to accept the new text size. So perhaps Rev needs to license Geometry Manager! Second, we probably still have the old Rev font problem: not all fonts are recognized, and not all sizes are available with all that are. I had this problem a while ago, forget exactly which release it was, when setting a font size of some fonts to an out of range size resulted in them reverting to 10 or 12 pt. I'll try Richmond's suggestions. Peter -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Question-about-Native-Geometry-tp2269122p2270570.html Sent from the Revolution - User mailing list archive at Nabble.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
[OT] Free Apple WWDC videos!
All you have to do is register and they are all available for FREE: http://developer.apple.com/videos/wwdc/2010/ Richmond. ___ 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: Call to all you one-liners !
On Jun 28, 2010, at 2:10 AM, Jim Ault wrote: The 'color' function is most definitely a grey area... or maybe it is a gray area. 128,128,128 or 212,212,212 ??? -- 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
specialFolderPath question
I have the following script (partial script to save space) in an altAccordion group. When the user clicks on selection_1 the user is not always taken to the path indicated in the script. In these situations, the user is taken to the last path, which may selection_2. I thought that the path in the script would always take the user to that path on mouseUp put the hilitedLine of field Student Plans into the_selection if the_selection is 1 then answer file Open Student Plans file: with specialFolderPath(documents) /Plans_Student Why does this happen? And, how can I insure that the user will always go the path indicated by (specialFolderPath(documents) /Plans_Student)? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/specialFolderPath-question-tp2270986p2270986.html Sent from the Revolution - User mailing list archive at Nabble.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: Line Numbers in Text Editor
Good stuff, Jeff. Thanks for posting that. In the olden days I had to be very careful about attempting to update things on scrollBarDrag because the performance hit was often quite noticeable, but on modern systems I must say I've been impressed with the combination of general system performance and the smart way the scrollBarDrag message is sent to support that sort of thing. Not long ago I needed to draw a series of polygons with certain shapes and locations relative to positions of chunks of text in a scrolling field. After some experimentation I was delighted to find out well it worked to do that dynamically on the fly, calculating and rendering the polygons in response to scrollBarDrag. But on that project I had one advantage I don't have with a script editor: the field I'm doing my calculations with is read-only, whereas a script editor's contents are dynamic. I also had no choice: in Rev, objects are limited to 32,767 px in height, but of course for a field with a lot of content I could (and did) easily wind up needing a polygon much taller than that. This is similar to the problem Trevor's DataGrid solves, in which contents that would be prohibitively tall can be rendered dynamically if needed. But since line numbers can be done in advance without difficulty it would not have occurred to me to render them dynamically. How responsive do you find that algo with carriage returns? If a script editor provides auto-indenting the returnInField message is already pretty well loaded with code, which is why I've been reluctant to add more to it with things like dynamic line numbers. Memory size is usually minimal with prefab line numbers since they generally take up a small fraction of the space of the script itself, and I would be reluctant to also page the script in an out of the field in response to scrollbarDrag for the complexity it adds and given that the engine's field buffering is some of the best in the biz. But if your experience is favorable it may well be worth exploring that in my next revision. Thanks again for the provocative take on this problem. One of the great things about Rev is the wide variety of ways a given problem can be solved. -- Richard Gaskin Fourth World Rev training and consulting: http://www.fourthworld.com Webzine for Rev developers: http://www.revjournal.com revJournal blog: http://revjournal.com/blog.irv Jeff Massung wrote: I gotta say, my name is Jeff Massung, and I disapprove of that solution. ;-) I love everyone sharing their ideas, but this is one that's been a solved problem, well... for a very long time, and with a little math there's no performance issue what-so-ever, and there's no need to keep around a field with thousands of numbers in it. Think of what we know: * The size of our editor. * Where the scrollbar is. * The size of the font we're using. From this, there's very little we actually need to do. Even with the largest monitor on the planet and using the smallest (readable) font, the number of average lines visible to any user is well 100. So, generally speaking, we should never need to do much more than count to 100 at any given point in time to update our gutter area containing line numbers. So, here's a little script taking from my editor. It assumes that the the gutter area is always sized to the same height as the editor, that the line height is fixed (read: we're not embedding images or changing the font size), and that the editor has line wrapping turned off. With a few tweaks it could work just fine with those features on, but for the sake of this discussion, we'll leave them off. on updateGutter local tHeight local tTextHeight local tScroll local tFirstRow local tRows -- wipe the gutter clean put empty into fld Line Numbers -- snag what we care about from the editor put the vScroll of fld Editor into tScroll put the effective textHeight of fld Editor into tTextHeight put the height of fld Editor into tHeight -- calculate the first visible line and the total number of visible lines put tScroll div tTextHeight into tFirstRow put tHeight div tTextHeight into tRows -- fill in the gutter with the line numbers repeat with tLine = tFirstRow to tFirstRow + tRows put tLine + 1 cr after fld Line Numbers end repeat -- scroll the gutter (every so slightly) to match the editor set the textSize of fld Line Numbers to the textSize of fld Editor set the textFont of fld Line Numbers to the textFont of fld Editor set the vScroll of fld Line Numbers to tScroll mod tTextHeight end updateGutter That's pretty much it. Now we need to know when to update the gutter area. We need to update it when: * on scrollbarDrag (the editor) * when the we reset the editor to display something new * when we resize the editor (and subsequently the gutter) HTH, ___
Re: snapshot and background problems
Thanks Scott. I don't know what is going on. I tried this before and I didn't get anything but trash. This morning when I ran the handler the image became grey. I had been saying 'set the imagedata ...' instead of '...text...'. I tried text and the same nothing changed. So I deleted and dragged a new image into the background ( for the nth time) and ran the handler again and it worked!?? Michael On Jun 27, 2010, at 11:51 PM, tsj wrote: On 28/06/10 1:42 PM, Scott Rossi sc...@tactilemedia.com wrote: Recently, I wrote: export snapshot from rect 0,0,100,100 to someVar as PNG set the text of image myimage to someVar Correction: ___ 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
Location parameters in Size Inspector for stack
When I type in a new location and tab out of the field in the size position inspector for a stack nothing happens. All other objects I've done this with update their location when I tab out. Is this a feature or a bug? If it is a feature, why? Thanks, Michael___ 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: Location parameters in Size Inspector for stack
Works for me. Something is going on at your end. If you click and hold on the small arrows, does the stack size change, tracking the increase or decrease in the values? Craig Newman In a message dated 6/28/10 11:07:50 AM, mich...@michaelsmanias.com writes: When I type in a new location and tab out of the field in the size position inspector for a stack nothing happens. All other objects I've done this with update their location when I tab out. Is this a feature or a bug? If it is a feature, why? Thanks, ___ 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
Need Help with Geometry
Hello everyone, Not quite sure how to set the Geometry manager to get the results I want. I have two fields that are the exactly same size with one siting above the other and their left edges aligned. I'd like them to scale proportionately both width-wise and length-wise to the lower right, keeping the vertical distance between them constant. In other words, I want the two fields to get bigger or smaller together and keep the same distance apart. Thought it would be easy, but I've tried many different combinations of settings in the Geometry manager with no luck. Any advice would be most appreciated. Gregory ___ 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: Location parameters in Size Inspector for stack
Yes this works. On Jun 28, 2010, at 10:16 AM, dunb...@aol.com wrote: Works for me. Something is going on at your end. If you click and hold on the small arrows, does the stack size change, tracking the increase or decrease in the values? ___ 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: Location parameters in Size Inspector for stack
So the size tracks the changes when clicking on the arrows, but NOT when you enter a value and leave the field? Craig Newman In a message dated 6/28/10 11:24:39 AM, mich...@michaelsmanias.com writes: Yes this works. ___ 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: specialFolderPath question
Did you try setting the defaultFolder before doing the answer file command? ___ 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: specialFolderPath question
Shao, No, I didn't. I was aware that the defaultFolder have to be set! Charles Szasz csz...@mac.com On Jun 28, 2010, at 11:37 AM, Shao Sean-2 [via Runtime Revolution] wrote: Did you try setting the defaultFolder before doing the answer file command? ___ use-revolution mailing list [hidden email] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution View message @ http://runtime-revolution.278305.n4.nabble.com/specialFolderPath-question-tp2270986p2271082.html To unsubscribe from specialFolderPath question, click here. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/specialFolderPath-question-tp2270986p2271093.html Sent from the Revolution - User mailing list archive at Nabble.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: Need Help with Geometry
I think this is best done under script control. Do you mean that the two fields scale when the stack size changes? Or are there other ways to change the size of one field, and you want the other one to obey certain rules? Fun ways to do either... 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: specialFolderPath question
Hi charles61, I have the following script (partial script to save space) in an altAccordion group. When the user clicks on selection_1 the user is not always taken to the path indicated in the script. In these situations, the user is taken to the last path, which may selection_2. I thought that the path in the script would always take the user to that path on mouseUp put the hilitedLine of field Student Plans into the_selection if the_selection is 1 then answer file Open Student Plans file: with specialFolderPath(documents) /Plans_Student Why does this happen? And, how can I insure that the user will always go the path indicated by (specialFolderPath(documents) /Plans_Student)? I think you cannot add a FILENAME to answer file! (What if the fiel does not exist?) Leave the /Plans_Studet and it will work! ... answer file Open Student Plans file: with specialFolderPath(documents) ## WORKS! ... You could add this to the prompt: ... answer file Open file Plans_Studet: with... ... And then check if the user chose the right file. Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.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
Refresh on close
What do you figure the best method for refreshing the datagrid on a stack that launches a modal after the modal closes? for instance, You click add person on a stack. The add person modal shows. You add some people. You click Exit on the modal. The Datagrid in the first stack refreshes to show the new data. The problem is this add person modal might arrive from many different stacks. How would I target specifically what I want to refresh on the modals close? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Refresh-on-close-tp2271136p2271136.html Sent from the Revolution - User mailing list archive at Nabble.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: Refresh on close
--- On Mon, 6/28/10, Andrew Kluthe and...@rjdfarm.com wrote: What do you figure the best method for refreshing the datagrid on a stack that launches a modal after the modal closes? for instance, You click add person on a stack. The add person modal shows. You add some people. You click Exit on the modal. The Datagrid in the first stack refreshes to show the new data. The problem is this add person modal might arrive from many different stacks. How would I target specifically what I want to refresh on the modals close? -- As you said, the modal editor can be opened from different stacks, so the most logical place would be to call the 'refresh' code right after the 'modal' command that opens your editor stack - when the modal dialog is closed, the original script will resume after the 'modal' command. If you want to update all the open 'Persons' datagrids throughout your applmication, you'll have to find some way to register the datagrids and dispatch a refresh to all of their 'caretakers'. Jan Schenkel. = Quartam Reports PDF Library for Revolution http://www.quartam.com = As we grow older, we grow both wiser and more foolish at the same time. (La Rochefoucauld) ___ 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: Location parameters in Size Inspector for stack
When I go to one of the location fields, type in a different number; tab: nothing happens. If I click either of the arrows for the location's input fields of the stack, the stack updates to the incremented value. I've quit and restarted Rev; created a new empty mainstack with the same results. Here is something stranger: If I click the max or min width arrow the stack shrinks to about width=3, height=10 not at the location in the inspector. I can then click the size fields arrow to get the size and width to update but the stack is not at the location advertised. If I click one of the arrows associated with the location the location updates. I'm running 4.0 on 10.6.4 Michael On Jun 28, 2010, at 10:27 AM, dunb...@aol.com wrote: So the size tracks the changes when clicking on the arrows, but NOT when you enter a value and leave the field? 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: specialFolderPath question
Klaus, Thanks for your suggestions! Charles Szasz csz...@mac.com On Jun 28, 2010, at 12:13 PM, Klaus on-rev [via Runtime Revolution] wrote: Hi charles61, I have the following script (partial script to save space) in an altAccordion group. When the user clicks on selection_1 the user is not always taken to the path indicated in the script. In these situations, the user is taken to the last path, which may selection_2. I thought that the path in the script would always take the user to that path on mouseUp put the hilitedLine of field Student Plans into the_selection if the_selection is 1 then answer file Open Student Plans file: with specialFolderPath(documents) /Plans_Student Why does this happen? And, how can I insure that the user will always go the path indicated by (specialFolderPath(documents) /Plans_Student)? I think you cannot add a FILENAME to answer file! (What if the fiel does not exist?) Leave the /Plans_Studet and it will work! ... answer file Open Student Plans file: with specialFolderPath(documents) ## WORKS! ... You could add this to the prompt: ... answer file Open file Plans_Studet: with... ... And then check if the user chose the right file. Best Klaus -- Klaus Major http://www.major-k.de [hidden email] ___ use-revolution mailing list [hidden email] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution View message @ http://runtime-revolution.278305.n4.nabble.com/specialFolderPath-question-tp2270986p2271133.html To unsubscribe from specialFolderPath question, click here. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/specialFolderPath-question-tp2270986p2271182.html Sent from the Revolution - User mailing list archive at Nabble.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: snapshot and background problems
Recently, Michael D Mays wrote: Thanks Scott. I don't know what is going on. I tried this before and I didn't get anything but trash. This morning when I ran the handler the image became grey. I had been saying 'set the imagedata ...' instead of '...text...'. I tried text and the same nothing changed. So I deleted and dragged a new image into the background ( for the nth time) and ran the handler again and it worked!?? Your image may have been messed up -- I've seen this happen where repeatedly setting image data of an image causes it to stop responding. Setting imageData by itself is OK, but over the last few years, I've taken to setting the text of an image (ironic) to any picture-related data, because doing so sets both image/alpha properties at the same time. This is important to maintain transparency when it comes to PNG images. Setting image/alphaData properties in 2 separate steps is klunky. I have no data to suggest that setting the text of an image is any better or worse than the method of putting image-related data into an image. I've only seen references by the programming dudes at RunRev to use the text property, so I do. Regards, Scott Rossi Creative Director Tactile Media, UX 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: Refresh on close
Oh ok, my script resumes AFTER the modal closes and not immediately after it opens? Thats a simple solution! Thanks! -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Refresh-on-close-tp2271136p2271207.html Sent from the Revolution - User mailing list archive at Nabble.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: snapshot and background problems
Hi, just a thought, as I don 't know your context... Maybe the right time to look at the paintcompression ( Rev dictionary ) my 2 cents Thierry Recently, Michael D Mays wrote: Thanks Scott. I don't know what is going on. I tried this before and I didn't get anything but trash. This morning when I ran the handler the image became grey. I had been saying 'set the imagedata ...' instead of '...text...'. I tried text and the same nothing changed. So I deleted and dragged a new image into the background ( for the nth time) and ran the handler again and it worked!?? Your image may have been messed up -- I've seen this happen where repeatedly setting image data of an image causes it to stop responding. Setting imageData by itself is OK, but over the last few years, I've taken to setting the text of an image (ironic) to any picture-related data, because doing so sets both image/alpha properties at the same time. This is important to maintain transparency when it comes to PNG images. Setting image/alphaData properties in 2 separate steps is klunky. I have no data to suggest that setting the text of an image is any better or worse than the method of putting image-related data into an image. I've only seen references by the programming dudes at RunRev to use the text property, so I do. Regards, Scott Rossi Creative Director Tactile Media, UX 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: Need Help with Geometry
Hi Craig, Yes, when the stack size changes. Gregory On Mon, Jun 28, 2010, at 1:00 PM, Craig Newman wrote: Do you mean that the two fields scale when the stack size changes? ___ 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: Need Help with Geometry
On 06/28/2010 08:20 PM, Gregory Lypny wrote: Hi Craig, Yes, when the stack size changes. Gregory On Mon, Jun 28, 2010, at 1:00 PM, Craig Newman wrote: Do you mean that the two fields scale when the stack size changes? Pardon my naivety; but I thought the whole point of the geometry manager (which, I admit, I have never used) was so that stacks / standalones could be made that were effectively resolution independent, scaling all their objects proportionally to occupy whatever real estate was offered by the end-user's monitor. Funny thing, really, when almost every program I have ever used that wants to occupy the whole screen just resets the screen resolution of the end-user's monitor (all seems rather simpler than the poor old programmer having to go spare bu**ering around with a 'geometry manager'0; but, of course, RunRev doesn't seem to be able to do that. Why can't it set the screen resolution? In fact I know that I am as naive as a cabbage-looking as I cannot find the geometry manager anywhere in the menus of RunRev 4 (Linux, Mac OS X): Oh . . . . there it is . . . that tab called 'Geometry' in the prefs palette: mind you, while that seems to be all very jazzy for positioning things I cannot see how for the life of me how one sets things up so that they go up and down with the tide. ___ 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: Call to all you one-liners !
put (fld 1 is a color and the number of items of fld 1 is 3 and not max(fld 1) 255) into myIsRGB This only works if all the items are numbers though, otherwise it generates an error. It could be used in a try/catch statement though. Bob On Jun 26, 2010, at 2:43 AM, Mark Schonewille wrote: Hi Francis, put (fld 1 is a color and the number of items of fld 1 is 3) into myIsRGB -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer Subscribe to the Economy-x-Talk newsletter at http://qurl.tk/cj Download Clipboard Link http://clipboardlink.economy-x-talk.com and share the clipboard of your computer over the local network. On 26 jun 2010, at 11:28, Francis Nugent Dixon wrote: Hi from Beautiful Brittany, My rev coding has always been simple, though certainly not efficient, and of course, I can solve this little problem, but I have great confidence in you guys out there to give me a one-liner. I have a field that I would like to check out. It should contain any RGB value (like 255,100,099), but it came though the clipboard, and so may contain anything. Can this check be done in one line ? -Francis Nothing should ever be done for the first time ! ___ 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: Call to all you one-liners !
I have to agree though. There are other is a something statements in Rev that do not do what you would expect them to do. Because of that it is almost impossible to tell for sure, what kind of data is contained in a variable or field. For instance, 1 is a date! It's also a color!! But it's not a boolean. Hmmm... I think I would prefer a literal interpretation here. It should not be a date, color or boolean, but it if is any of those it ought to be a boolean too, at least because SQL stores boolean values this way. Bob On Jun 27, 2010, at 1:06 PM, Malte Pfaff-Brill wrote: Ken wrote: So in my eyes, this is a bug in the is a color function. BTW: This is along with the already existing bug with the function that returns true if you just pass a zero to it. And similarly, you can set the backcolor (or any other color property) of an object to 0 and not get an error Well, I beg to differ on describing this as a bug. Many things are colors in rev, not only RGB values. Any color name is, HTML Color definitions are and also revs own representations (effective backpixel is a single number for example) are. Is a color needs to be able to parse all of those. 2 cents, Malte___ 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: Need Help with Geometry
Richmond wrote: Pardon my naivety; but I thought the whole point of the geometry manager (which, I admit, I have never used) was so that stacks / standalones could be made that were effectively resolution independent, scaling all their objects proportionally to occupy whatever real estate was offered by the end-user's monitor. Funny thing, really, when almost every program I have ever used that wants to occupy the whole screen just resets the screen resolution of the end-user's monitor (all seems rather simpler than the poor old programmer having to go spare bu**ering around with a 'geometry manager'0; but, of course, RunRev doesn't seem to be able to do that. Depends what sort of app you're making. Games are among the few types of apps that merely scale according to resolution. Productivity apps tend to respond to changes in screen resolution by optimizing their layouts to maximize data views. While simple scaling would be nice (see my request at http://quality.runrev.com/qacenter/show_bug.cgi?id=6589), in practice I almost never need it, while I do use the resizeStack and desktopChanged messages in almost every thing I write to maximize data views. -- Richard Gaskin Fourth World Rev training and consulting: http://www.fourthworld.com Webzine for Rev developers: http://www.revjournal.com revJournal blog: http://revjournal.com/blog.irv ___ 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: Need Help with Geometry
Richmond wrote: Pardon my naivety; but I thought the whole point of the geometry manager (which, I admit, I have never used) was so that stacks / standalones could be made that were effectively resolution independent, scaling all their objects proportionally to occupy whatever real estate was offered by the end-user's monitor. Not exactly. It allows you to reposition objects in the stack when the user changes the stack size by dragging the resize box. Without geometry management, enlarging a stack will just add blank areas at the right and bottom of the card; making the stack smaller will clip objects in those areas. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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: snapshot and background problems
Scott Rossi wrote: I have no data to suggest that setting the text of an image is any better or worse than the method of putting image-related data into an image. I've only seen references by the programming dudes at RunRev to use the text property, so I do. They're different properties for different purposes. The imagedata is basically just a screen shot and if you set the imagedata of an image object, what you end up with is just a bitmap. All other binary info is lost, including channel data. If you set the imagedata of an image object that isn't exactly the same size as the original screen shot, the image will corrupt and become unrecognizable. The imagedata must match the size of the image object exactly to display properly. (Once it's set correctly, you can then scale it, but it will look terrible.) Setting the text of an image (or just putting an image reference into an image object, it's the same thing) stores all the binary data, including the alpha channel, and the image is scalable and can be manipulated in lots of ways. The size of the image object does not need to match anything in particular, since the engine will scale the data as needed. Imagedata is useful for creating thumbnails, for example, or for reducing the size footprint of an image in the stack when you know you'll never need to change the displayed bitmap. You can reduce the size of the image internally substantially by using imagedata. Setting the text of an image is more useful if you want to retain all the image properties and manipulate it (rotate, scale, etc.) -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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: use-revolution Digest, Vol 81, Issue 58
Hi Jan, Jan Schenkel wrote: To make this future-proof, you might want to use the byte chunk type for reading from the binary file: read from file pFile for 4096 bytes -- was: chars [snip] Great! :-D Now the function will be: function quasiMD5 pFile -- posted by Mark Waddingham local tMD5s open file pFile for binary read repeat read from file pFile for 4096 bytes if it is empty then exit repeat end if put the md5digest of it after tMD5s end repeat close file pFile return the md5Digest of tMD5s end quasiMD5 Only question left is: How could we make this function return the same result than command line programs for big files like Linux ISO distros? Thanks in advance! Al ___ 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
MD5 digests of very big files
Hi Jan, Jan Schenkel wrote: To make this future-proof, you might want to use the byte chunk type for reading from the binary file: read from file pFile for 4096 bytes -- was: chars [snip] Great! :-D Now the function will be: function quasiMD5 pFile -- posted by Mark Waddingham local tMD5s open file pFile for binary read repeat read from file pFile for 4096 bytes if it is empty then exit repeat end if put the md5digest of it after tMD5s end repeat close file pFile return the md5Digest of tMD5s end quasiMD5 Only question left is: How could we make this function return the same result than command line programs for big files like Linux ISO distros? Thanks in advance! Al ___ 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: Location parameters in Size Inspector for stack
Michael D Mays wrote: When I go to one of the location fields, type in a different number; tab: nothing happens. If I click either of the arrows for the location's input fields of the stack, the stack updates to the incremented value. I've quit and restarted Rev; created a new empty mainstack with the same results. It looks like a very minor bug where those fields aren't recognizing a closefield. If you use the Enter key after typing a value, it works. Here is something stranger: If I click the max or min width arrow the stack shrinks to about width=3, height=10 not at the location in the inspector. I can then click the size fields arrow to get the size and width to update but the stack is not at the location advertised. If I click one of the arrows associated with the location the location updates. I can't reproduct this one. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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: Location parameters in Size Inspector for stack
Jacque- Monday, June 28, 2010, 12:25:11 PM, you wrote: I can't reproduct this one. I wish I had been waiting around for someone to coin that word... ...but then I would have been precrastinating... -- -Mark Wieder mwie...@ahsoftware.net ___ 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: Location parameters in Size Inspector for stack
On 06/28/2010 10:28 PM, Mark Wieder wrote: Jacque- Monday, June 28, 2010, 12:25:11 PM, you wrote: I can't reproduct this one. I wish I had been waiting around for someone to coin that word... ...but then I would have been precrastinating... Somebody around here has been procrustean with their words . . . :) ___ 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: Location parameters in Size Inspector for stack
Richmond- Monday, June 28, 2010, 12:39:52 PM, you wrote: On 06/28/2010 10:28 PM, Mark Wieder wrote: Jacque- Monday, June 28, 2010, 12:25:11 PM, you wrote: I can't reproduct this one. I wish I had been waiting around for someone to coin that word... ...but then I would have been precrastinating... Somebody around here has been procrustean with their words . . . :) I'm pro-crustacean. Does that count? -- -Mark Wieder mwie...@ahsoftware.net ___ 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: revBrowser Requires Double-Click Interaction on OS X?
Scott, Please checkout Bug 8740 Best, William Model Masters b...@fmpsolutions.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: Question about Native Geometry
Peter Alcibiades wrote: Jacque, Its 1920 x 1080. When you set the text size, it works but only partly. Some of the fonts come up the right size, others do not. Some parts of a para in the dictionary are resized, other parts not. The objects also are not resized, so they don't fit any more. Do you have Helvetica installed? I think that's the default font for Linux. I just set my screen resolution in Ubuntu to 1920 x 1200 and opened the dictionary and it was still quite legible. Screenshot here: http://jacque.on-rev.com/extras/ubuntu1920x1200.png -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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: Location parameters in Size Inspector for stack
Mark Wieder wrote: Jacque- Monday, June 28, 2010, 12:25:11 PM, you wrote: I can't reproduct this one. I wish I had been waiting around for someone to coin that word... ...but then I would have been precrastinating... groan Reproduct is a perfectly good word, it just isn't in widespread use yet. Knowing you, it soon will be... -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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: Location parameters in Size Inspector for stack
On 06/28/2010 10:44 PM, Mark Wieder wrote: Richmond- Monday, June 28, 2010, 12:39:52 PM, you wrote: On 06/28/2010 10:28 PM, Mark Wieder wrote: Jacque- Monday, June 28, 2010, 12:25:11 PM, you wrote: I can't reproduct this one. I wish I had been waiting around for someone to coin that word... ...but then I would have been precrastinating... Somebody around here has been procrustean with their words . . . :) I'm pro-crustacean. Does that count? At the University of Abertay I had a lecturer called Mrs Crab; she hated me because she taught us Visual Basic 5 and I always reproduced the homework in both VB5 and RunRev - she told me that I was being too clever! It really made me feel like a boiled lobster at time . . . :) ___ 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: Location parameters in Size Inspector for stack
On Jun 28, 2010, at 3:44 PM, Mark Wieder wrote: Richmond- Monday, June 28, 2010, 12:39:52 PM, you wrote: On 06/28/2010 10:28 PM, Mark Wieder wrote: Jacque- Monday, June 28, 2010, 12:25:11 PM, you wrote: I can't reproduct this one. I wish I had been waiting around for someone to coin that word... ...but then I would have been precrastinating... Somebody around here has been procrustean with their words . . . :) I'm pro-crustacean. Does that count? 'When I use a word,' Humpty Dumpty said in rather a scornful tone, 'it means just what I choose it to mean—neither more nor less.' 'The question is,' said Alice, 'whether you CAN make words mean so many different things.' 'The question is,' said Humpty Dumpty, 'which is to be master—that's all.' -- Through the Looking Glass -- 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: Location parameters in Size Inspector for stack
On 06/28/2010 11:10 PM, Peter Brigham MD wrote: On Jun 28, 2010, at 3:44 PM, Mark Wieder wrote: Richmond- Monday, June 28, 2010, 12:39:52 PM, you wrote: On 06/28/2010 10:28 PM, Mark Wieder wrote: Jacque- Monday, June 28, 2010, 12:25:11 PM, you wrote: I can't reproduct this one. I wish I had been waiting around for someone to coin that word... ...but then I would have been precrastinating... Somebody around here has been procrustean with their words . . . :) I'm pro-crustacean. Does that count? 'When I use a word,' Humpty Dumpty said in rather a scornful tone, 'it means just what I choose it to mean—neither more nor less.' 'The question is,' said Alice, 'whether you CAN make words mean so many different things.' 'The question is,' said Humpty Dumpty, 'which is to be master—that's all.' -- Through the Looking Glass A somewhat ovoid quotation; which, to be otiose, brings us back to reproducting! ___ 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: Location parameters in Size Inspector for stack
On Jun 28, 2010, at 4:16 PM, Richmond wrote: On 06/28/2010 11:10 PM, Peter Brigham MD wrote: On Jun 28, 2010, at 3:44 PM, Mark Wieder wrote: Richmond- Monday, June 28, 2010, 12:39:52 PM, you wrote: On 06/28/2010 10:28 PM, Mark Wieder wrote: Jacque- Monday, June 28, 2010, 12:25:11 PM, you wrote: I can't reproduct this one. I wish I had been waiting around for someone to coin that word... ...but then I would have been precrastinating... Somebody around here has been procrustean with their words . . . :) I'm pro-crustacean. Does that count? 'When I use a word,' Humpty Dumpty said in rather a scornful tone, 'it means just what I choose it to mean—neither more nor less.' 'The question is,' said Alice, 'whether you CAN make words mean so many different things.' 'The question is,' said Humpty Dumpty, 'which is to be master— that's all.' -- Through the Looking Glass A somewhat ovoid quotation; which, to be otiose, brings us back to reproducting! I think we need to stick to the English linguage. Have we beaten this dead horse sufficiently yet? -- 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: Location parameters in Size Inspector for stack
Peter- Monday, June 28, 2010, 1:27:38 PM, you wrote: I think we need to stick to the English linguage. Have we beaten this dead horse sufficiently yet? One of my favorite books, unfortunately long out of print (apparently there's a used copy on Amazon for $330) is fortunately on line. You have to read them out loud: try starting with Ladle Rat Rotten Hut. http://www.crockford.com/wrrrld/anguish.html -- -Mark Wieder mwie...@ahsoftware.net ___ 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: revBrowser Requires Double-Click Interaction on OS X?
Recently, William Roger Moseid wrote: Please checkout Bug 8740 Checked and voted, but I need to find a workaround now, not in several months. [sigh] I guess Javascript is really the only option here... Anyone else? Regards, Scott Rossi Creative Director Tactile Media, UX 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: snapshot and background problems
Recently, Jacque Landman Gay wrote: I have no data to suggest that setting the text of an image is any better or worse than the method of putting image-related data into an image. I've only seen references by the programming dudes at RunRev to use the text property, so I do. They're different properties for different purposes. Great recap Jacque, but I was referring to the methods of setting text of an image versus putting image content stored in a variable into an image. As far as I know, both methods accomplish the same result while neither offers any significant benefit over the other. I need increase the alphaData of my comments so they're not so opaque. Regards, Scott Rossi Creative Director Tactile Media, UX 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: snapshot and background problems
Scott Rossi wrote: Recently, Jacque Landman Gay wrote: I have no data to suggest that setting the text of an image is any better or worse than the method of putting image-related data into an image. I've only seen references by the programming dudes at RunRev to use the text property, so I do. They're different properties for different purposes. Great recap Jacque, but I was referring to the methods of setting text of an image versus putting image content stored in a variable into an image. As far as I know, both methods accomplish the same result while neither offers any significant benefit over the other. I need increase the alphaData of my comments so they're not so opaque. Oops. It's me that's opaque. I know you knew all that, so I was preaching to myself. Bloviating. Preaching to the choir. Blathering. Talking to hear myself. But me either. I mean, I don't know if there's any difference. I use put more than set just because I'm so used to it and habit is a hard thing to break. Mark Waddingham uses set because he thinks of everything in terms of base syntax and I suspect under the hood that putting an image really sets it. Or at least, that's my theory and I'm sticking to it. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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: Need Help with Geometry
Not quite sure how to set the Geometry manager to get the results I want. I have two fields that are the exactly same size with one siting above the other and their left edges aligned. I'd like them to scale proportionately both width-wise and length-wise to the lower right, keeping the vertical distance between them constant. In other words, I want the two fields to get bigger or smaller together and keep the same distance apart. Thought it would be easy, but I've tried many different combinations of settings in the Geometry manager with no luck. Any advice would be most appreciated. So should the topLeft of the topmost field stay in the same place as you resize? Just trying to understand... For example, if you start with two fields that are 100 pixels wide by 50 pixels tall with 10 pixels between them, and 10 pixels from the right edge of the fields to the right side of the card, and 10 pixels from the bottom edge of the bottom field to the bottom of the card, and the starting height of the card is 500, and the starting width of the card was 400, that means that the topleft of the topmost field would be at (400-110),(500-(50+50+10+10)) or 290,380 and the topleft of the bottom field would be at (400-110),(500-(50+10)) or 290,440. If you then resize the stack to make it 100 pixels wider and 100 pixels taller, then that would leave the top field's topleft at 290,390, both fields would be 50 pixels taller (splitting the difference between the two of them and maintaining the 10 pixel gap), so the bottom field's topleft would be 290,(600-(100+10)) or 290,490... is that right? Just checking... Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.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