Re: is there a more clever way to see if revOpenDatabases() contains a valid value?

2007-04-20 Thread Josh Mellicker
Interesting... Thanks for the info! On Apr 19, 2007, at 8:53 PM, Ken Ray wrote: On Thu, 19 Apr 2007 17:59:40 -0700, Josh Mellicker wrote: If I revCloseDatabases() or resetAll and establish a new connection before making any database command all is fine, but I am thinking this is an

AW: how to adress the object name and not the number?

2007-04-20 Thread Tiemo Hollmann TB
Good point Bill. Thanks for sharing! Tiemo -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:use-revolution- [EMAIL PROTECTED] Im Auftrag von Bill Marriott Gesendet: Freitag, 20. April 2007 02:14 An: use-revolution@lists.runrev.com Betreff: Re: how to adress the object name

Revolution license

2007-04-20 Thread Viktoras Didziulis
I have just red Using Revolution with Filemaker Pro and Bill mentions that the Revolution license simply asks you to put one line, Portions (c)2000-2008 Runtime Revolution Limited, All Rights Reserved Worldwide below your own copyright notice... Does this mean any program that I distribute should

Re: Revolution license

2007-04-20 Thread Bill Marriott
Hi Viktoras, Does this mean any program that I distribute should have this lengthy copyright notice or otherwise I am violating the terms and conditions of the Run Rev license? I didn't even know about that requirement until I wrote the article and it came up in editing. I'm certainly guilty

Re: how to adress the object name and not the number?

2007-04-20 Thread Eric Chatonet
Hi Bill, As Jim said: using a space char is a personal programming choice, and certainly not a bad one ;-) As for me, I prefer to name any object with a single word (LastBackupDate5 for instance) and *always* quoted even if XTalks don't make it compulsory in this case. And to retrieve the

Re: how to adress the object name and not the number?

2007-04-20 Thread Bill Marriott
Eric, I prefer to name any object with a single word (LastBackupDate5 for instance) and *always* quoted even if XTalks don't make it compulsory in this case. And to retrieve the right suffix, instead of using last word, I just use char x to -1: Right! I always, always quote string literals

Re: scaling and positioning proportionally an object at the same time

2007-04-20 Thread Dave
Opps! I type-o!!! Should be: On 19 Apr 2007, at 14:43, Dave wrote: if the cpGMSaveRect of me = empty then put the rect of me into the cpGMSaveRect of me end if put the cpGMSaveRect of me into myRect set the rect of me to myRect All the Best Dave

Re: Revolution license

2007-04-20 Thread Luis
Hiya, Where's the article? Cheers, Luis. Viktoras Didziulis wrote: I have just red Using Revolution with Filemaker Pro and Bill mentions that the Revolution license simply asks you to put one line, Portions (c)2000-2008 Runtime Revolution Limited, All Rights Reserved Worldwide below your

Re: Revolution license

2007-04-20 Thread Ian Wood
It's in the April newsletter. http://www.runrev.com/newsletter/april/issue24/ Ian On 20 Apr 2007, at 10:15, Luis wrote: Hiya, Where's the article? Cheers, Luis. Viktoras Didziulis wrote: I have just red Using Revolution with Filemaker Pro

Re: how to adress the object name and not the number?

2007-04-20 Thread Eric Chatonet
Hi Bill, I understand you *must* specify the number of chars of the label prefix that may vary in my solution and I understand also it might bother you :-) So: function NumericSuffix pStr local tCount - if pStr = empty then return error: empty string. repeat with tCount = the

Re: how to adress the object name and not the number?

2007-04-20 Thread Ian Wood
On 20 Apr 2007, at 09:44, Bill Marriott wrote: Eric, I prefer to name any object with a single word (LastBackupDate5 for instance) and *always* quoted even if XTalks don't make it compulsory in this case. And to retrieve the right suffix, instead of using last word, I just use char x to

Re: Revolution license

2007-04-20 Thread Luis
Ta, should've refreshed my browser... Cheers, Luis. Ian Wood wrote: It's in the April newsletter. http://www.runrev.com/newsletter/april/issue24/ Ian On 20 Apr 2007, at 10:15, Luis wrote: Hiya, Where's the article? Cheers, Luis. Viktoras Didziulis wrote: I have just red Using

Re: how to adress the object name and not the number?

2007-04-20 Thread Dave
On 20 Apr 2007, at 09:44, Bill Marriott wrote: Eric, I prefer to name any object with a single word (LastBackupDate5 for instance) and *always* quoted even if XTalks don't make it compulsory in this case. And to retrieve the right suffix, instead of using last word, I just use char x to

Re: Oh what the heck, another CGI question

2007-04-20 Thread Andre Garzia
Hello Bryan, problems with library dependencies are pretty common on linux and bsd. The way those systems culture were built, it´s pretty common for a developer to link against shared libraries that you may or may not have. Usually this issue is solved by distributing the software in source

Re: Basic Drawing and Labeling

