Search found 1140 matches

by LCMark
Fri May 03, 2024 4:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to scroll to a specific line number
Replies: 5
Views: 67

Re: How to scroll to a specific line number

Heh @bn's is better - I forgot about adjusting for the top margin :D
by LCMark
Fri May 03, 2024 4:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to scroll to a specific line number
Replies: 5
Views: 67

Re: How to scroll to a specific line number

There's a more general way to do this which works with lines without fixed height... You can use the formattedRect property to get the rect of a line of a field in card co-ordinates as it would be if the field didn't clip the content, which you can then adjust by the top of the field and current vSc...
by LCMark
Mon Apr 22, 2024 2:55 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Unable to build Windows standalone
Replies: 3
Views: 220

Re: Unable to build Windows standalone

@stam: So two things spring to mind - you are building to an output folder over the top of an existing windows standalone build and the standalone executable is already running (perhaps check Activity Monitor)... Or for some reason the S/B can't create/open files in the user's temporary folder... (O...
by LCMark
Fri Apr 19, 2024 8:11 am
Forum: Talking LiveCode
Topic: Security Issue Related to Decompilation in LiveCode
Replies: 13
Views: 781

Re: Security Issue Related to Decompilation in LiveCode

There are many open-source programming languages where it requires more effort to decompile compared to LiveCode @keliko: Can you give some examples of this, along with the steps you went through to determine that this was harder in those languages? Looking at your screenshot it looks like you have...
by LCMark
Wed Apr 10, 2024 10:01 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: send in time?
Replies: 2
Views: 349

Re: send in time?

@Zax: Assuming nothing else is going on (i.e. no messages are sent during the wait) then yes they will do the same thing. However, you will not see quite the same result if a message is handled in that 100ms window which also calls wait: This code will cause 'the date' to populate field 1 after 1 se...
by LCMark
Thu Dec 14, 2023 11:12 am
Forum: Talking LiveCode
Topic: Send the Stack to the Center of the screen.
Replies: 62
Views: 1274401

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: 6509

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: 62
Views: 1274401

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: 62
Views: 1274401

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: 62
Views: 1274401

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: 62
Views: 1274401

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: 62
Views: 1274401

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: 62
Views: 1274401

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: 32965

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: 32965

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...

Go to advanced search