Search found 2196 matches

by SparkOut
Sun Jul 05, 2020 8:58 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Hiding code in a button in a commercial version of LiveCode
Replies: 21
Views: 571

Re: Hiding code in a button in a commercial version of LiveCode

Ah, then that's a problem for you then Richmond. Sorry, no bright ideas. I own an INDY licence, so I'm not sure if 'that' is the problem. Yes, as if I understand Richard, it seems that you may be able to secure the script in the Indy version, but the Community version you plan on having the student...
by SparkOut
Sun Jul 05, 2020 12:00 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Hiding code in a button in a commercial version of LiveCode
Replies: 21
Views: 571

Re: Hiding code in a button in a commercial version of LiveCode

Ah, then that's a problem for you then Richmond. Sorry, no bright ideas.
by SparkOut
Sat Jul 04, 2020 8:12 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Hiding code in a button in a commercial version of LiveCode
Replies: 21
Views: 571

Re: Hiding code in a button in a commercial version of LiveCode

Not AFAIK (I'm not certain though), but you could password protect a substack, and leave the mainstack open for edit.
by SparkOut
Sat Jul 04, 2020 7:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: [SOLVED] Image problems
Replies: 18
Views: 389

Re: [SOLVED] Image problems

You don't have to! It's just that it was mentioned as an alternative image creation method, and the necessity for pre-existence of an image object was discussed. We're just trying to show you some features and expand your knowledge.
by SparkOut
Sat Jul 04, 2020 6:44 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Graphic help needed
Replies: 29
Views: 602

Re: Graphic help needed

As a game, I made a stack with a default size circle (regular oval, 120 x 120px) with default name "Oval" on it and another any old line graphic with a name "fakeOval", plus a button that had this code on mouseUp put the effective points of graphic "Oval" into tPoints repeat for each line tPoint in ...
by SparkOut
Sat Jul 04, 2020 6:35 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Graphic help needed
Replies: 29
Views: 602

Re: Graphic help needed

That would make sense as I was working with a graphic 600 x 600 for testing.
I am going to presume (dangerous, I know) that a smaller graphic has not enough room to fit 360 unique effective points using only integer pixel values, so the engine filters out any that would overlap.
by SparkOut
Sat Jul 04, 2020 4:00 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Datagrid not showing it's data
Replies: 8
Views: 249

Re: Datagrid not showing it's data

Unless things have changed in more recent versions of LiveCode, copy and paste is often the Vulcan Death Grip to a datagrid. It sounds like things have not really changed since the last versions I was using when I was last working with datagrids. I think it is because LiveCode loses track of the rel...
by SparkOut
Sat Jul 04, 2020 3:34 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Graphic help needed
Replies: 29
Views: 602

Re: Graphic help needed

If I am not mistaken, a circular (regular oval) graphic has 360 effective points, thus you can have one point on the circumference per degree of arc. I am not certain what you want to do, but I can draw from one point on the circumference to another using the following script: on mouseUp put the num...
by SparkOut
Sat Jul 04, 2020 2:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: [SOLVED] Image problems
Replies: 18
Views: 389

Re: [SOLVED] Image problems

There is a script equivalent of import as control, as in my earlier post (#3 in this thread)

Code: Select all

import paint from file <theImageFilePath>
which creates the image object and returns the long id in the it variable, so you can then set the new image's name.
by SparkOut
Sat Jul 04, 2020 12:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: [SOLVED] Image problems
Replies: 18
Views: 389

Re: Image problems

Perhaps we could also take a step back and ask for some more detail about what you are trying to do - how do you want the interface to look and what actions you want to change the view of images and what the application is for - how are you planning on packaging and delivering the different images? ...
by SparkOut
Sat Jul 04, 2020 12:30 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: [SOLVED] Image problems
Replies: 18
Views: 389

Re: Image problems

You're mixing and matching a lot of the different possible combinations and methods referred to, with errors resulting: put "someImage.png" into imageNames[11] -- this is the name of the file only, no path and no data -- correction: not necessary here - if you commented out the 3rd line of your scri...
by SparkOut
Sat Jul 04, 2020 10:55 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: [SOLVED] Image problems
Replies: 18
Views: 389

Re: Image problems

You have put the actual binary date of the image file into the array. To set the filename of the image object, you want to give it the path you stored in the variable varImage. This will give a display of a "referenced image" - in other words the image data is stored in the external file and not par...
by SparkOut
Thu Jul 02, 2020 7:36 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Graphic help needed
Replies: 29
Views: 602

Re: Graphic help needed

There are a variety of ways to address the graphic individually on mouseup create grc --the long id of the newly created graphic is return in "it" --they will have a unique id, but the same default name set the style of it to "line" set the points of it to 200,200, 300,300 end mouseup on mouseUp set...
by SparkOut
Thu Jul 02, 2020 7:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Graphic help needed
Replies: 29
Views: 602

Re: Graphic help needed

Why wouldn't it be reasonable? You have created more than one graphic with the same name. If you step through the code you see the process is create the graphic with the name "tLine" -you should really quote literal names, although it seems like you might want to name the graphic according to the va...
by SparkOut
Thu Jul 02, 2020 6:30 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Graphic help needed
Replies: 29
Views: 602

Re: Graphic help needed

I don't think it's a bug, unless I have misunderstood. It is because the second and subsequent graphics are created with the default graphic template properties. But they have the same name as the first, so when you set the style of graphic tLine it finds the first graphic named tLine and sets the s...

Go to advanced search