2007-04-20 Thread Dave
Hi, I'm in the process of doing something like this at the moment, except I am generating a QuickTime movie. I will hopefully be at the stage of having a general purpose object creator ready by the end of next week. I will most likely use my ISM module, but I'm sure there will be some

Basic Drawing and Labeling

2007-04-20 Thread Todd Geist
Hello, I would like to create a stack that will allow the user to Markup an Image. The image would be displayed on the card and the user should be able to draw ovals, arrows, and lines on the image. Think of it as hi-lighting certain parts of the image. They also need to be able to label

mysterious set the clipboardData

2007-04-20 Thread Tiemo Hollmann TB
Hello, thought, it would be very simple, now I get a mysterious result. I have an image with an assigned filename (png file). If I use: set the clipboardData[image] to image b1 and paste it into any graphic program, it gives me a totally black image of small size (128x32px) and not the copied

Re: Basic Drawing and Labeling

2007-04-20 Thread Mark Schonewille
Hi Tod, This sounds fairly simple. You can use Revolution's paint/draw tools to draw objects over the existing image and export the result to JPEG when done. The only slightly more difficult part is that you may need your own tools palette, but even that isn't too difficult. Best, Mark

textHeight and textSize

2007-04-20 Thread Ferdinand
Hi All, I have some troubles with the textHeight and textSize properties. The documentation says: If you change the field's textSize, Revolution automatically sets the textHeight to trunc(4/3 * the textSize of field). For example, if the textSize is set to 12, the textHeight is set to 16

Using @param in an External Command Module

2007-04-20 Thread Dave
Hi, Is it possible to use the the @ entry parameter syntax inside an external function/command? I can't seem to find anything about this. Thanks a lot All the Best Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit

Re: Using @param in an External Command Module

2007-04-20 Thread Trevor DeVore
On Apr 20, 2007, at 9:01 AM, Dave wrote: Hi, Is it possible to use the the @ entry parameter syntax inside an external function/command? I can't seem to find anything about this. Pass the name of the variable you want to set to the external function and then use SetVariableEx or

Re: Using @param in an External Command Module

2007-04-20 Thread Dave
Hi, Thanks Trevor, I understand, I was wondering if there was a another/ better way of doing it, since you have to pass the variable as String and that doesn't get checked inside the script editor and so is error prone. Thanks a lot All the Best Dave On 20 Apr 2007, at 17:24, Trevor

Re: Using @param in an External Command Module

2007-04-20 Thread Trevor DeVore
On Apr 20, 2007, at 9:51 AM, Dave wrote: Hi, Thanks Trevor, I understand, I was wondering if there was a another/ better way of doing it, since you have to pass the variable as String and that doesn't get checked inside the script editor and so is error prone. Ah. I don't think there is

Re: Using @param in an External Command Module

2007-04-20 Thread 00bioarchimed
Hi Dave, As i'm playing - working :-) - with externals since a while, i did invest on this one a while ago, and didn't find a positive answer to your request. I will be happy to have this feature too. Enjoy your week-end, thierry On Apr 20, 2007, at 9:51 AM, Dave wrote: Hi, Thanks

Xcode building a stack

2007-04-20 Thread 00bioarchimed
Hi all, I'm building an external with Xcode tools on Macosx. So far so good. I have a plug-in stack which works with my external too. Now, i would like to build the plug-in ( call it stack, or library ) automatically from Xcode, in the same building project as the external. This means having a

Re: mysterious set the clipboardData

2007-04-20 Thread Ken Ray
On Fri, 20 Apr 2007 17:35:46 +0200, Tiemo Hollmann TB wrote: Hello, thought, it would be very simple, now I get a mysterious result. I have an image with an assigned filename (png file). If I use: set the clipboardData[image] to image b1 Can you try: the text of image b1 ? Ken Ray Sons

Re: mysterious set the clipboardData

2007-04-20 Thread Mark Schonewille
Hi Tiemo, The clipboarddata[image] should contain valid picture data only, in PNG, TIF, JPG, GIF or another format. This should work? export image b1 to myImage as PNG set the clipbaorddata[image] to myImage Now you should be able to paste it in a graphics programme. Ken's method works

Obtaining the size of a file

2007-04-20 Thread John Craig
Does anyone know of a native rev. method to obtain the size of a file without using shell or 'the detailed files'? Thanks, JC ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

Re: Obtaining the size of a file

2007-04-20 Thread Mark Smith
Well, I guess the detailed files actually is the native rev method, but this works: on mouseUp put /Users/marksmith/Desktop/add.tiff into tUrl put length (URL (binfile:/Users/marksmith/Desktop/add.tiff)) end mouseUp Of course, it means reading the whole file into memory, which might

Re: Obtaining the size of a file

2007-04-20 Thread Richard Gaskin
John Craig wrote: Does anyone know of a native rev. method to obtain the size of a file without using shell or 'the detailed files'? What's the objection to using 'the detailed files'? It was added to the language specifically to provide what you're looking for. -- Richard Gaskin Fourth

