Search found 19 matches

by 5imon
Sun May 21, 2023 11:22 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Set group rect to its child contents
Replies: 6
Views: 6061

Re: Set group rect to its child contents

Thanks Richard, the boundingRect actually works very well. :o
by 5imon
Sun May 21, 2023 7:30 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Set group rect to its child contents
Replies: 6
Views: 6061

Re: Set group rect to its child contents

Hi Jacque,

yes, for the moment I need it to act as a clip as the group itself is acting like a canvas of sorts. Anything outside those bounds is "off canvas".

But thanks for the info about the formattedHeight and formattedWidth, I'm sure I'll need those too as I progress through this project.
by 5imon
Sat May 20, 2023 10:54 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Set group rect to its child contents
Replies: 6
Views: 6061

Re: Set group rect to its child contents

HA! Managed to find the answer in a 2017 mailing list.

set the clipsToRect of group "Canvas" to false
by 5imon
Sat May 20, 2023 10:49 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Set group rect to its child contents
Replies: 6
Views: 6061

Set group rect to its child contents

I'll start by saying the solution to my problem is solved by toggling the "Clip child controls to rect" checkbox in the Property Inspector. Unfortunately I don't recall if we can actually see the code behind the the various IDE elements in LiveCode. So here's the problem: I have a group with random ...
by 5imon
Mon May 08, 2023 4:33 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Standalone: Saving prefs
Replies: 22
Views: 28602

Re: Standalone: Saving prefs

I'm absorbing the replies and continue to read what I can find — here's my current understanding: [1] specialfolderpath() I can store basic preferences such as window size, colors and fonts, preferred "save path" directory etc to an xml or json file. I don't really see any benefit to saving 4KB of s...
by 5imon
Mon May 08, 2023 4:00 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Standalone: Saving prefs
Replies: 22
Views: 28602

Standalone: Saving prefs

Hi all, I'm lost on where in the forum to find an answer for this question: If my standalone requires that a user modify settings in my app (for example they may change the bg color of the UI) then this needs to be saved externally to a custom plist/JSON/XML etc. What is the current best practice fo...
by 5imon
Tue Dec 08, 2020 3:25 pm
Forum: Windows
Topic: Get Shell Silently
Replies: 2
Views: 4380

Re: Get Shell Silently

That worked perfectly, thanks Richard.
by 5imon
Tue Dec 08, 2020 3:57 am
Forum: Windows
Topic: Get Shell Silently
Replies: 2
Views: 4380

Get Shell Silently

I'm currently trying to perform a get shell() and I'm having random successes in cases where it should just work. Here's an example where it just works: get shell ("dir") answer it Works a treat. The following more complex example also works without a hitch: get shell("cd C:/Users/5imon/AppData/Loca...
by 5imon
Tue Dec 08, 2020 2:47 am
Forum: Windows
Topic: Trouble with Shell Command
Replies: 11
Views: 13767

Re: Trouble with Shell Command

I just ran into the same problem as buchacho and spent the better part of a few hours debugging it. I finally got it to work when formatted as the following: put "cd C:/Users/5imon/AppData/Local/HaptUX/ExManCmdWin/" into thePath put "& ExManCmd /list" into theArgs get shell(thePath & theArgs) That w...
by 5imon
Wed Jun 24, 2020 2:20 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Cannot drag stack with controls set to empty offscreen
Replies: 27
Views: 14688

Re: Cannot drag stack with controls set to empty offscreen

Hmmm> If i set the windowShape of a simple stack to the ID of an oval image on that stack, I get an oval shaped stack the size of the image. Regardless of what I do with the decorations, I cannot move the stack with the mouse. There is nothing to "grab" onto. No titleBar, minimize button, etc, ever...
by 5imon
Tue Jun 23, 2020 11:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Cannot Search Forum Bug
Replies: 8
Views: 5199

Re: Cannot Search Forum Bug

As to the OP, I'm not sure what to say there. I don't have Mojave to test with, but with 10.6.8 Snow Leopard and Safari, I certainly see the search without being logged in. I see the search when logged out, but it disappears when logged in. Safari and Firefox. Anyhow, I already setup a bookmark to ...
by 5imon
Tue Jun 23, 2020 9:36 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Cannot drag stack with controls set to empty offscreen
Replies: 27
Views: 14688

Re: Cannot drag stack with controls set to empty offscreen

Now I am trying to work out how to drag the stack anywhere at all. Add the following to the stack cd script. It's likely that the "target" will end up being the frog so you'll need to modify the mouseMove to reflect that. # make entire stack draggable local sgLeftOffset local sgTopOffset local sgDr...
by 5imon
Tue Jun 23, 2020 7:49 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Cannot drag stack with controls set to empty offscreen
Replies: 27
Views: 14688

Re: Cannot drag stack with controls set to empty offscreen

Klaus. I'm sure Simon means empty "decorations"! Probably. But can you have decorations on a windowShaped stack? I made a oval image, set the windowShape, and I get an oval stack. How would a titlebar "track" the top of such a thing? Simon, decorations are not controls. Craig On Windows you can dra...
by 5imon
Tue Jun 23, 2020 7:43 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Cannot drag stack with controls set to empty offscreen
Replies: 27
Views: 14688

Re: Cannot drag stack with controls set to empty offscreen

Yes, I mean empty decorations. When I use the Property Inspector to set the decorations the last option is titled "empty".

And to set the decorations to *empty* I need to click on a button with a magic wand icon next to a field labelled *Controls* in the Property Inspector.
by 5imon
Tue Jun 23, 2020 5:09 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Cannot drag stack with controls set to empty offscreen
Replies: 27
Views: 14688

Re: Cannot drag stack with controls set to empty offscreen

I should elaborate ... this problem only happens on Ubuntu Linux with 9 .6 .0