Search found 916 matches

by trevordevore
Thu Jul 24, 2008 3:11 pm
Forum: Talking LiveCode
Topic: 2D and Multidimensional Arrays in Revolution 1.8
Replies: 8
Views: 1979

If you need to use 2.x in your current project then I would suggest using commas to mimick a multi-dimensional array. For db records this works pretty well. Pseudo code: put 0 into i repeat through cursor add 1 to i put cursor column into theArray[i, column] end repeat put i into theArray["count"] N...
by trevordevore
Thu Jul 17, 2008 3:26 am
Forum: CGIs and the Server
Topic: Getting Flash SWF Dimensions in RR CGI?
Replies: 4
Views: 3903

Hi, Revolution doesn't have any way of dealing with SWF natively at the moment. If you want to get at the info for a SWF file you have to parse the file header yourself and grab the data. Depending on how important this feature is to you it may or may not be worth the effort to write your own librar...
by trevordevore
Sat Jul 12, 2008 2:01 pm
Forum: Building Externals/Plugins
Topic: Using Callbacks with externals to Rev
Replies: 4
Views: 3184

For SetVariableEx you are usually allocating memory dynamically so that memory has to be freed. In DispatchRevolutionMessage the size of mcmessage is known at compile time and the memory will be taken care of automatically.
by trevordevore
Fri Jul 11, 2008 1:27 pm
Forum: Building Externals/Plugins
Topic: Using Callbacks with externals to Rev
Replies: 4
Views: 3184

I've used SendCardMessage a couple of times. Below you will find a handler based off of an example Tuviah Snyder passed along to me a few years back. This example sends 1 parameter with the message which is why the global is created. The reason the parameter value is stored in a global is so that an...
by trevordevore
Thu Jul 03, 2008 4:12 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Reducing height of window from the top down
Replies: 7
Views: 1086

You may still see some white on occasion. Using a timer gave me the best results of the techniques I tried however.
by trevordevore
Thu Jul 03, 2008 2:10 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Reducing height of window from the top down
Replies: 7
Views: 1086

Here is a modification of some code I use to resize windows. I use send in time combined with a wait message and it works pretty well. I use Malte Debrill's Animation Engine to make the resize less abrupt. If you don't have Animation Engine then you could try the trial. Otherwise you will have to ta...
by trevordevore
Fri Jun 27, 2008 8:41 pm
Forum: Talking LiveCode
Topic: Primitives, Unit Tests
Replies: 6
Views: 1896

For a test suite I'd expect to be able to produce: (1) Scenarios (or steps) (2) Step breakpoints (for debug) (3) Population of fields or (for walk through) (4) Invoking buttons/handlers (5) Recording results SQLite type database driven system with a number of tests, tests broken into generic steps,...
by trevordevore
Fri Jun 27, 2008 8:11 pm
Forum: Talking LiveCode
Topic: Primitives, Unit Tests
Replies: 6
Views: 1896

I believe Jerry's GLX2 now has this capability as well. It's very handy. The ability to click on some code and and open the script where the handler resides (or the dictionary if it is a token) has been around since before GLX2. I think it was in GLX2 that Jerry truly integrated the nifty visuals (...
by trevordevore
Fri Jun 27, 2008 8:05 pm
Forum: Building Externals/Plugins
Topic: Built a successful external?
Replies: 14
Views: 7496

You may be running into the XCode bug that Mark mentions in article 1: http://www.runrev.com/newsletter/november/issue13/newsletter5.php Now choose the Debug configuration and click Build and when it has finished click Debug. (The previous two steps shouldn't be necessary, but there seems to be a gl...
by trevordevore
Fri Jun 27, 2008 2:55 am
Forum: Building Externals/Plugins
Topic: Built a successful external?
Replies: 14
Views: 7496

Hi David,

I use quite a few externals (OS X and Windows) that we have created in house and that use the SDK that Mark Waddingham published in the newsletter articles. What is it you are trying to do and where to things go wrong?
by trevordevore
Tue Jun 24, 2008 4:34 pm
Forum: Talking LiveCode
Topic: Primitives, Unit Tests
Replies: 6
Views: 1896

In regards to unit testing - I have a basic unit testing kit for my projects that I have been slowly putting together though I do not have much prior experience in this area. If you have experience in this area and are interested in creating a proper testing kit for Rev I would be happy to send you ...
by trevordevore
Wed Jun 18, 2008 2:58 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: how to determine the stack an object belongs to
Replies: 6
Views: 1083

Sure. Here is some updated code: function CardOf pControl local theCharNo put the long id of pControl into pControl ## force the long id if word 1 of pControl is "stack" then put empty into pControl -- has no card else if word 1 of pControl is not "card" then put offset(" of card ", pControl) into t...
by trevordevore
Wed Jun 18, 2008 1:38 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: how to determine the stack an object belongs to
Replies: 6
Views: 1083

You are pretty much left to parsing the object reference yourself. If you use the long id of an object rather than the long name then you don't need to worry about "stack" appearing in the name of a control. function StackOf pControl local theCharNo put the long id of pControl into pControl ## force...
by trevordevore
Fri Jun 13, 2008 4:34 am
Forum: Internet
Topic: Automatically detecting proxy setting... How?
Replies: 8
Views: 4475

Pleased to meet you as well Simon. Here is what I think you are up against. There are at least two things going on here that will need to be addressed: 1) Web Proxy Autodiscovery Protocol (WPAD) http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol 2) Proxy auto-config (PAC) http://en.wikipe...
by trevordevore
Thu Jun 12, 2008 8:31 pm
Forum: Internet
Topic: Automatically detecting proxy setting... How?
Replies: 8
Views: 4475

Unless the computer is using a static ip address Revolution will not work properly out of the box. You mentioned auto detect in your first post. Is the what the computer is set to use?

Go to advanced search