Search found 72 matches

by uelandbob
Tue Jan 27, 2015 2:35 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rotate a line?
Replies: 21
Views: 2966

Re: Rotate a line?

Thanks Roger, works beautifully :D :D
by uelandbob
Sat Jan 24, 2015 9:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rotate a line?
Replies: 21
Views: 2966

Re: Rotate a line?

Klaus wrote:latest version which is 7.02 already.
Thanks Klaus :D , I downloaded 7.02 and tried, but no luck the error persists
by uelandbob
Sat Jan 24, 2015 5:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rotate a line?
Replies: 21
Views: 2966

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.0 Bu...
by uelandbob
Sat Jan 24, 2015 11:35 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rotate a line?
Replies: 21
Views: 2966

Re: Rotate a line?

Simon wrote: I see a line in the Pendulum tab???
Yes but it disappears as soon as you start the pendulum.

A rotation of a simple line shouldn't be rocket science, and the fact that LC has no support for it is somewhat dissapointing :(
by uelandbob
Sat Jan 24, 2015 12:59 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rotate a line?
Replies: 21
Views: 2966

Re: Rotate a line?

Thanks Simon :D ,

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?
by uelandbob
Fri Jan 23, 2015 11:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rotate a line?
Replies: 21
Views: 2966

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.)
by uelandbob
Mon Jan 19, 2015 12:24 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to organize your code
Replies: 4
Views: 714

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 exc...
by uelandbob
Sun Jan 18, 2015 12:29 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to organize your code
Replies: 4
Views: 714

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, put...
by uelandbob
Sat Jan 17, 2015 2:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to organize your code
Replies: 4
Views: 714

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 are ...
by uelandbob
Sat Jan 17, 2015 12:31 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Position modal dialog
Replies: 2
Views: 473

Re: Position modal dialog

Thank you Richard, just what I was looking for :D
and with blending I can make it semi transparent too
by uelandbob
Fri Jan 16, 2015 11:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Position modal dialog
Replies: 2
Views: 473

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 sem...
by uelandbob
Fri Jan 16, 2015 7:47 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Image vs Button Icon
Replies: 3
Views: 586

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 you s...
by uelandbob
Fri Jan 16, 2015 6:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Image vs Button Icon
Replies: 3
Views: 586

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?
by uelandbob
Thu Jan 15, 2015 11:26 am
Forum: Talking LiveCode
Topic: Disabling all controls in stack..
Replies: 6
Views: 1243

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 you?" ...
by uelandbob
Thu Jan 15, 2015 12:10 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Not Equal
Replies: 1
Views: 633

Not Equal

This works

Code: Select all

if (3 <> 4) then put "not equal"
and this works

Code: Select all

if (3 is not 4) then put "not equal"
but not this

Code: Select all

if (3 != 4) then put "not equal"
According to User Guide p154 all should work

I must be missing something very simple

Go to advanced search