Search found 1073 matches

by LCMark
Fri Mar 27, 2020 1:15 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scripting 'fit to content'
Replies: 5
Views: 157

Re: Scripting 'fit to content'

All the PI is doing is (I believe):

Code: Select all

set the width of <object> to the formattedWidth of <object>
OR
set the height of <object> to the formattedHeight of <object>
by LCMark
Tue Mar 24, 2020 10:18 am
Forum: LiveCode Builder
Topic: How do I deal with Code Blocks?
Replies: 26
Views: 1699

Re: How do I deal with Code Blocks?

@PaulDaMacMan: I've taken a quick look at the AVMidi code... I wonder if: private foreign handler objC_AVMIDIPlayerAlloc() returns ObjcRetainedId binds to "objc:AVMIDIPlayer.+alloc" private foreign handler objC_AVMIDIPlayer(in pAVMIDIPlayerInstance as ObjcRetainedId, in pFileNSURL as ObjcId, in pSou...
by LCMark
Mon Mar 23, 2020 6:10 pm
Forum: Announcements
Topic: RELEASE LiveCode 9.6.0 DP-3
Replies: 27
Views: 1135

Re: RELEASE LiveCode 9.6.0 DP-3

@mwieder: There's nothing wrong with the third-party CEF library itself. I can build and run CEFsimple here with no problems. It's just the integration of the external library through the spaghetti of the MCBrowserx calls that messes things up. I have to strongly disagree with you - the MCBrowser co...
by LCMark
Mon Mar 23, 2020 2:19 pm
Forum: Announcements
Topic: RELEASE LiveCode 9.6.0 DP-3
Replies: 27
Views: 1135

Re: RELEASE LiveCode 9.6.0 DP-3

@trevix: Re: Speech Library In terms of the new speech library - the functionality it offers is a superset of that offered by revSpeech. Indeed, the callback mechanism isn't something which revSpeech does, although we could possibly emulate the smaller revSpeech API with the new speech library I sup...
by LCMark
Mon Mar 23, 2020 1:50 pm
Forum: LiveCode Builder
Topic: How do I deal with Code Blocks?
Replies: 26
Views: 1699

Re: How do I deal with Code Blocks?

Hmmm looks like it could be because you are deleting the block pointer too soon - can you post your code?
by LCMark
Thu Mar 19, 2020 7:26 pm
Forum: LiveCode Builder
Topic: How do I deal with Code Blocks?
Replies: 26
Views: 1699

Re: How do I deal with Code Blocks?

To me the use of blocks and delegates seem to fly in the original concepts of object programming Just to get my two cents in here ;) I'd actually argue blocks are at the very core of the original concepts of object (oriented) programming - SmallTalk being a good example here. Their existence meant ...
by LCMark
Thu Mar 19, 2020 4:24 pm
Forum: LiveCode Builder
Topic: How do I deal with Code Blocks?
Replies: 26
Views: 1699

Re: How do I deal with Code Blocks?

Just to let you know - we've taken the code which was hashed out on Gitter, cleaned it up, commented it and it will be included in the objc module from 9.6-DP-3 (PR is here: https://github.com/livecode/livecode/pull/7291 ). We've now used this code internally on both macOS and iOS so are reasonably ...
by LCMark
Tue Mar 17, 2020 8:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Unable to Print on Linux Mint
Replies: 41
Views: 1113

Re: Unable to Print on Linux Mint

@bogs: Not at all - I was just adding what I can remember to the mystery... In that I know it worked once (I can't recall what Linux distro/version I might have been using!) and thus it is plausible it still worked for Panos when he tried to reproduce... Although it could well be a case of @mwieder ...
by LCMark
Tue Mar 17, 2020 7:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: LiveCode on a Tablet
Replies: 25
Views: 708

Re: LiveCode on a Tablet

Now, if you have feedback on my occasional habit of splitting infinitives, I'll admit I'm a personality type #4 on that subject, as outlined in H.W. Fowler's Guide to Modern English Usage, and the types 2 through 4 he identifies there sorely need all the help they can get. ;) I await @richmond62's ...
by LCMark
Tue Mar 17, 2020 7:03 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Unable to Print on Linux Mint
Replies: 41
Views: 1113

Re: Unable to Print on Linux Mint

To be fair we could not reproduce that bug at the time - and there was no further input from anywhere else, so it would have been assumed to be an isolated incident. Of course, this is obviously not the case :) I was the one who actually wrote the relevant patch which replaced the previous PS genera...
by LCMark
Sun Mar 15, 2020 9:28 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Unable to Print on Linux Mint
Replies: 41
Views: 1113

Re: Unable to Print on Linux Mint

@bogs: That is very useful testing... So since you have just tried a printing loop on Linux there - is there a /tmp/tmpprintfile.ps on your system? If so, what happens if you do lp /tmp/tmpprintfile.ps (from Terminal). @mwieder: I missed you 'bit thrown off by' presumably "// If we have no PDF print...
by LCMark
Sun Mar 15, 2020 9:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Unable to Print on Linux Mint
Replies: 41
Views: 1113

Re: Unable to Print on Linux Mint

Heh - well, in this case since @FourthWorld mentions it works on Ubuntu, it sounds like 'one of the LC Things That Don't Work on Linux *Mint*' ;) That being said there's a very small set of things that could be the problem - lp isn't working, lp doesn't like one of the computed arguments being passe...
by LCMark
Sun Mar 15, 2020 8:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Unable to Print on Linux Mint
Replies: 41
Views: 1113

Re: Unable to Print on Linux Mint

Now actually at my computer to check... In fact, it actually uses the PDF printer (inside MCPSPrinter) - we updated that in October 2015 so that change would have appeared either in LC 7.1 or LC 8.0. So we generate a PDF to a temp file and then tell lp to do its thing (MCPrinterResult MCPSPrinter::D...
by LCMark
Sun Mar 15, 2020 8:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Unable to Print on Linux Mint
Replies: 41
Views: 1113

Re: Unable to Print on Linux Mint

Yes - but that generates a postscript file which is then passed to lp - printing systems (to my knowledge) on Linux rely on Ghostscript which, being a full ps interpreter, supports postscript and pdf. Ghostscript is where all the rasterisation and eventual sending to the actual printer occurs... Unl...
by LCMark
Sun Mar 15, 2020 8:13 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Unable to Print on Linux Mint
Replies: 41
Views: 1113

Re: Unable to Print on Linux Mint

From memory the linux engine prints using lp (internally via a shell command) after sifting our the relevant parameters from the system dialog... So my guess would be that the lp command is failing - perhaps try checking the result after close printing and see if it reports anything?

Go to advanced search