Search found 1135 matches

by LCMark
Thu Dec 14, 2023 11:12 am
Forum: Talking LiveCode
Topic: Send the Stack to the Center of the screen.
Replies: 61
Views: 788386

Re: Send the Stack to the Center of the screen.

This had been nagging at me but I only belatedly realised there was a whole page of 'interesting' debate I'd missed on this :oops: I think the 'interesting' debate arose while you were at work ;) I now realise what the correct command to 'zoom' the stack should have been (i.e. set the effective rec...
by LCMark
Thu Dec 14, 2023 9:06 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: interactive console app
Replies: 3
Views: 4083

Re: interactive console app

@keliko: Windows doesn't allow an executable to be both a gui application and a console application: you can either have an app which only has a gui and that detaches immediately from any console it is launched from (thus loosing the connection to stdin/stdout); or you can have an app which always h...
by LCMark
Wed Dec 13, 2023 3:25 pm
Forum: Talking LiveCode
Topic: Send the Stack to the Center of the screen.
Replies: 61
Views: 788386

Re: Send the Stack to the Center of the screen.

The one limitation is the hardcoding of the Apple menubar height - we would ideally have a handler to provide the current menubar's height, but as far as I can see online this would need a Swift or Ojb-C call (i.e. an external). Or even better, LC would fix the effective working screenRect so it do...
by LCMark
Wed Dec 13, 2023 3:04 pm
Forum: Talking LiveCode
Topic: Send the Stack to the Center of the screen.
Replies: 61
Views: 788386

Re: Send the Stack to the Center of the screen.

DOES set the grab bar of the stack to directly underr the MacOS Menu bar. It is still NOT doing quite what it should with the MacOS Dock: Hmmm - I don't see that here - so there is something amiss somewhere. I tested the provided line on my desktop mac (macOS Sonoma / Intel) for a variety of dock s...
by LCMark
Wed Dec 13, 2023 2:33 pm
Forum: Talking LiveCode
Topic: Send the Stack to the Center of the screen.
Replies: 61
Views: 788386

Re: Send the Stack to the Center of the screen.

NO: I most definitely did not ask for that. Heh - when I said 'what you asked for' I meant in terms of 'what you are asking the engine for' - i.e. in terms of the code you tried. In case my previous post was not entirely clear - if you remove the second line which resets the loc of the stack to som...
by LCMark
Wed Dec 13, 2023 2:18 pm
Forum: Talking LiveCode
Topic: Send the Stack to the Center of the screen.
Replies: 61
Views: 788386

Re: Send the Stack to the Center of the screen.

The grab bar visible just below the MacOS Menu bar and behind my "screen Stretch" stack is my revMenubar stack. Yes - but that's what you have asked for! As I previously stated, to fill the working area of the screen with a stack's window (taking into account titlebar etc.), it is sufficient to use...
by LCMark
Wed Dec 13, 2023 1:58 pm
Forum: Talking LiveCode
Topic: Send the Stack to the Center of the screen.
Replies: 61
Views: 788386

Re: Send the Stack to the Center of the screen.

Damage control should not consist of evasion. And this means what exactly @richmond? Doing this: on mouseUp set the itemDelimiter to "," put item 4 of the effective working screenRect into UD put item 3 of the screenRect into LR set the height of Stack "screen Stretch" to UD set the width of Stack ...
by LCMark
Wed Dec 13, 2023 1:09 pm
Forum: Talking LiveCode
Topic: Send the Stack to the Center of the screen.
Replies: 61
Views: 788386

Re: Send the Stack to the Center of the screen.

The screenLoc returns the center of the screenRect, not the working screenRect - the menubar and docks are different heights so they won't be the same.
by LCMark
Sun Nov 12, 2023 9:26 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to know if a substack's script has finished loading?
Replies: 12
Views: 19833

Re: How to know if a substack's script has finished loading?

@stam: Librarystack is sent immediately after the script is loaded with ‘start using’ and isn’t delayed so that wouldn’t make a difference here. The common library thing could be a thing - except that the hidden group thing was change quite a while ago - things like common library should be inserted...
by LCMark
Sat Nov 11, 2023 11:26 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to know if a substack's script has finished loading?
Replies: 12
Views: 19833

Re: How to know if a substack's script has finished loading?

@Zax: Are you using any inclusions in your project? In particular what is the critical error you are receiving in prefsRead? There’s an internal startup script which is added to standalones which ensures all the things you specify in standalone settings inclusions to be loaded and initialised. I don...
by LCMark
Fri Nov 10, 2023 3:03 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to know if a substack's script has finished loading?
Replies: 12
Views: 19833

Re: How to know if a substack's script has finished loading?

Is there a way to know if a substack's script has finished loading? Something like a message that could be intercepted in a callback. I use the following structure in my stacks: ... The scripts inserted by the 'insert' command will be in the message path as soon as the insert command finishes (unle...
by LCMark
Wed Nov 08, 2023 4:20 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: stack changes size when going to another card
Replies: 27
Views: 52573

Re: stack changes size when going to another card

@jameshale: There's a cResponsiveLayout custom property set in the stack of the test stack you uploaded above... I wonder if that's causing the issue there? It appears to have a key in it which suggests 'landscape' - but why that would only affect one card I'm not sure.
by LCMark
Tue Nov 07, 2023 3:50 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: I have a problem. How can I make the button stop receiving clicks until the action inside it is finished?
Replies: 36
Views: 21243

Re: I have a problem. How can I make the button stop receiving clicks until the action inside it is finished?

The system clock on modern machine is highly accurate - it has to be otherwise a lot of things we rely on day in day out would not work. (By accurate I mean the drift over a course of a period of time between when it is synchronized with an external source is exceptionally small - most systems autom...
by LCMark
Mon Oct 30, 2023 6:16 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array referencing
Replies: 22
Views: 42802

Re: Array referencing

@mwieder: Array literalts [] and {} syntax is new in LC10, dynamic paths have been around a while (I'm tempted to say since before 6.0 but I'm not 100% sure).
by LCMark
Fri Oct 27, 2023 4:31 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array referencing
Replies: 22
Views: 42802

Re: Array referencing

@stam: So: put [ A, B, C, D, E ] into tPath get tArray[tPath] put tValue into tArray[tPath] Does indeed create an array where: tArray[A][B][C][D][E] = tValue However, the other keys are not empty - they contain the nested arrays. If you assume that A-E (which I was just using as placeholders for arb...

Go to advanced search