Search found 992 matches
- 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: 5370
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...
- 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: 5370
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...
- Wed Mar 12, 2008 6:41 am
- Forum: CGIs and the Server
- Topic: How to install missing libraries on RedHat linux?
- Replies: 9
- Views: 10963
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...
- Thu Mar 06, 2008 3:01 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Checking an inputted field for numeric
- Replies: 5
- Views: 3986
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...
- Tue Mar 04, 2008 2:50 am
- Forum: Using Externals
- Topic: PDF myDocRef
- Replies: 2
- Views: 5163
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...
- Thu Jan 24, 2008 8:15 pm
- Forum: Databases
- Topic: Option Menu with Database - view description but save id
- Replies: 2
- Views: 4396
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 ...
- Thu Jan 24, 2008 8:07 pm
- Forum: Talking LiveCode
- Topic: mouseDoubleDown Problems
- Replies: 14
- Views: 13780
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...
- Tue Dec 04, 2007 4:05 pm
- Forum: Multimedia
- Topic: control player object with mouse scroll wheel
- Replies: 3
- Views: 6093
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) ...
- Wed Oct 31, 2007 2:45 pm
- Forum: Building Externals
- Topic: Passing arguments from revolution to c++ external
- Replies: 4
- Views: 8410
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...
- Tue Oct 30, 2007 7:36 pm
- Forum: Building Externals
- Topic: Passing arguments from revolution to c++ external
- Replies: 4
- Views: 8410
- Thu Oct 04, 2007 2:47 pm
- Forum: Mac OS
- Topic: Path to library
- Replies: 1
- Views: 3802
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...
- Thu Sep 20, 2007 9:18 pm
- Forum: Talking LiveCode
- Topic: Questions You Were To Afraid To Ask!
- Replies: 10
- Views: 8037
- Thu Sep 20, 2007 2:13 pm
- Forum: Talking LiveCode
- Topic: Questions You Were To Afraid To Ask!
- Replies: 10
- Views: 8037
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...
- 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: 2675
- Mon Sep 10, 2007 1:47 pm
- Forum: Converting to LiveCode
- Topic: applying images to polygons
- Replies: 1
- Views: 5291