Search found 940 matches

by trevordevore
Thu Oct 11, 2018 2:55 pm
Forum: SQL Yoga
Topic: Search with accents in SQL Yoga
Replies: 5
Views: 1278

Re: Search with accents in SQL Yoga

I took a look at the code and here is what I found out. The sample stack uses the text of the search field when generating the query. In LC 9 this will encode an é as unicode. SQLite is expecting a UTF-8 string so you need to make the change accordingly. 1. edit script of group "TownsGroup" 2. Chang...
by trevordevore
Thu Oct 11, 2018 12:16 pm
Forum: SQL Yoga
Topic: Search with accents in SQL Yoga
Replies: 5
Views: 1278

Re: Search with accents in SQL Yoga

Hi Carles - searching for accented characters can work. There is most likely a text encoding issue. Which version of LC are you using and which string are you searching for?
by trevordevore
Tue Oct 09, 2018 5:29 am
Forum: Community Projects
Topic: Sandbox - a Levure Helper for working with files in the macOS sandbox
Replies: 0
Views: 613

Sandbox - a Levure Helper for working with files in the macOS sandbox

Hi, I've posted a new Levure helper on GitHub called "sandbox". It adds support for working with file references across multiple app sessions in the macOS sandbox. It requires LiveCode 9 as it uses the Foreign Function Interface (aka FFI) to wrap Objective-C APIs. If you distribute your apps through...
by trevordevore
Wed Sep 26, 2018 5:44 pm
Forum: Community Projects
Topic: App Updater helper for Levure
Replies: 30
Views: 3906

App Updater helper for Levure

Hi, I've been working on the App Updater helper for Levure. The goal is to make automatic updating of Levure applications really straightforward. The helper leverages Sparkle on macOS and WinSparkle on Windows (the two desktop platforms I develop for). I used the Foreign Function Interface (FFI) in ...
by trevordevore
Thu Aug 09, 2018 1:54 pm
Forum: LiveCode Builder
Topic: Big bunch of questions
Replies: 7
Views: 787

Re: Big bunch of questions

Here are a couple of functions I've used. Fit text within a certain width. Add ... if it doesn't fit. public handler fitStringToRect(inout pString as String, in pFont as Font, in pMaxWidth as Number) returns nothing -- Now make sure that text will fit within the available width variable tTextRect as...
by trevordevore
Mon Aug 06, 2018 8:19 pm
Forum: LiveCode Builder
Topic: One extension with multiple native library implementations
Replies: 4
Views: 711

Re: One extension with multiple native library implementations

While I haven't tested it, I would think so. LiveCode doesn't try to resolve external code libraries until you actually call the function. You could probably do something like this: # Define private foreign handlers that access native libraries on Windows OS ... # Define private foreign handlers tha...
by trevordevore
Mon Aug 06, 2018 2:04 pm
Forum: LiveCode Builder
Topic: Canvas
Replies: 8
Views: 1045

Re: Canvas

by trevordevore
Thu Aug 02, 2018 4:45 pm
Forum: LiveCode Builder
Topic: Canvas
Replies: 8
Views: 1045

Re: Canvas

You need to define your OnPaint() handler as `public`. public handler OnPaint() put solid paint with color [1,1,1] into mTextPaint set the paint of this canvas to mTextPaint set the font of this canvas to font "FreeSans" at size 12 fill text gText at point [0,12] on this canvas end handler
by trevordevore
Thu Aug 02, 2018 2:04 pm
Forum: LiveCode Builder
Topic: Specifying supported platforms in Inclusions entry for LCB extension?
Replies: 7
Views: 969

Re: Specifying supported platforms in Inclusions entry for LCB extension?

Yes bwmilby, that is what I am looking to do. Great work!
by trevordevore
Thu Jul 26, 2018 3:45 pm
Forum: SQL Yoga
Topic: FileMaker to LiveCode with SQL Yoga
Replies: 7
Views: 3033

Re: FileMaker to LiveCode with SQL Yoga

In FileMaker, a global field has a single value for all records in the table. The global field is owned by the user for each session. Global fields can be any data type including a calculation. An example would be rpt_StartDate, a date field that can be set by each user for that one session of the ...
by trevordevore
Tue Jul 24, 2018 5:58 am
Forum: SQL Yoga
Topic: FileMaker to LiveCode with SQL Yoga
Replies: 7
Views: 3033

Re: FileMaker to LiveCode with SQL Yoga

Hi Eric,

I'm not very familiar with Filemaker so I don't know the specifics of what Unstored Calculations, Global Fields, and Summary Fields are. If you can describe what they are and how you use them then perhaps I can offer some suggestions.
by trevordevore
Tue Jul 10, 2018 4:00 am
Forum: LiveCode Builder
Topic: Specifying supported platforms in Inclusions entry for LCB extension?
Replies: 7
Views: 969

Specifying supported platforms in Inclusions entry for LCB extension?

I have some extensions that use FFI and are specific to a single platform. In the Standalone Builder > Inclusions tab I want the supported platform icons to represent the supported platform. Looking at revsblibrary.livecodescript I can see that extensions are hard coded to be supported on all platfo...
by trevordevore
Wed Jun 20, 2018 3:07 am
Forum: LiveCode Builder
Topic: Sparkle macOS App Updater extension for LC 9 [First Pass]
Replies: 0
Views: 903

Sparkle macOS App Updater extension for LC 9 [First Pass]

Hi all, I've been doing quite a bit of work with the Foreign Function Interface (FFI) in LiveCode Builder (LCB) lately. As I make the shift to a 64-bit app on macOS I want to convert most of the custom externals I use to LCB. I think they will be easier to improve going forward. Today I finished a f...

Go to advanced search