Search found 992 matches

by trevordevore
Thu Apr 17, 2008 2:44 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Is there an easy way to get the current path?
Replies: 7
Views: 5363

Coming from another environment to Revolution can be frustrating at times. I decided to use Revolution for a project a number of years back when I had always used Director for that type of application before. Getting my head around the Revolution philosophy took a while but I do find it an incredibl...
by trevordevore
Thu Apr 17, 2008 4:11 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Is there an easy way to get the current path?
Replies: 7
Views: 5363

With a slight modification to the handler you posted you can get what you are after assuming the stack whose filename you use is used to build the executable or is in the same folder as the stack used to build the executable. You just need to check if the stack filename contains a reference to an OS...
by trevordevore
Wed Mar 12, 2008 6:41 am
Forum: CGIs and the Server
Topic: How to install missing libraries on RedHat linux?
Replies: 9
Views: 10902

I recently got Rev 2.9 running as a CGI on our Debian Linux server. I had to install libx11 and libext. I used the following commands: sudo apt-get install libxext6 sudo apt-get install libx11-6 My notes on the process are available at the following url. Perhaps they will help. http://revolution.scr...
by trevordevore
Thu Mar 06, 2008 3:01 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Checking an inputted field for numeric
Replies: 5
Views: 3963

Jan, I just tested pasteKey in a standalone with a menubar and the message is not sent to fields if your menubar has command/control + v assigned to Edit-Paste. If you don't have your own menubar then the pasteKey message is sent. I tested in 2.8 and 2.9 so it looks like pasteKey can't be relied upo...
by trevordevore
Tue Mar 04, 2008 2:50 am
Forum: Using Externals
Topic: PDF myDocRef
Replies: 2
Views: 5140

The text you supply to qrtPDF_WriteText can come from anywhere really. The text should be plain text and (not htmltext or rtftext) and should be in ISO 8859-1 encoding. If you need to format text take a look at the demo 2 script "Text boxes and areas example" which demonstrates calls to qrtPDF_SetFo...
by trevordevore
Thu Jan 24, 2008 8:15 pm
Forum: Databases
Topic: Option Menu with Database - view description but save id
Replies: 2
Views: 4376

When you read the data from the database table create two CR delimited lists. One for the color names and one for the color ids. Some psuedo code to illustrate: repeat for each record theRecord in the cursor put the colorName of theRecord & CR after theColors put the colorID of theRecord & CR after ...
by trevordevore
Thu Jan 24, 2008 8:07 pm
Forum: Talking LiveCode
Topic: mouseDoubleDown Problems
Replies: 14
Views: 13349

Since you mention that your mouseDown/mouseUp scripts are long and complex it may be possible that the scripts haven't finished running yet and that is interfering with the mouseDoubleUp message. I'm just guessing here as I don't know if that is possible. In any case, what if you tried something lik...
by trevordevore
Tue Dec 04, 2007 4:05 pm
Forum: Multimedia
Topic: control player object with mouse scroll wheel
Replies: 3
Views: 6068

Hi Martin, Try changing your code to this: on stepforward lock screen set the currenttime of me to (the currenttime of me) + round(the timescale of me / 4) unlock screen end stepforward on stepbackward lock screen set the currenttime of me to (the currenttime of me) - round(the timescale of me / 4) ...
by trevordevore
Wed Oct 31, 2007 2:45 pm
Forum: Building Externals
Topic: Passing arguments from revolution to c++ external
Replies: 4
Views: 8383

So I need to typecast them on the c++ side. Yes. I can only seem to access the first element of the passed array in c++, I'm not even sure if i'm passing a multi element array. from runrev: answer externalfunction("Hello World") --is this an array of chars? Actually this is an array of C-strings wh...
by trevordevore
Tue Oct 30, 2007 7:36 pm
Forum: Building Externals
Topic: Passing arguments from revolution to c++ external
Replies: 4
Views: 8383

The parameters you pass from Revolution to the function/command defined in the external will always be passed as an array of strings. At that point you can coerce the values as needed.
by trevordevore
Thu Oct 04, 2007 2:47 pm
Forum: Mac OS
Topic: Path to library
Replies: 1
Views: 3788

I don't know of a code that points directly to the Library but "asup" will point to the Application support folder in the root library "/Library/Application Support". I imagine you would want to store your data in this sub folder in any case so maybe that will work for you. To get the users app supp...
by trevordevore
Thu Sep 20, 2007 9:18 pm
Forum: Talking LiveCode
Topic: Questions You Were To Afraid To Ask!
Replies: 10
Views: 8000

I loaded your example stack on Windows XP (native) and 2000 (under Parallels) and it looked right to me. Here is a screenshot of your stack in Windows 2000 with the original image shown on top of it:

Image

What are you seeing?
by trevordevore
Thu Sep 20, 2007 2:13 pm
Forum: Talking LiveCode
Topic: Questions You Were To Afraid To Ask!
Replies: 10
Views: 8000

I just did the following test: 1) Created a new stack. 2) Imported a PNG image (291 x 75) 3) Set the backgroundPattern to the id of the image. The image tiled nicely across the entire stack background. This is in version 2.8.1 of Revolution. I believe that version prior to 2.7 had limits on the size...
by trevordevore
Fri Sep 14, 2007 5:45 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Getting only the immediate child groups of a group
Replies: 1
Views: 2668

Unfortunately there is no way of getting direct Group children. This is very unfortunate as interrogating groups for immediate children becomes very slow as the number of controls grows.
by trevordevore
Mon Sep 10, 2007 1:47 pm
Forum: Converting to LiveCode
Topic: applying images to polygons
Replies: 1
Views: 5278

Perhaps this blog post will be helpful:

http://www.revdeveloper.com/include/blog/mark/?p=4

Go to advanced search