Thanks Roger, works beautifullyRogGuay wrote:https://www.dropbox.com/s/wwwrxqehi0173 ... e.zip?dl=0
Search found 72 matches
- Tue Jan 27, 2015 2:35 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Rotate a line?
- Replies: 21
- Views: 25239
Re: Rotate a line?
- Sat Jan 24, 2015 9:37 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Rotate a line?
- Replies: 21
- Views: 25239
Re: Rotate a line?
Thanks KlausKlaus wrote:latest version which is 7.02 already.
- Sat Jan 24, 2015 5:24 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Rotate a line?
- Replies: 21
- Views: 25239
Re: Rotate a line?
a pendulum WITH a line that does NOT disappear on my machine and many others. If your copy's pendulum line disappears, perhaps we can help you with that problem, first of all?
Roger
Thanks Roger :D ,
You are right. On my machine it disappears and is turned into a point. I'm running version 7.0 ...
Roger
Thanks Roger :D ,
You are right. On my machine it disappears and is turned into a point. I'm running version 7.0 ...
- Sat Jan 24, 2015 11:35 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Rotate a line?
- Replies: 21
- Views: 25239
Re: Rotate a line?
Yes but it disappears as soon as you start the pendulum.Simon wrote: I see a line in the Pendulum tab???
A rotation of a simple line shouldn't be rocket science, and the fact that LC has no support for it is somewhat dissapointing
- Sat Jan 24, 2015 12:59 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Rotate a line?
- Replies: 21
- Views: 25239
Re: Rotate a line?
Thanks Simon
,
but it doesn't quite answer my question. There was a link there that didn't work and the Harmonic oscillator stack didn't have a line for it's pendulum. So does it mean seems that there is no simple solution?
but it doesn't quite answer my question. There was a link there that didn't work and the Harmonic oscillator stack didn't have a line for it's pendulum. So does it mean seems that there is no simple solution?
- Fri Jan 23, 2015 11:04 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Rotate a line?
- Replies: 21
- Views: 25239
Rotate a line?
I have a line that is a radius vector in a circle. I want to rotate the line 30 degrees counter clockwise when I click on a button. Is that possible? (Rotate "angle" does not seem to work for a line graphics. Also I want to rotate around the end point of the line, like a upside-down pendulum.)
- Mon Jan 19, 2015 12:24 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: How to organize your code
- Replies: 4
- Views: 4606
Re: How to organize your code
I generally don't worry about script sizes (the compiler doesn't care.) I've got scripts that are a couple of thousand lines or more without ill effects. The reason I limit the length of handlers is for easier maintenance and modularity, but I find it more difficult to maintain code that is too ...
- Sun Jan 18, 2015 12:29 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: How to organize your code
- Replies: 4
- Views: 4606
Re: How to organize your code
My general rules are:
If code is needed more than once, break it out into a separate handler.
If a handler gets too long, break it up into separate handlers (a 300 line handler is way too long.)
Place handlers at the level closest to the objects that use them. If a single button uses some code ...
If code is needed more than once, break it out into a separate handler.
If a handler gets too long, break it up into separate handlers (a 300 line handler is way too long.)
Place handlers at the level closest to the objects that use them. If a single button uses some code ...
- Sat Jan 17, 2015 2:08 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: How to organize your code
- Replies: 4
- Views: 4606
How to organize your code
I know this is not an easy question and probably people do it differently, but still I would like to know different ways of organizing your code in LC.
Say I have a program of totally 6000 lines of code. Some in controls, some in cards, some in mainStack. Some handlers are 300 lines long others ...
Say I have a program of totally 6000 lines of code. Some in controls, some in cards, some in mainStack. Some handlers are 300 lines long others ...
- Sat Jan 17, 2015 12:31 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Position modal dialog
- Replies: 2
- Views: 3316
Re: Position modal dialog
Thank you Richard, just what I was looking for
and with blending I can make it semi transparent too
and with blending I can make it semi transparent too
- Fri Jan 16, 2015 11:59 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Position modal dialog
- Replies: 2
- Views: 3316
Position modal dialog
When I open a substack with
modal stack "ModalDialog"
it appears in the middle of my 2400x1400 screen, which is half a mile from my main stack :evil: . Is it possible to position the modal dialog, closer to the main stack? If not is there a way to use sheets like in a normal Cocoa application (a ...
modal stack "ModalDialog"
it appears in the middle of my 2400x1400 screen, which is half a mile from my main stack :evil: . Is it possible to position the modal dialog, closer to the main stack? If not is there a way to use sheets like in a normal Cocoa application (a ...
- Fri Jan 16, 2015 7:47 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Image vs Button Icon
- Replies: 3
- Views: 3687
Re: Image vs Button Icon
Hi Jean-Marc, thank you for your answer :D ,
So you are referencing images instead of importing them. Here is what I suspect, please correct me if I'm wrong
PROs of referencing
- takes much less space in your stack.
- you can change the image without changing the stack
CONs of referencing
- If ...
So you are referencing images instead of importing them. Here is what I suspect, please correct me if I'm wrong
PROs of referencing
- takes much less space in your stack.
- you can change the image without changing the stack
CONs of referencing
- If ...
- Fri Jan 16, 2015 6:25 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Image vs Button Icon
- Replies: 3
- Views: 3687
Image vs Button Icon
When do you use Image Area and when do you use a Button Icon, when you want to display an image on a card?
- Thu Jan 15, 2015 11:26 am
- Forum: Talking LiveCode
- Topic: Disabling all controls in stack..
- Replies: 6
- Views: 6285
Re: Disabling all controls in stack..
Would it be possible to create a frontScript that trapped all mouse and keyDown events? Just a thought*.
Here is a little experiment you can do. Create a stack and on a card, add two buttons called "answer" and "myFront". Make their scripts look like this:
-- answer
on mouseUp
answer "How are ...
Here is a little experiment you can do. Create a stack and on a card, add two buttons called "answer" and "myFront". Make their scripts look like this:
-- answer
on mouseUp
answer "How are ...
- Thu Jan 15, 2015 12:10 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Not Equal
- Replies: 1
- Views: 2800
Not Equal
This works
and this works
but not this
According to User Guide p154 all should work
I must be missing something very simple
Code: Select all
if (3 <> 4) then put "not equal"Code: Select all
if (3 is not 4) then put "not equal"Code: Select all
if (3 != 4) then put "not equal"I must be missing something very simple