Re: [OT] PING
Thanks very much, Chipp. Greatly appreciated. Dave ___ 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: [OT] router + manual DHCP setting
Hi Jim, Look at all the automatic DHCP settings. Note the router IP and DNS IP's and the subnet mask. After changing to manual DHCP, re-enter the same router and DNS IP's and the subnet mask. Now click Apply. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 From 15th August, we'll have time for new projects! Be the first in line and contact me now! Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce On 7 sep 2010, at 03:45, Jim Ault wrote: Definitely not a Rev question, but there are some of my Rev apps working on this computer. I have a remote Mac mini running OSX Leopard behind a Belkin router and would like to change from DHCP to DHCP using manual address. The procedure i used was to go System Preferences:Network:Ethernet and change the drop down choice, enter '192.168.2.30' then 'apply' and lost connection to the internet. (the range used for active assignments is 2.2 thru 2.9, so it uses the lowest range of numbers) Step 2 was to reboot the Mac, just in case, and still no internet. Step 3 was chose 'DHCP', click 'apply' and regain internet connection. Also tried 2.201 which is outside the default range for Belkin. Is there a step I am missing. The issue is this computer will run unattended most all the time and the LAN address reassignment can occur (like last weekend) and the computer is unreachable. All is well for now, but ... Thanks for any pointers. Google did not seem to deliver an answer that worked. 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: [feature] did you guys knew that ? is a valid character for function/command name?
This is very bad news for my long-held campaign to introduce '@' as an optional (but one day might be checked) prefix to a parameter, to indicate in the calling line that this is passed by reference. ie if functionWithSideEffects(tInput, @tOutput) then ... should allow the reader to know immediately that 'functionWithSideEffects' takes the second parameter by reference. On 05/09/2010 22:01, Mark Wieder wrote: Andre- Sunday, September 5, 2010, 11:37:46 AM, you wrote: Folks, Did you guys knew that ? is a valid character for naming functions and commands? I just created a function like that and it works ...it gets worse... see bz #8048 ___ 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: Geographic Functions, any takers?
On 30/08/2010 17:19, Ewan Richardson wrote: Has anyone written any libraries for Geographic functions within rev? Im thinking of a library for dealing with latitude and longitude, for example determining distance between points, bearings radian calculations ect. Ewan, Sorry for the delayed reply, just catching up with my mailing lists. I did a project some years ago involving an embedded computer tracking GPS on a moving vehicle. Looking at the code today, I see I started trying to do it all by the book - and subsequently realised that since I was only going to be interested in fine detail when the vehicle was close to any of the waypoints, and the device was only going to used in Western Europe, I didn't actually care about the true shape of the Earth etc! However, for what it's worth, I find these two fragments of code; the first looks jolly useful, but it appears that I don't actually use it in the final system. The second is what's actually used, and produces a 'good enough' result... if nothing else, the references in the comments might be useful. Also a couple of utilities for working NMEA (the default 'language' of most GPS units) - trivial but might save a few minutes. I present these directly pasted from scripts, no checking, no warranty... Ben on initialiseGeoConstants -- an array giving the approximage length in metres of one second of longitude, at a given degree of latitude -- source: http://www.gis.unbc.ca/2003/courses/geog205/lectures/thegraticule/bottomframe.html constant kSrcInfo = 0 111.32,10 109.64,20 104.65,30 96.49,40 85.39,50 71.70,60 55.80,70 38.19,80 19.39,90 0.00 put empty into aTemp put empty into bTemp repeat for each item tDataPoint in kSrcInfo put (((word 2 of tDataPoint) * 1000) / 3600) into aTemp[word 1 of tDataPoint] -- km/degree to m/sec put ((word 2 of tDataPoint) * 1000) into bTemp[word 1 of tDataPoint] -- km/degree to m/degree end repeat -- now try to fill in the degrees between, by crude linear interpolation repeat with d = 1 to 89 get aTemp[d] if it empty then next repeat put trunc(d / 10) * 10 into d1 put d1 + 10 into d2 -- get (aTemp[d1] - aTemp[d2]) multiply it by (d2 - d) put aTemp[d2] + (it / 10) into aTemp[d] -- get (bTemp[d1] - bTemp[d2]) multiply it by (d2 - d) put bTemp[d2] + (it / 10) into bTemp[d] end repeat set the customProperties[uLongSecLengthAtLatitude] of this stack to aTemp set the customProperties[uLongDegLengthAtLatitude] of this stack to bTemp end initialiseGeoConstants -- -- %MACRO distance(lat1, lon1, lat2, lon2); -- --%* calculates distance between two locations on earth; %* depends crucially on the accurcy of the calculations!; -- --%* input: latitude and longitude in radians; %* output: distance in meters, as a data step expression; %* version: 26 June 1996, Willem Dekker; -- --%Let Mile=1853.245; %* Nautical mile in meters; %Let DegRad=180/3.141592653589793238; %* Degrees per Radian; %LET MeterRad=60*Mile*DegRad; %* meters per radian; -- --(MeterRad * 2 * arsin(sqrt(2 - 2 * cos(lat1) *cos(lat2) * cos(lon1 - lon2) - 2 * sin(lat1) * sin(lat2) ) / 2)); %mend; -- source: http://www.census.gov/cgi-bin/geo/gisfaq?Q5.1 -- -- Presuming a spherical Earth with radius R (see below), and the locations of the two points in spherical coordinates (longitude, latitude) are lon1, lat1 and lon2, lat2, then the Haversine Formula (Sinott 1984) will give mathematically and computationally exact results. The intermediate result c is the great circle distance in radians. The great circle distance d will be in the same units as R. We provide the inverse tangent version of the Haversine Formula: -- -- dlon = lon2 - lon1 -- -- dlat = lat2 - lat1 -- -- a = (sin(dlat/2))^2 + cos(lat1) * cos(lat2) * (sin(dlon/2))^2 -- -- c = 2 * atan2( sqrt(a), sqrt(1-a) ) -- -- d = R * c -- -- For R, use 3957 miles (6367 km), which is the radius of curvature at 30° latitude; the use of other possible values results in very small differences. Most computers require the arguments of trigonometric functions to be expressed in radians. To convert lon1, lat1 and lon2, lat2 from degrees, minutes, and seconds to radians, first convert them to decimal degrees. To convert decimal degrees to radians, multiply the number of degrees by: pi/180 = 0.017453293 radians/degree. Inverse trigonometric functions return results expressed in radians. To express c in decimal degrees, multiply the number of radians by 180/pi = 57.295780 degrees/radian. (But be sure to multiply the number of radians by R to get d.) -- function rangeBetweenPoints tLat1, tLon1, tLat2, tLon2 constant kRadius = 6367000 -- radius of curvature at 30° latitude; in metres local kDegreesToRadians put pi / 180 into kDegreesToRadians local a, c, iDeltaLat, iDeltaLon multiply tLat1 by kDegreesToRadians multiply tLon1 by kDegreesToRadians multiply tLat2 by kDegreesToRadians
[ANN] InstallGadget 2.0 Public Testing
Hi Everyone If you are interested in being involved in testing InstallGadget 2.0 and it's Rev plugin please download from http://goulding.ws/installgadget/installgadget-2-0-public-testing/ and send comments off list to mo...@goulding.ws Cheers -- Monte Goulding M E R Goulding Software Development Bespoke application development for vertical markets InstallGadget - How to create an installer in 10 seconds revObjective - Making behavior scripts behave ___ 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: [ANN] revObjective 1.0 released!
Is there any kind of documentation available? I'm on windows 7 and when I open the plugin, I'm allowed to type in the upper right hand text box (although I don't know what I'm supposed to type there) and everything else is disabled. I have no idea what to do now. len morgan ___ 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: [ANN] revObjective 1.0 released!
Hi Len Can you send me a screenshot to mo...@goulding.ws that certainly doesn't sound good ;-) Is there any kind of documentation available? I'm on windows 7 and when I open the plugin, I'm allowed to type in the upper right hand text box (although I don't know what I'm supposed to type there) and everything else is disabled. I have no idea what to do now. -- Monte Goulding M E R Goulding Software Development Bespoke application development for vertical markets InstallGadget - How to create an installer in 10 seconds revObjective - Making behavior scripts behave ___ 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: [ANN] revObjective 1.0 released!
Can you advise me on how to take a screen shot? I've never been successful but then I've never really tried that hard either. len On 9/7/2010 5:48 AM, Monte Goulding wrote: Hi Len Can you send me a screenshot to mo...@goulding.ws that certainly doesn't sound good ;-) Is there any kind of documentation available? I'm on windows 7 and when I open the plugin, I'm allowed to type in the upper right hand text box (although I don't know what I'm supposed to type there) and everything else is disabled. I have no idea what to do now. -- Monte Goulding M E R Goulding Software Development Bespoke application development for vertical markets InstallGadget - How to create an installer in 10 seconds revObjective - Making behavior scripts behave ___ 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: [ANN] revObjective 1.0 released!
Oh, did you install the revObjective folder (contains the 4 objects that come with the plugin) into the plugins folder with the plugin? That field filters the list of objects so don't type anything in there for the minute and if you have delete it. Also if you select a control in one of your stacks the Add button will become enabled. Click Add and the control will be imported into revObjective. From there you can edit the behavior script etc. No other docs yet sorry but I'm here or off list if you want to ask questions. Cheers Monte On 07/09/2010, at 8:43 PM, Len Morgan wrote: Is there any kind of documentation available? I'm on windows 7 and when I open the plugin, I'm allowed to type in the upper right hand text box (although I don't know what I'm supposed to type there) and everything else is disabled. I have no idea what to do now. len morgan ___ 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 -- Monte Goulding M E R Goulding Software Development Bespoke application development for vertical markets InstallGadget - How to create an installer in 10 seconds revObjective - Making behavior scripts behave ___ 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: [ANN] revObjective 1.0 released!
Hi Len On Windows you press print screen on the keyboard. Cheers Monte On 07/09/2010, at 8:53 PM, Len Morgan wrote: Can you advise me on how to take a screen shot? I've never been successful but then I've never really tried that hard either. len On 9/7/2010 5:48 AM, Monte Goulding wrote: Hi Len Can you send me a screenshot to mo...@goulding.ws that certainly doesn't sound good ;-) Is there any kind of documentation available? I'm on windows 7 and when I open the plugin, I'm allowed to type in the upper right hand text box (although I don't know what I'm supposed to type there) and everything else is disabled. I have no idea what to do now. -- Monte Goulding M E R Goulding Software Development Bespoke application development for vertical markets InstallGadget - How to create an installer in 10 seconds revObjective - Making behavior scripts behave ___ 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 -- Monte Goulding M E R Goulding Software Development Bespoke application development for vertical markets InstallGadget - How to create an installer in 10 seconds revObjective - Making behavior scripts behave ___ 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: [ANN] revObjective 1.0 released!
Ok, I got it installed and now everything is enabled except for the Add button. This still looks a little rough and I still don't know what to do with it now that I have it. By the way, the description of the Integer field is the same as the Number field and yet the number field shows 10.1 (i.e., the description says only integers are allowed and yet the number has a decimal point in it. I've got to get ready for work so I'll have to play with this later. Some sort of quick tutorial to show the very basics would be helpful! len On 9/7/2010 5:56 AM, Monte Goulding wrote: Oh, did you install the revObjective folder (contains the 4 objects that come with the plugin) into the plugins folder with the plugin? That field filters the list of objects so don't type anything in there for the minute and if you have delete it. Also if you select a control in one of your stacks the Add button will become enabled. Click Add and the control will be imported into revObjective. From there you can edit the behavior script etc. No other docs yet sorry but I'm here or off list if you want to ask questions. Cheers Monte On 07/09/2010, at 8:43 PM, Len Morgan wrote: Is there any kind of documentation available? I'm on windows 7 and when I open the plugin, I'm allowed to type in the upper right hand text box (although I don't know what I'm supposed to type there) and everything else is disabled. I have no idea what to do now. len morgan ___ 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 -- Monte Goulding M E R Goulding Software Development Bespoke application development for vertical markets InstallGadget - How to create an installer in 10 seconds revObjective - Making behavior scripts behave ___ 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: [ANN] revObjective 1.0 released!
Ok, I got it installed and now everything is enabled except for the Add button. This still looks a little rough and I still don't know what to do with it now that I have it. To enable the add button you've got to select a control on a stack that you might want to add to the revObjective list. Many rev users might not need the Add, Script and Edit buttons if they want to just use revObjective to manage the objects a number of developers are creating and providing to the community. By the way, the description of the Integer field is the same as the Number field and yet the number field shows 10.1 (i.e., the description says only integers are allowed and yet the number has a decimal point in it. OK, fixed. I've got to get ready for work so I'll have to play with this later. Some sort of quick tutorial to show the very basics would be helpful! I've done a little screencast to show the basics of how to work with revObjective here: http://www.screencast-o-matic.com/watch/c6QiXmjMZ In the screencast you will see I have a few more objects listed there. They aren't my work so I didn't include them. I did include a Placeholder Text Field from a revLesson. Cheers -- Monte Goulding M E R Goulding Software Development Bespoke application development for vertical markets InstallGadget - How to create an installer in 10 seconds revObjective - Making behavior scripts behave ___ 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: [OT] router + manual DHCP setting
99% sure you're not set up this way, but if your belkin is setup to a smaller subset subnet (IE a netmask other than 255.255.255.0) you coudl be setting your IP's outside the range of the valid subnet. As pointed out tho, this is pretty unlikely unless you did it yourself. On Tue, Sep 7, 2010 at 2:00 AM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi Jim, Look at all the automatic DHCP settings. Note the router IP and DNS IP's and the subnet mask. After changing to manual DHCP, re-enter the same router and DNS IP's and the subnet mask. Now click Apply. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 From 15th August, we'll have time for new projects! Be the first in line and contact me now! Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce On 7 sep 2010, at 03:45, Jim Ault wrote: Definitely not a Rev question, but there are some of my Rev apps working on this computer. I have a remote Mac mini running OSX Leopard behind a Belkin router and would like to change from DHCP to DHCP using manual address. The procedure i used was to go System Preferences:Network:Ethernet and change the drop down choice, enter '192.168.2.30' then 'apply' and lost connection to the internet. (the range used for active assignments is 2.2 thru 2.9, so it uses the lowest range of numbers) Step 2 was to reboot the Mac, just in case, and still no internet. Step 3 was chose 'DHCP', click 'apply' and regain internet connection. Also tried 2.201 which is outside the default range for Belkin. Is there a step I am missing. The issue is this computer will run unattended most all the time and the LAN address reassignment can occur (like last weekend) and the computer is unreachable. All is well for now, but ... Thanks for any pointers. Google did not seem to deliver an answer that worked. 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 ___ 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: [feature] did you guys knew that ? is a valid character for function/command name?
Err, Ben, this is actually in place since forever... we can pass by references values with @ On Tue, Sep 7, 2010 at 5:51 AM, Ben Rubinstein benr...@cogapp.com wrote: This is very bad news for my long-held campaign to introduce '@' as an optional (but one day might be checked) prefix to a parameter, to indicate in the calling line that this is passed by reference. ie if functionWithSideEffects(tInput, @tOutput) then ... should allow the reader to know immediately that 'functionWithSideEffects' takes the second parameter by reference. On 05/09/2010 22:01, Mark Wieder wrote: Andre- Sunday, September 5, 2010, 11:37:46 AM, you wrote: Folks, Did you guys knew that ? is a valid character for naming functions and commands? I just created a function like that and it works ...it gets worse... see bz #8048 ___ 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 -- http://www.andregarzia.com All We Do Is Code. ___ 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: [feature] did you guys knew that ? is a valid character for function/command name?
Not quite. We specify pass-by-ref by using '@' in the handler specification; you can't use it in the calling script as Ben did in his example in the email. Ben wants to be able to use the '@' (presumably as an option, with no actual effect) in the calling script, to help remind him that the variable will/may be changed within the handler. -- Alex. On 07/09/2010 14:56, Andre Garzia wrote: Err, Ben, this is actually in place since forever... we can pass by references values with @ On Tue, Sep 7, 2010 at 5:51 AM, Ben Rubinsteinbenr...@cogapp.com wrote: This is very bad news for my long-held campaign to introduce '@' as an optional (but one day might be checked) prefix to a parameter, to indicate in the calling line that this is passed by reference. ie if functionWithSideEffects(tInput, @tOutput) then ... should allow the reader to know immediately that 'functionWithSideEffects' takes the second parameter by reference. On 05/09/2010 22:01, Mark Wieder wrote: Andre- Sunday, September 5, 2010, 11:37:46 AM, you wrote: Folks, Did you guys knew that ? is a valid character for naming functions and commands? I just created a function like that and it works ...it gets worse... see bz #8048 ___ 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: [OT] router + manual DHCP setting
Thanks for all the replies and good tips I will do some testing later today and report back. On Sep 7, 2010, at 5:48 AM, Mike Bonner wrote: 99% sure you're not set up this way, but if your belkin is setup to a smaller subset subnet (IE a netmask other than 255.255.255.0) you coudl be setting your IP's outside the range of the valid subnet. As pointed out tho, this is pretty unlikely unless you did it yourself. On Tue, Sep 7, 2010 at 2:00 AM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi Jim, Look at all the automatic DHCP settings. Note the router IP and DNS IP's and the subnet mask. After changing to manual DHCP, re-enter the same router and DNS IP's and the subnet mask. Now click Apply. 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: [feature] did you guys knew that ? is a valid character for function/command name?
Ben- Tuesday, September 7, 2010, 1:51:35 AM, you wrote: This is very bad news for my long-held campaign to introduce '@' as an optional (but one day might be checked) prefix to a parameter, to indicate in the calling line that this is passed by reference. I went to go vote for this bug report/enhancement request, but I can't exactly find it. Are you referring to 741, 3753, 6820, or 6949? BZ#3753 seems the closest although 741 has more accumulated votes (8/1). And 6949 has 5 votes although it's somewhat a side effect of not having a generic ability to specify @ in scripts. And 6820 has more votes than all the others combined, although it deals only with the special case of passing a reference to an array element. -- -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: [feature] did you guys knew that ? is a valid character for function/command name?
Hi Alex, Alex Tweedly wrote: Not quite. We specify pass-by-ref by using '@' in the handler specification; you can't use it in the calling script as Ben did in his example in the email. Ben wants to be able to use the '@' (presumably as an option, with no actual effect) in the calling script, to help remind him that the variable will/may be changed within the handler. -- Alex. I have never used this method of passing-by-reference i any of my stack, so actually i dont know how useful it really is. Did you read this message of Wilhelm Sanke about image processing? http://lists.runrev.com/pipermail/use-revolution/2010-March/136246.html http://runtime-revolution.278305.n4.nabble.com/Language-comparisons-Lua-simpler-and-faster-than-RevTalk-td1586669.html http://www.mail-archive.com/use-revolution@lists.runrev.com/msg131812.html Could be possible to speed up Wilhelm's handlers that process binary image data using this method of passing-by-reference? Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/feature-did-you-guys-knew-that-is-a-valid-character-for-function-command-name-tp2527567p2530061.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: [feature] did you guys knew that ? is a valid character for function/command name?
If one is interested in speed, it can be quite useful. Also you could write scripts with no functions! Just commands. Return the data in the same variable without copying to another (which happens in functions). It's a different coding style for sure. On 7 September 2010 09:56, Alejandro Tejada capellan2...@gmail.com wrote: I have never used this method of passing-by-reference i any of my stack, so actually i dont know how useful it really is. Stephen Barncard San Francisco Ca. USA more about sqb http://www.google.com/profiles/sbarncar ___ 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
Drag cursor
Does anyone know how to specify the drag cursor type? I am dragging images around and want to display a 'copy' cursor (with a little plus sign) when the ctrl key is down, a 'move' cursor (no little plus sign) when the ctrl key is up, and a 'cantDrop' cursor when appropriate. The engine seems to over-ride any attempt to 'set the cursor'. Hugh FLCo ___ 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: Drag cursor
Le 7 sept. 2010 à 20:02, FlexibleLearning a écrit : Does anyone know how to specify the drag cursor type? I am dragging images around and want to display a 'copy' cursor (with a little plus sign) when the ctrl key is down, a 'move' cursor (no little plus sign) when the ctrl key is up, and a 'cantDrop' cursor when appropriate. The engine seems to over-ride any attempt to 'set the cursor'. Hugh FLCo After setting the cursor , did you lock it ? See lock cursor in the Dictionary My 2 French cents Thierry ___ 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: Drag cursor
I think this should just work. I don't think you need to do any cursor stuffl, at least on the Mac. I've seen the green PLUS and I didn't do any cursor code at all. Try without doing any cursor calls. On 7 September 2010 11:02, FlexibleLearning ad...@flexiblelearning.comwrote: Does anyone know how to specify the drag cursor type? I am dragging images around and want to display a 'copy' cursor (with a little plus sign) when the ctrl key is down, a 'move' cursor (no little plus sign) when the ctrl key is up, and a 'cantDrop' cursor when appropriate. The engine seems to over-ride any attempt to 'set the cursor'. Hugh FLCo ___ 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 -- Stephen Barncard San Francisco Ca. USA more about sqb http://www.google.com/profiles/sbarncar ___ 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: [ANN] revObjective 1.0 released!
Monte- Monday, September 6, 2010, 6:32:39 PM, you wrote: Ok, can you give me some more info? It's the close stack command at the end of your preOpenStack handler in the stack script. I can get rid of the error if I change the last few lines of that handler to reset the templatebutton end if -- close stack tStack -- set the visible of stack tStack to true hide stack tStack -- this replaces two lines set the cRevLoadInfo[mode] of stack tStack to modeless end if -- -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
Selected Text
1) I am trying to return the selected text in a field. It looks like this can only be done on locked text. Is there anyway around this? In the field I am trying: on mouseup answer selectedtext() end mouseup The above is only true when the field is locked. 2) Also...how do I prevent text to be dragable in a field? Thanks for any help! Warren ___ 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: Selected Text
Hi Warren, It looks like the problem is not the selectedText but the mouseUp message. Unlocked fields don't receive a mouseUp message when the user clicks in such a field, but control-click and command-click do trigger a mouseUp message. So, either you have to provide a way to lock and unlock the field as necessary or you need to tell the user that control-click or command-click will allow him or her to edit or process selected text. You can't have a field editable without allowing the user to drag text around, but you can allow the user to select text without making the field editable. If you lock the text but don't turn off the traversalOn, then the text will be selectable but not editable. Or don't you want the user to be able to select text? In this case, turn off the traversalOn too. If the lockText of a field is true and the traversalOn is tru too, you will be able to click in a field and trigger the mouseUp message that way, without pressing the command or control key. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce Create installers for Mac and Windows on *every* Rev-compatible platform. No additional software needed. On 7 sep 2010, at 19:59, Warren Kuhl wrote: 1) I am trying to return the selected text in a field. It looks like this can only be done on locked text. Is there anyway around this? In the field I am trying: on mouseup answer selectedtext() end mouseup The above is only true when the field is locked. 2) Also...how do I prevent text to be dragable in a field? Thanks for any help! Warren ___ 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: Selected Text
Mark, Thanks for the explanation. It really gaves me a good understand with how the process works. I will see if I can lock/unlock the field as necessary as the user needs to ability to change the text. Appreciate your help! Warren On Tue, Sep 7, 2010 at 1:38 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi Warren, It looks like the problem is not the selectedText but the mouseUp message. Unlocked fields don't receive a mouseUp message when the user clicks in such a field, but control-click and command-click do trigger a mouseUp message. So, either you have to provide a way to lock and unlock the field as necessary or you need to tell the user that control-click or command-click will allow him or her to edit or process selected text. You can't have a field editable without allowing the user to drag text around, but you can allow the user to select text without making the field editable. If you lock the text but don't turn off the traversalOn, then the text will be selectable but not editable. Or don't you want the user to be able to select text? In this case, turn off the traversalOn too. If the lockText of a field is true and the traversalOn is tru too, you will be able to click in a field and trigger the mouseUp message that way, without pressing the command or control key. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce Create installers for Mac and Windows on *every* Rev-compatible platform. No additional software needed. On 7 sep 2010, at 19:59, Warren Kuhl wrote: 1) I am trying to return the selected text in a field. It looks like this can only be done on locked text. Is there anyway around this? In the field I am trying: on mouseup answer selectedtext() end mouseup The above is only true when the field is locked. 2) Also...how do I prevent text to be dragable in a field? Thanks for any help! Warren ___ 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: Selected Text
Have you explored the selectionchanged message? For one of my applications, I use this for detecting clicks inside unlocked fields. On Tue, Sep 7, 2010 at 2:52 PM, Warren Kuhl warrenk...@gmail.com wrote: Mark, Thanks for the explanation. It really gaves me a good understand with how the process works. I will see if I can lock/unlock the field as necessary as the user needs to ability to change the text. Appreciate your help! Warren On Tue, Sep 7, 2010 at 1:38 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi Warren, It looks like the problem is not the selectedText but the mouseUp message. Unlocked fields don't receive a mouseUp message when the user clicks in such a field, but control-click and command-click do trigger a mouseUp message. So, either you have to provide a way to lock and unlock the field as necessary or you need to tell the user that control-click or command-click will allow him or her to edit or process selected text. You can't have a field editable without allowing the user to drag text around, but you can allow the user to select text without making the field editable. If you lock the text but don't turn off the traversalOn, then the text will be selectable but not editable. Or don't you want the user to be able to select text? In this case, turn off the traversalOn too. If the lockText of a field is true and the traversalOn is tru too, you will be able to click in a field and trigger the mouseUp message that way, without pressing the command or control key. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce Create installers for Mac and Windows on *every* Rev-compatible platform. No additional software needed. On 7 sep 2010, at 19:59, Warren Kuhl wrote: 1) I am trying to return the selected text in a field. It looks like this can only be done on locked text. Is there anyway around this? In the field I am trying: on mouseup answer selectedtext() end mouseup The above is only true when the field is locked. 2) Also...how do I prevent text to be dragable in a field? Thanks for any help! Warren ___ 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 -- Do all things with love ___ 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: Selected Text
Jonathan, No I have not. In fact...I never even heard of this until now. Thanks for the suggestion I will look into this as well. Appreciate it! Warren On Tue, Sep 7, 2010 at 1:57 PM, Jonathan Lynch jonathandly...@gmail.comwrote: Have you explored the selectionchanged message? For one of my applications, I use this for detecting clicks inside unlocked fields. On Tue, Sep 7, 2010 at 2:52 PM, Warren Kuhl warrenk...@gmail.com wrote: Mark, Thanks for the explanation. It really gaves me a good understand with how the process works. I will see if I can lock/unlock the field as necessary as the user needs to ability to change the text. Appreciate your help! Warren On Tue, Sep 7, 2010 at 1:38 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi Warren, It looks like the problem is not the selectedText but the mouseUp message. Unlocked fields don't receive a mouseUp message when the user clicks in such a field, but control-click and command-click do trigger a mouseUp message. So, either you have to provide a way to lock and unlock the field as necessary or you need to tell the user that control-click or command-click will allow him or her to edit or process selected text. You can't have a field editable without allowing the user to drag text around, but you can allow the user to select text without making the field editable. If you lock the text but don't turn off the traversalOn, then the text will be selectable but not editable. Or don't you want the user to be able to select text? In this case, turn off the traversalOn too. If the lockText of a field is true and the traversalOn is tru too, you will be able to click in a field and trigger the mouseUp message that way, without pressing the command or control key. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce Create installers for Mac and Windows on *every* Rev-compatible platform. No additional software needed. On 7 sep 2010, at 19:59, Warren Kuhl wrote: 1) I am trying to return the selected text in a field. It looks like this can only be done on locked text. Is there anyway around this? In the field I am trying: on mouseup answer selectedtext() end mouseup The above is only true when the field is locked. 2) Also...how do I prevent text to be dragable in a field? Thanks for any help! Warren ___ 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 -- Do all things with love ___ 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
Datagrid Drag and Drop
Months ago, I got some guidance form Trevor on how to drag and drop into and out of a datagrid. I ended up not needing to do it at the time but now I do and I can't find the notes I made on it. I've searched the online datagrid documentation and can't find anything on this subject. Can anyone point me in the right direction? Thanks, Pete Haworth ___ 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: Mac OS X Textured Button custom control
I had an issue with the button for some reason. When I clicked it quickly, the button stayed hilited until I clicked again (sometimes). If I clicked slowly, the button behaved properly (almost all the time). Bob On Sep 5, 2010, at 10:03 AM, theworcestersource.com wrote: Hello everybody, Just thought I'd drop a quick line to let you know that I've uploaded a custom control to Rev Online. It's a nice little textured button, together with metal/gray image and is really useful for home windows that seem to be adorning Mac applications these days. The stack's also available on my site on the try/buy page (don't worry about the name of this page: the stack itself is free). Cheers, Steve www.theworcestersource.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Mac-OS-X-Textured-Button-custom-control-tp2527471p2527471.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 ___ 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: Datagrid Drag and Drop
On Tue, Sep 7, 2010 at 9:42 PM, Peter Haworth p...@mollysrevenge.com wrote: Months ago, I got some guidance form Trevor on how to drag and drop into and out of a datagrid. I ended up not needing to do it at the time but now I do and I can't find the notes I made on it. I've searched the online datagrid documentation and can't find anything on this subject. Can anyone point me in the right direction? Thanks, Pete Haworth Hi Pete, That is the thread you have opened months ago: http://forums.runrev.com/phpBB2/viewtopic.php?p=17333. For reorder lines in the same Data Grid, install the copy of the Data Grid Helper I sent you today. Select a Datagrid, then go to the Scripts topics of the properties palette. You have a menu Reorder lines. Click on the Install script button to fill the datagrid group with the code you need. This is good opportunity to test this new DGH's feature. ;) Regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc ___ 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: [ANN] revObjective 1.0 released!
Thanks Mark But I don't think that's causing an issue. Have you tried version 1.1? The stack needs to close on the first run or it won't get the preOpenStack message when it is chosen from the menu. Unfortunately there's no option for plugins to do some startup stuff but not load the stack. I guess I could separate out the startup code into a separate invisible plugin and just leave revObjective modeless. It puts the place object menu on the too palette. Yeah, I'll do that for V1.2 because 1 it's a valid plugin on it's own for accessing the rev object library and 2 people might want revObjective but not that change to the tools palette and 3 KISS. It's the close stack command at the end of your preOpenStack handler in the stack script. I can get rid of the error if I change the last few lines of that handler to Cheers -- Monte Goulding M E R Goulding Software Development Bespoke application development for vertical markets InstallGadget - How to create an installer in 10 seconds revObjective - Making behavior scripts behave ___ 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: [feature] did you guys knew that ? is a valid character for function/command name?
On 07/09/2010 09:51, Ben Rubinstein wrote: This is very bad news for my long-held campaign to introduce '@' as an optional (but one day might be checked) prefix to a parameter, to indicate in the calling line that this is passed by reference. He was subsequently forced to retract partially, see below. On 07/09/2010 14:56, Andre Garzia wrote: Err, Ben, this is actually in place since forever... we can pass by references values with @ and on 07/09/2010 16:34, Alex Tweedly wrote: Ben wants to be able to use the '@' (presumably as an option, with no actual effect) in the calling script, to help remind him that the variable will/may be changed within the handler. Andre - yeah, what Alex said. Both caller and callee need to be fully aware when a parameter is by reference - it's a contract, and needs informed consent on both sides. Currently we have only presumed consent on the part of the caller. On 07/09/2010 17:07, Mark Wieder wrote: I went to go vote for this bug report/enhancement request, but I can't exactly find it. At which point Ben has to apologise for his hyperbole, and admit that long-held campaign means long-held view, but never done anything about it since posting to the now defunct Xtalks mailing list in May 2004. There was a lively (for Xtalks!) discussion, but nothing came of it (except the interesting observation from Doug Simons, who maintains SenseTalk, that he has the reverse; it's the caller that indicates a variable is passed by reference, he allows but ignores @ in the function declaration, only to maintain compatibility with Transcript). At that time I had an idealistic view that extensions to the language were better proposed and discussed in Xtalks first, before specifically proposing that Rev adopt them. I've now, better late than never, opened a report at RQCC: http://quality.runrev.com/qacenter/show_bug.cgi?id=8945 Ben ___ 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: Datagrid Drag and Drop
On Tue, Sep 7, 2010 at 10:26 PM, zryip theSlug zryip.thes...@gmail.com wrote: On Tue, Sep 7, 2010 at 9:42 PM, Peter Haworth p...@mollysrevenge.com wrote: Months ago, I got some guidance form Trevor on how to drag and drop into and out of a datagrid. I ended up not needing to do it at the time but now I do and I can't find the notes I made on it. I've searched the online datagrid documentation and can't find anything on this subject. Can anyone point me in the right direction? Thanks, Pete Haworth Hi Pete, That is the thread you have opened months ago: http://forums.runrev.com/phpBB2/viewtopic.php?p=17333. For reorder lines in the same Data Grid, install the copy of the Data Grid Helper I sent you today. Select a Datagrid, then go to the Scripts topics of the properties palette. You have a menu Reorder lines. Click on the Install script button to fill the datagrid group with the code you need. This is good opportunity to test this new DGH's feature. ;) And it was a good exercise for an experiment stack. 8-) I have just uploaded a new stack in the Slug's lab. You can download this stack here: http://www.aslugontheroad.co.cc/index.php?option=com_phocadownloadview=categorydownload=11:experiment-15-drag-drop-in-dgid=7:data-gridItemid=63 Regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc ___ 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: [ANN] revObjective 1.0 released!
I guess I could separate out the startup code into a separate invisible plugin and just leave revObjective modeless. OK, Done, I'll release V1.2 tonight. The startup plugin is not as independent as I would have liked because it simplified things to move the revObjective FrontScript into it also. So not using the startup plugin will disable the standalone builder stuff, drag and drop from revObjective to stacks and the tools palette object menu. V 1.2 will also copy behavior scripts over to revObjective when you add a control, previously you had to copy the script over manually. PS Anyone wishing to distribute their custom controls with revObjective is welcome to do so. Just contact me off list. Cheers -- Monte Goulding M E R Goulding Software Development Bespoke application development for vertical markets InstallGadget - How to create an installer in 10 seconds revObjective - Making behavior scripts behave ___ 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: [ANN] revObjective 1.0 released!
Monte- Tuesday, September 7, 2010, 2:36:57 PM, you wrote: Thanks Mark But I don't think that's causing an issue. Have you tried version 1.1? The stack needs to close on the first run or it won't get the preOpenStack message when it is chosen from the menu. Unfortunately Yep - that's with version 1.1. Works a treat. -- -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: [feature] did you guys knew that ? is a valid character for function/command name?
Ben- Tuesday, September 7, 2010, 2:38:24 PM, you wrote: I've now, better late than never, opened a report at RQCC: http://quality.runrev.com/qacenter/show_bug.cgi?id=8945 Thanks. I added my votes. -- -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: [feature] did you guys knew that ? is a valid character for function/command name?
Hi Stephen, Stephen Barncard-4 wrote: If one is interested in speed, it can be quite useful. Also you could write scripts with no functions! Just commands. Return the data in the same variable without copying to another (which happens in functions). It's a different coding style for sure. Many thanks for replying to my request. I had found only this thread about passing by reference: http://www.mail-archive.com/use-revolution@lists.runrev.com/msg15260.html Did you know if there is a benchmark that compares this particular method of passing by reference with conventional programming techniques used in this platform? The advantages of one method or another should look clear in a benchmark. Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/feature-did-you-guys-knew-that-is-a-valid-character-for-function-command-name-tp2527567p2530778.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