Search found 292 matches

by PaulDaMacMan
Thu Sep 17, 2020 4:02 am
Forum: LiveCode Builder
Topic: build an LCB for android
Replies: 5
Views: 186

Re: build an LCB for android

how difficult it is to build an LCB for android. I always fail to make LCB. I want to use the clipboard feature for android. https://developer.android.com/reference/android/content/ClipboardManager incomplete documentation and almost no tutorial on the internet about lcb livecode. makes me frustrat...
by PaulDaMacMan
Mon Sep 14, 2020 8:46 pm
Forum: LiveCode Builder
Topic: Piano Widget Progress, Thanks!
Replies: 6
Views: 366

Re: Piano Widget Progress, Thanks!

Hi Paul, Don't know how I will use it in a Business program but I bet there are lots of useful tricks to be learned from the code. Thanks for sharing. Lagi Unless your business is music education or something like that, then not likely. I don't know that there's any unique tricks in this widget, ot...
by PaulDaMacMan
Mon Sep 14, 2020 8:30 pm
Forum: LiveCode Builder
Topic: Piano Widget Progress, Thanks!
Replies: 6
Views: 366

Re: Piano Widget Progress, Thanks!

Paul- That's way cool. What was the trick to getting composite widgets to play together? No trick at all, it's not a composed widget! I couldn't work around that bug so I made it as one big widget, with a list of Octaves that contain list of Piano-key arrays, and then I had to manually tweaked the ...
by PaulDaMacMan
Fri Sep 11, 2020 11:21 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Android Event Listener v1.0.0 - find out when your app is put in the background!
Replies: 13
Views: 484

Re: Android Event Listener v1.0.0 - find out when your app is put in the background!

Sounds good - I've never used Github before, so I'll have to look to see how it works and get it set up :). I'll look into it and see what I can find! I started using GitHub just so I could contribute to fixing up the docs in the LC IDE, now I have a bunch of my own repos there. I just use the web ...
by PaulDaMacMan
Fri Sep 11, 2020 6:53 pm
Forum: LiveCode Builder
Topic: Piano Widget Progress, Thanks!
Replies: 6
Views: 366

Piano Widget Progress, Thanks!

Just wanted to say a BIG thanks to @LCMark @BN @trevordevore for helping me get this Piano Widget working in under a week (of nights). Here's a little demo video of the Widget in action: https://www.youtube.com/watch?v=xg7rBg8p2zQ&feature=youtu.be There's more optimizations that could be done, but I...
by PaulDaMacMan
Fri Sep 11, 2020 4:41 pm
Forum: LiveCode Builder
Topic: Default Script
Replies: 13
Views: 3694

Re: Default Script

Setting a default script never worked correctly for me. It is much easier to set a widget script in your widget in "OnOpen". public handler OnOpen() ... post "if the script of me is empty then set script of me to " & myScript() end handler handler myScript () returns String --> use \q for quote, \n...
by PaulDaMacMan
Thu Sep 10, 2020 6:28 pm
Forum: LiveCode Builder
Topic: What's the best way to force-trigger OnGeometryChanged() in Widget from LCB?
Replies: 3
Views: 147

Re: What's the best way to force-trigger OnGeometryChanged() in Widget from LCB?

It sounds like you just need to have an internal handler which is called in OnGeometryChanged() or your property setter handler. Ger...duhhh! Yes, I should've thought of that! There I go again making things way more complicated then it needs to be! I guess you could just try calling OnGeometryChang...
by PaulDaMacMan
Thu Sep 10, 2020 5:46 pm
Forum: LiveCode Builder
Topic: What's the best way to force-trigger OnGeometryChanged() in Widget from LCB?
Replies: 3
Views: 147

What's the best way to force-trigger OnGeometryChanged() in Widget from LCB?

The title says it all... What's the best way to force-trigger OnGeometryChanged() in Widget from LCB? So I've made a bunch of progress on my Piano Widget but hit another limitation, the doesn't seem to be any OnGeometryChanged() equivalent of "redraw all" that triggers OnPaint()'s handler. I have at...
by PaulDaMacMan
Thu Sep 10, 2020 5:28 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Android Event Listener v1.0.0 - find out when your app is put in the background!
Replies: 13
Views: 484

Re: Android Event Listener v1.0.0 - find out when your app is put in the background!

It's now on the extension store so you can download it and give it a shot! Naturally, for something this good, all I'm asking for is $1,000,000,000 per download, which I think is a pretty reasonable price for it :) Hey man, great to see you got it working! It would be helpful to others trying to ge...
by PaulDaMacMan
Wed Sep 09, 2020 6:15 am
Forum: LiveCode Builder
Topic: Composed Widgets limitations
Replies: 15
Views: 889

Re: Composed Widgets limitations

Not sure about that. Shouldn't there be a mouseEnter() after the mouseLeave() at line 341? Otherwise it looks like the event_mfocus() just returns True and we're done. Lines 364-366 look like they're doing the right thing, but only if the mouse isn't already down. I'd add a mouseEnter(m_mouse_focus...
by PaulDaMacMan
Wed Sep 09, 2020 6:02 am
Forum: LiveCode Builder
Topic: Trying to wrap my head around LCB
Replies: 28
Views: 1009

Re: Trying to wrap my head around LCB

Also, as a side note, if the library is calling for a certain handler when paused/resumed using post "PausedHandler" or whatever, but that handler doesn't exist, will it error out and stop working? Or just not do anything about it and continue on its way? Edit: So, I've found out it errors out. Wha...
by PaulDaMacMan
Tue Sep 08, 2020 1:36 am
Forum: LiveCode Builder
Topic: Trying to wrap my head around LCB
Replies: 28
Views: 1009

Re: Trying to wrap my head around LCB

something wrong because it doesn't work on the handlers I want them to (like the OnOpen handler from the AndroidRegisterLifecycleListener). Instead it works on made handlers to run them and make them run something else in LCS, but no matter what I do, I can't quite figure out how to make it run the...
by PaulDaMacMan
Tue Sep 08, 2020 1:02 am
Forum: LiveCode Builder
Topic: Trying to wrap my head around LCB
Replies: 28
Views: 1009

Re: Trying to wrap my head around LCB

I want to run a handler in LCS instead. Any ideas on how I can go about doing that? Yes, I answered that with this: post "myAndroidSuspend" with [pWhateverParamA, pWhateverParamB] That would "post" the message "myAndroidSuspend" back to the LC Script engine along with the parameters pWhateverParamA...
by PaulDaMacMan
Mon Sep 07, 2020 1:30 am
Forum: LiveCode Builder
Topic: Trying to wrap my head around LCB
Replies: 28
Views: 1009

Re: Trying to wrap my head around LCB

Oh never mind, it looks like they've already created an LCB module with bindings for that stuff, called "Android Utilities", but I don't know how to use it, sorry.
by PaulDaMacMan
Mon Sep 07, 2020 1:09 am
Forum: LiveCode Builder
Topic: Trying to wrap my head around LCB
Replies: 28
Views: 1009

Re: Trying to wrap my head around LCB

I haven't done much with LiveCode Builder targeted at Android, but I do know that you need to make a LCB FFI (Foreign Function Interface) binding strings to hook into OS APIs, and that would look something like this for binding to java JNI Android: private foreign handler _JNI_EngineServiceListener(...

Go to advanced search