Search found 41 matches

by odysseus
Sat Nov 28, 2020 7:47 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Resizing Groups
Replies: 27
Views: 2322

Re: Resizing Groups

I had to move from Toolbook as it is no longer supported and development has stopped. In fact I was surprised not by the differences between Toolbook and LC, but by the similarities. Both share the concepts of books/stacks, pages/cards, Openscript/script, the ‘it’ variable, programmable graphical ob...
by odysseus
Thu Nov 26, 2020 12:12 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Resizing Groups
Replies: 27
Views: 2322

Re: Resizing Groups

Thats fine for 3 objects - now try it with 75 objects of various types including 12 nested groups. One line of code in Toolbook.

Anyway thanks everyone for your help, at least I know I haven’t missed something simple. Back to my coding cave!
by odysseus
Thu Nov 26, 2020 12:54 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Resizing Groups
Replies: 27
Views: 2322

Re: Resizing Groups

Richard, I have been using Toolbook Openscript. In Toolbook groups are just collections of objects (and nested groups) and don’t have a ‘wrapper’. They behave just like single objects inasmuch as they can be resized by dragging or in codeas if they were one object. Another advantage is that you can ...
by odysseus
Wed Nov 25, 2020 11:33 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Resizing Groups
Replies: 27
Views: 2322

Re: Resizing Groups

Thank you for that, Richard, I will have a look at your suggestions. It seems though that I have come across a serious limitation compared with what I was used to. I guess I will have to think about a way around it. Unfortunately I am finding more of these as I go along (4 months now) but that’s the...
by odysseus
Wed Nov 25, 2020 8:33 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Resizing Groups
Replies: 27
Views: 2322

Re: Resizing Groups

Actually richmond62, if I want something to happen in a particular way, and it doesn’t, that doesn’t make me wrong. I was asking for help in case I had missed something obvious. If it isn’t possible then so be it and I will find a way round it as I always do. Forgetting about screen resolution chang...
by odysseus
Wed Nov 25, 2020 7:24 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Resizing Groups
Replies: 27
Views: 2322

Re: Resizing Groups

Hi Klaus, Re the first answer I was stating what I wanted to happen, not what was actually happening. Actually nothing is resizing other than the invisible border around the zone. Secondly I want to cater for different screen resolutions on a computer. In my current program I go through the pages (c...
by odysseus
Wed Nov 25, 2020 6:53 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Resizing Groups
Replies: 27
Views: 2322

Re: Resizing Groups

And richmond62 I dont have a visible border set round the group. Resizing the border is no use to me, I need to resize the group itself. The group consists of a polygon, a rectangle and a field by the way.
by odysseus
Wed Nov 25, 2020 6:23 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Resizing Groups
Replies: 27
Views: 2322

Re: Resizing Groups

When resizing the rectangular group, it is just that, everything else remains the same. When resizing for screen change, everything on the card is gathered into one group and resized.
by odysseus
Wed Nov 25, 2020 5:51 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Resizing Groups
Replies: 27
Views: 2322

Resizing Groups

I hope somebody can help me here. Once again I am trying to convert a function in my previous graphics program to LC. I needed to resize a rectangular group consisting of 3 components, so I had code which would determine which quarter was clicked, and alter the relevant vertices to make the group bi...
by odysseus
Sat Nov 14, 2020 2:31 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Answer function
Replies: 82
Views: 8329

Re: Answer function

Its a fairly obscure fault which is unlikely to affect most users. I was unlucky in that the spurious mouseDown threw me into a section of code that just caused a lockup rather than doing something obvious. It just happened to catch me out - not yet being too familiar with LC, and took a few days to...
by odysseus
Sat Nov 14, 2020 12:57 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Answer function
Replies: 82
Views: 8329

Re: Answer function

Just to clarify, In my button I put: on mouseUp answer “Hello” with “Yes” or “No” end mouseUp on mouseDown —do nothing end mouseDown So the mouseDown is trapped and not sent In my data stack I put: on mouseDown put target end mouseDown Now when I click the button the answer dialog appears, and if I ...
by odysseus
Fri Nov 13, 2020 9:59 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Answer function
Replies: 82
Views: 8329

Re: Answer function

I think it would be more correct to say that the mouseDown message is generated by the buttons in the answer dialog. The fact that they don’t generate a mouseUp says to me that it’s unintentional (dare I say a bug).
by odysseus
Fri Nov 13, 2020 7:26 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Answer function
Replies: 82
Views: 8329

Re: Answer function

No, I've got a button that triggers the answer dialog on mouseUp, and I've trapped the mouseDown in it, so no mouseDown is sent. The answer dialog appears, and if either button is pressed, the mouseDown handler in the data stack is triggered, with the target shown as 'Button Yes' or 'Button No', so ...
by odysseus
Fri Nov 13, 2020 5:07 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Answer function
Replies: 82
Views: 8329

Re: Answer function

My bad - everything I posted was correct EXCEPT its mouseDown that does it not mouseUp, sorry. Just to double check it wasn't any of my code,I set up a new system with two stacks, stack 1 includes 'start using' stack 2. Stack 2 has a mouseDown handler which just says 'put the target'. That captures ...
by odysseus
Fri Nov 13, 2020 11:09 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Answer function
Replies: 82
Views: 8329

Re: Answer function

It is - actually. A ‘put the target’ message I put into the mouseUp handler in the closed stack to intercept it shows that the target was button “Yes” if that was pressed, or button “No” if that was pressed, so that shows conclusively it was coming from the Answer box.

Go to advanced search