Search found 970 matches

by LCMark
Thu May 17, 2018 3:49 pm
Forum: LiveCode Builder
Topic: Returning pointers to LCS
Replies: 2
Views: 157

Re: Returning pointers to LCS

@trevordevore: Yes - HWND is better typed as UIntPtr - it isn't really a pointer, but a handle which is checked by the OS in all API calls (so you can't break things by adding 1 to an existing one and passing that back - you'll just get an API error).
by LCMark
Fri May 11, 2018 5:17 pm
Forum: LiveCode Builder
Topic: CGWindowListCopyWindowInfo, CFArrayRef, NSArray, and __bridge
Replies: 5
Views: 237

Re: CGWindowListCopyWindowInfo, CFArrayRef, NSArray, and __bridge

@trevordevore: The CF types and the corresponding NS types are all compatible at the pointer level - the only thing which differs is that the CF APIs never returned autoreleased objects - so in this case it would return an ObjcRetainedId. Once put into an ObjcObject you can use it like you would the...
by LCMark
Fri May 11, 2018 8:31 am
Forum: LiveCode Builder
Topic: Help with macOS system status bar menu
Replies: 8
Views: 317

Re: Help with macOS system status bar menu

@trevordevore: Your code looks good. The general rules with regard ObjcIds etc. are: Only use ObjcId and ObjcRetainedId in the foreign handler definitions (parameter types and return types) - they describe the ownernship semantics of values flowing in and out of objc methods. Always use ObjcObject a...
by LCMark
Tue Apr 03, 2018 6:51 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: A quick lesson in Sanskrit orthography
Replies: 12
Views: 293

Re: A quick lesson in Sanskrit orthography

Hehe - you do like to make things difficult, don't you @richmond62 ;) With those constraints, and I'm guessing you aren't wanting to cobble together your own typesetting stack (and integrate it into the engine) - I suggest the two different fonts, and changing the textFont might be the 'best' soluti...
by LCMark
Tue Apr 03, 2018 6:27 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: A quick lesson in Sanskrit orthography
Replies: 12
Views: 293

Re: A quick lesson in Sanskrit orthography

One thing to consider is that variation selectors are *really* new in Unicode relatively speaking - so you need to be on a recent version of any OS for them to work. I tried you code here (macOS 10.12) and I get just the Mongolian glyph - no VS-1 selector overlaid... Which suggests this version of m...
by LCMark
Tue Apr 03, 2018 6:14 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: A quick lesson in Sanskrit orthography
Replies: 12
Views: 293

Re: A quick lesson in Sanskrit orthography

@richmond62: If I understand correctly then variation selectors are no different from any other unicode codepoint - so if you want to encode more than one in a sequence, then you have to do so with separate numToCodepoint's... i.e.

Code: Select all

put numToCodepoint(0x905) & numToCodepoint(0xFE00) into field "ff"
by LCMark
Tue Apr 03, 2018 5:31 pm
Forum: Talking LiveCode
Topic: Compare two lists (comparing fontName before/after)
Replies: 44
Views: 1200

Re: Compare two lists (comparing fontName before/after)

Just to comment on revFontLoad and the font-related aspects of this thread... revFontLoad is deprecated, old, and no longer exists (I think its removed from 9 - having been deprecated for a long time). Start using font file does exactly the same thing but better - in particular, it causes all font r...
by LCMark
Tue Apr 03, 2018 4:48 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: A quick lesson in Sanskrit orthography
Replies: 12
Views: 293

Re: A quick lesson in Sanskrit orthography

@richmond62: 'start using font file' is a better version of 'revFontLoad' - it just allows you to load an truetype/opentype font into the current process so you can use it as 'textFont'. If you were meaning in terms of multiple master fonts - then they always required a user managed step by using a ...
by LCMark
Tue Apr 03, 2018 4:15 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: A quick lesson in Sanskrit orthography
Replies: 12
Views: 293

Re: A quick lesson in Sanskrit orthography

Unfortunately I think 'multiple master fonts' are a dead-end - e.g. https://forums.adobe.com/thread/395592 . There is a modern variant just starting to appear https://www.commarts.com/columns/variable-fonts-are-the-next-generation . However, my reading of both multiple master and the new variable fo...
by LCMark
Thu Jan 25, 2018 12:44 pm
Forum: Rich Media
Topic: drawingSVGcompile Wish List
Replies: 23
Views: 1803

Re: drawingSVGcompile Wish List

@terilib / @bwmilby : Those maps don't work because they use a 'style' element along with element class attribtues to specify the fills/stroke attributes. There's a request for style element support here: http://quality.livecode.com/show_bug.cgi?id=20832.
by LCMark
Wed Jan 17, 2018 4:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: IT variable becomes Local
Replies: 2
Views: 207

Re: IT variable becomes Local

@Lagi: The 'it' variable is actually always local to the handler. Prior to 7 (e.g. 6.7.11) the 'it' variable would only be created at the point a command was parsed which required it - therefore if you tried to use 'it' *before* such a command, you'd get that error (assuming Variable Checking is on)...
by LCMark
Wed Jan 17, 2018 12:05 pm
Forum: LiveCode Builder
Topic: How to get started with ... everything?
Replies: 19
Views: 1634

Re: How to get started with ... everything?

@SparkOut: I perhaps should have added some comments to the above :) In terms of the folder structure, then the extension builder requires each extension have its own folder (velleman) in this instance. Then (in dp-11) it requires that a *single* LCB file be present in that folder (velleman.lcb) [ i...
by LCMark
Tue Jan 16, 2018 2:11 pm
Forum: LiveCode Builder
Topic: How to get started with ... everything?
Replies: 19
Views: 1634

Re: How to get started with ... everything?

@SparkOut: The velleman API is really simple - so equally simple to bind to from LCB: Here is an example lcb file with bindings to some of the DLLs functions (the rest are all very similar!), and some example LCB public handlers which wrap them (they are what is called from LCS). library velleman us...
by LCMark
Sun Jan 14, 2018 4:10 pm
Forum: Bug Triage
Topic: widget format switched
Replies: 8
Views: 774

Re: widget format switched

@hh: Apologies for that - it was a well intended change which was aimed to make moving forward to 9 easier... However, as you noticed it has a slightly unfortunate effect if you then continue to work in 8! I chatted to Ali about this briefly at the end of the week, but didn't get a chance to post. W...
by LCMark
Fri Jan 12, 2018 7:23 pm
Forum: LiveCode Builder
Topic: How to get started with ... everything?
Replies: 19
Views: 1634

Re: How to get started with ... everything?

@SparkOut: Can you share the C code you are trying to convert to LCB? I might be able to help out :) @MaxV: That explains how to build an external - which is still a viable way to extend LC. However, the advantage of doing it in LCB is that you get greater integration with the engine, and you don't ...

Go to advanced search