Re: Obtaining the size of a file

2007-04-20 Thread John Craig
Richard Gaskin wrote: John Craig wrote: Does anyone know of a native rev. method to obtain the size of a file without using shell or 'the detailed files'? What's the objection to using 'the detailed files'? It was added to the language specifically to provide what you're looking for.

Re: Obtaining the size of a file

2007-04-20 Thread John Craig
Some of the files may be very large - making this method too slow. Mark Smith wrote: Well, I guess the detailed files actually is the native rev method, but this works: on mouseUp put /Users/marksmith/Desktop/add.tiff into tUrl put length (URL (binfile:/Users/marksmith/Desktop/add.tiff))

Re: textHeight and textSize

2007-04-20 Thread simplsol
With textSize it's either automatic or manual. To make manual adjustments: First set choose the textFont and textSize from the Text Formatting Palette Second choose the textHeight from the Basic Properties Palette ANY change to the first palette will change the textHeight to Rev's default (not

Re: Export as JPEG can produce a format unaccepted by other photo tools

2007-04-20 Thread Sivakatirswami
Chipp Walters wrote: export is with JPEGquality at 100. You'll see the JPEG exported from Photoshop is much nicer than the export from Rev. Indeed, I've confirmed this many times. This is the one deficiency in Rev that is a blocker for using it as a photo processing tool. I would love to

Re: Obtaining the size of a file

2007-04-20 Thread Stephen Barncard
At 1:45 AM +0100 4/21/07, John Craig wrote: It's clumsy and long winded. I don't think so. One can easily craft a handler to get whatever info one needs from this listing using chunk expressions... Richard Gaskin wrote: John Craig wrote: Does anyone know of a native rev. method to obtain

Re: Obtaining the size of a file

2007-04-20 Thread Richard Gaskin
John Craig wrote: Richard Gaskin wrote: John Craig wrote: Does anyone know of a native rev. method to obtain the size of a file without using shell or 'the detailed files'? What's the objection to using 'the detailed files'? It was added to the language specifically to provide what you're

Re: Obtaining the size of a file

2007-04-20 Thread Josh Mellicker
Here are a couple of handlers that return the humanSize (a nicely formatted version) of a file provided the complete file path and filename: put humanSize(tPathAndFile) into fld file size FUNCTION humanSize tPathAndFile put theFileDetail(tPathAndFile) into tFileDet put item 2 of

connected to LAN

2007-04-20 Thread Jim Sims
I have several users of an application that is used over their specific company LAN. If they are using a laptop, Mac or PC, and then move to a different LAN can I detect that they have done so? If they have done so, I need to have them save their data in a different fashion. I suppose

Re: Some longest common substring routines

2007-04-20 Thread Chipp Walters
Thanks Terry. I've been spending some time developing a cross-platform set of 3D plugins using wxPython lately. Quite an experience. There are certain many things to like about Python, and even wxPython (cross platform GUI wrapper for Python using wxWidgets). But, I have to say, I'm certainly

Re: Default button placement in Linux GUIs

2007-04-20 Thread Chipp Walters
I had an interesting revelation today regarding button placement and overall usability concerns. I was using a cross-platform (and custom GUI) 3D app on my Mac. I typically use it on PC. I kept hitting the wrong dialog button, because they swapped positions from PC to Mac. Interestingly, I also

Re: connected to LAN

2007-04-20 Thread Phil Davis
Hey Jim, Ideas: - If the LANs serve different ranges of IP addresses via DHCP, then a laptop computer's IP address will indicate which LAN they are on. - If they set up a different 'Location' on their machine for each network, you could probably detect the active one via system profiler.

OT: Mac question

2007-04-20 Thread Chipp Walters
Is there anyway to show the path of the folder one is navigating to on the Mac. On the PC, I have an address bar which shows the location of where I'm at. I've a couple of windows open on the Mac and I've navigated to the same subfolder, but of different directories. Other than 'backing out', is

Re: Default button placement in Linux GUIs

2007-04-20 Thread Scott Kane
Hi Chipp, In anycase, I'm not sure dialogs are necessarily an OS specific thing anymore. I think some people who use multiple OS'es-- and there are more of these people-- may have a consistent contextual memory of button placement, rather than preferred OS placement. IOW, they relate to button

Re: OT: Mac question

2007-04-20 Thread Jim Sims
On Apr 21, 2007, at 6:44 AM, Chipp Walters wrote: Is there anyway to show the path of the folder one is navigating to on the Mac. On the PC, I have an address bar which shows the location of where I'm at. I've a couple of windows open on the Mac and I've navigated to the same subfolder, but of

Re: connected to LAN

2007-04-20 Thread Jim Sims
On Apr 21, 2007, at 6:25 AM, Phil Davis wrote: - If the LANs serve different ranges of IP addresses via DHCP, then a laptop computer's IP address will indicate which LAN they are on. - If they set up a different 'Location' on their machine for each network, you could probably detect the