Search found 427 matches

by bwmilby
Fri May 10, 2024 2:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: OpenCard to control?
Replies: 34
Views: 1122

Re: OpenCard to control?

OK, I think we're on the same page... just saying the same thing differently ;) That being said... how would you like to see that inset graph changed? the latest version seems fine to me, and not really saying anything different from what you say. I agree, the flow for behaviors is a bit complicate...
by bwmilby
Thu May 09, 2024 6:34 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: OpenCard to control?
Replies: 34
Views: 1122

Re: OpenCard to control?

My comments about the message path are a paraphrase from the documentation: A before handler allows developers to produce behavior scripts which can handle messages sent to a control without having any effect on the message path, unlike front and back scripts. So, yes, the message does travel a slig...
by bwmilby
Thu May 09, 2024 4:28 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: OpenCard to control?
Replies: 34
Views: 1122

Re: OpenCard to control?

Can you please elaborate on That side route should be “not in” but before/after still will get called. I'm not sure I understand this? I now realise the right side-arm ('Handled in object 1') is wrong and should be removed, not sure if that's what you mean? Yes the 'before' handler in the behaviour...
by bwmilby
Thu May 09, 2024 3:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: OpenCard to control?
Replies: 34
Views: 1122

Re: OpenCard to control?

Let me reply with code. Consider the following code that will be in each of 3 buttons and the card: before mouseup put "before mouseup" && short name of me && short name of this me & lf after fld "Log" pass mouseup end mouseup on mouseup put "on mouseup" && short name of me && short name of this me ...
by bwmilby
Wed May 08, 2024 2:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: OpenCard to control?
Replies: 34
Views: 1122

Re: OpenCard to control?

Hi Brian, What do you think of having this as an inset graph to accompany the main graph? Obviously open to corrections... I like the idea. I actually threw a stack together last night to test/verify flow. That side route should be “not in” but before/after still will get called. If you pass in the...
by bwmilby
Wed May 08, 2024 1:41 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: OpenCard to control?
Replies: 34
Views: 1122

Re: OpenCard to control?

I like having them in the muted color like your last one. I think an info box at the bottom with some of the caveats that should be considered would work. Behaviors support the before/after control structures which allows developers to produce behavior scripts which can handle messages sent to a con...
by bwmilby
Wed May 08, 2024 12:29 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Scaling on Mobile
Replies: 4
Views: 216

Re: Scaling on Mobile

Take a look at my project here:
https://github.com/bwmilby/mobileDemo

You may just need to try setting the rect of the stack and not the height/width. That is how I changed stack size in the above project.
by bwmilby
Wed May 08, 2024 12:04 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: OpenCard to control?
Replies: 34
Views: 1122

Re: OpenCard to control?

I’m not sure you can really represent behaviors cleanly like that. They don’t sit where they are drawn completely. In addition to catching messages that are not present in the object you can also have “before” and “after” handlers that fire before/after the handler in the object. One other caution -...
by bwmilby
Tue May 07, 2024 7:41 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to honor "Auto-Rotate Off" on Android
Replies: 9
Views: 285

Re: How to honor "Auto-Rotate Off" on Android

I’ll need to go back and look at the code in SivaSiva. I guess that app locks the orientation much more so it isn’t noticed as much. Most of it locks to portrait or landscape. I only have an old Pixel to test Android and have not built for it in quite a while. The only rotation issue I recall is the...
by bwmilby
Tue May 07, 2024 4:34 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to honor "Auto-Rotate Off" on Android
Replies: 9
Views: 285

Re: How to honor "Auto-Rotate Off" on Android

Simplest way is to just use the resizeStack message to make any geometry changes. If rotation is locked on the device you should not get a resizeStack message.
by bwmilby
Wed May 01, 2024 1:29 am
Forum: Using Externals
Topic: Tree View widget: scrolling on mobile
Replies: 8
Views: 190635

Re: Tree View widget: scrolling on mobile

I started a reply on my phone Sunday morning and lost it when I hit submit. I apologize for the delay in my response. Here is a much simpler example stack: https://github.com/bwmilby/mobileDemo/tree/master The third card is the one with the tree widget. The resizeStack handler is the one that has th...
by bwmilby
Sat Apr 27, 2024 11:22 pm
Forum: Using Externals
Topic: Tree View widget: scrolling on mobile
Replies: 8
Views: 190635

Re: Tree View widget: scrolling on mobile

Here are the key handlers from that project (trimmed slightly): command createScroller pName local tRect deleteMobileControl pName -- delete any existing if not isMobile() then exit CreateScroller end if put (the rect of control pName) into tRect mobileControlCreate "scroller", pName mobileControlSe...
by bwmilby
Sat Apr 27, 2024 2:46 pm
Forum: Using Externals
Topic: Tree View widget: scrolling on mobile
Replies: 8
Views: 190635

Re: Tree View widget: scrolling on mobile

It wasn’t slow for me, but the tree was much smaller than 100 keys. You can see it in a live app in the App Store if you download SivaSiva and go to the Stories module. Even though that project is in hiatus the code is all available.
by bwmilby
Sat Apr 27, 2024 5:55 am
Forum: Using Externals
Topic: Tree View widget: scrolling on mobile
Replies: 8
Views: 190635

Re: Tree View widget: scrolling on mobile

I think I had this pretty much sorted out in SivaSiva. I have not looked at the code in over a year, but the stories module behavior script and the mobile controller behavior script are the two key places. I'll try to provide some more helpful code references this weekend. The key difference is that...
by bwmilby
Mon Apr 22, 2024 2:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Saving as LiveCodeScript
Replies: 16
Views: 768

Re: Saving as LiveCodeScript

It is certainly possible to write a script that will export a stack into a script only form. Certain things would make the process more complex. If you count on object IDs being a certain value for example. Another issue is any binary objects (images…) - do you want to reference files or include the...

Go to advanced search