Search found 397 matches

by townsend
Tue Dec 31, 2013 4:15 pm
Forum: Internet
Topic: revBrowser JS problems?
Replies: 5
Views: 5364

Re: revBrowser JS problems?

I ran into a similar problem a few weeks back. http://forums.runrev.com/viewtopic.php?f=7&t=18209 Basically, I was told that the java script capability of the browser control is a know problem, and not likely to be fixed any time soon. Plus, when I was installing the Community edition, I read someth...
by townsend
Mon Dec 30, 2013 1:14 am
Forum: Internet
Topic: Peer to Peer Networking Stack
Replies: 46
Views: 35423

Re: Peer to Peer Networking Stack

I've spent a LOT of time with that chat example. It's a great starting point. But it is two separate apps: Server & client. The problem is, all client to client communication has to be is relayed through the server. I've made some good progress in combining them, into one multi-function stack, but s...
by townsend
Sun Dec 29, 2013 11:11 pm
Forum: Internet
Topic: Peer to Peer Networking Stack
Replies: 46
Views: 35423

Peer to Peer Networking Stack

I am VERY interested in Peer to Peer networking, and would be glad to participate in a Livecode open source project that aimed to build a simple framework for peer to peer communication. Rather than have one server app, and many clients, I'd like to help develop code for a single stack that could ac...
by townsend
Tue Dec 24, 2013 8:09 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Menu Builder Woes?
Replies: 37
Views: 18192

Re: Menu Builder Woes?

I'm sure the Menu Builder will eventually be fixed, but until then-- I just put a bunch of Menu Buttons into a Group, and set the "backgroundBehavior" to true, which places the Group with all the buttons on every card. They're completely reliable AND I don't have to worry about any OS differences.
by townsend
Mon Dec 23, 2013 7:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: System Color Chart
Replies: 1
Views: 1915

System Color Chart

While trying to find all the color names used by the system, I found the function, put the colornames which listed all of them. But I couldn't see any colors. So i wrote this little Button routine which displayed all the 552 names-- in the color of the name. Create a text field named, "color.names" ...
by townsend
Sun Dec 22, 2013 11:05 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Referencing Objects of the Same Name
Replies: 19
Views: 7519

Re: Referencing Objects of the Same Name

Code: Select all

repeat with i = 1 to the number of buttons of this card
    if there is a button ("Line" & i) then
        -- do stuff with button ("Line" & i)
    end if
end repeat
Excellent!! That works!
by townsend
Sun Dec 22, 2013 8:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Referencing Objects of the Same Name
Replies: 19
Views: 7519

Re: Referencing Objects of the Same Name

The key question may be why do the controls all have the same name? I'm using the Charts Engine plugin. Rather than use the automatically generated legend, I've created a series of Option Menu Buttons for each line in the chart, with various functionality. Anyway, I've been calling these Buttons: L...
by townsend
Sat Dec 21, 2013 12:57 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Referencing Objects of the Same Name
Replies: 19
Views: 7519

Referencing Objects of the Same Name

Livecode lets you create as many objects with the same name as you want. I've looked all over, but I can't seem to find how to reference these objects individually. put "hello world" into fld "test" 3 put "hello world" into fld "test"[3] put "hello world" into fld 3 "test" None of those work. I do k...
by townsend
Sat Dec 21, 2013 12:46 am
Forum: Animation Engine
Topic: Click Legend to Hilite Line on Chart
Replies: 3
Views: 11916

Re: Click Legend to Hilite Line on Chart

Here an example that illustrates one way this can be done. on mouseUp put "click me" into temp create button temp set the loc of it to 200,100 set the width of it to 60 set the height of it to 30 set the script of btn "click me" to "on mouseUp" & cr & "beep" & cr & "end mouseUp" set the label of btn...
by townsend
Fri Dec 20, 2013 9:03 pm
Forum: Animation Engine
Topic: Click Legend to Hilite Line on Chart
Replies: 3
Views: 11916

Click Legend to Hilite Line on Chart

I'm using a line chart with potentially 10 lines. When the user clicks on a element in the Legend, I want the corresponding line on the Chart to become hilited. In order to do this, I would be changing the line width. But since the Legend Buttons are created dynamically, by Animation Engine, I need ...
by townsend
Tue Dec 17, 2013 9:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: SQLite function to Save Properties & Data
Replies: 0
Views: 1228

SQLite function to Save Properties & Data

A while back, I was concerned about saving properties, text, and configuration data, without having to save the entire stack, which I knew would be problematic in mobile environments. So I wrote this single function that could be dropped into any one of my stacks, allowing me to easily save and retr...
by townsend
Mon Dec 16, 2013 8:22 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Referencing Objects on Other Cards
Replies: 3
Views: 2853

Re: Referencing Objects on Other Cards

Thanks for the answer Craig. I appreciate the pointers on efficient app design. Basically, I've got a bunch of cards that grab some info from the internet and update some text fields. I've got a few of these cards, each referencing different data. The button is necessary, for the user to initiate th...
by townsend
Mon Dec 16, 2013 7:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Referencing Objects on Other Cards
Replies: 3
Views: 2853

Referencing Objects on Other Cards

I put a lot of my code in Buttons, which makes testing easier. Then I often need to run these from other cards. But of course if that card is not open when I execute the Dispatch command to run the script in that button, I get an error that the field object cannot be referenced. Of course by placing...
by townsend
Fri Dec 13, 2013 9:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Message Box: with Sequential Output
Replies: 1
Views: 1515

Re: Message Box: with Sequential Output

Got it!

Code: Select all

Put cr & "Some Text" after Message Box
by townsend
Fri Dec 13, 2013 9:12 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Message Box: with Sequential Output
Replies: 1
Views: 1515

Message Box: with Sequential Output

I see every time my code Puts something into the Message Box, the previous output is overwritten.
Is it possible to have new output added to the existing output?
So I can see a running list of all output text.

Go to advanced search