Search found 417 matches

by bwmilby
Thu Jul 21, 2022 5:16 pm
Forum: Talking LiveCode
Topic: Why is the geometry manager still borked in 2021?!
Replies: 93
Views: 42269

Re: Why is the geometry manager still borked in 2021?!

In my cursory look at the new layout module I think it is more in line with how you think about layout on the web. GM suffers from not handling containers well and does not do flow/wrapping of controls. The glaring GM bug is probably within the community’s ability to suggest a fix. I’ve looked and f...
by bwmilby
Fri Jul 15, 2022 11:31 pm
Forum: Internet
Topic: Post Form Data to Browser Widget
Replies: 15
Views: 8216

Re: Post Form Data to Browser Widget

I’ve done something along the same conceptual lines (MS Access controlling a web site in IE). My approach was to abstract as much as possible and use simple commands to do things like setValue(pObjectRef, pObjectValue) and clickItem(pObjectRef). Should be able to do something similar where the handl...
by bwmilby
Fri Jun 03, 2022 12:00 pm
Forum: Talking LiveCode
Topic: Your computer has run out of memory - yikes!!!
Replies: 13
Views: 4256

Re: Your computer has run out of memory - yikes!!!

“By reference” means that instead of making a copy, that actual variable “reference” (pointer in other languages) is used. This allows changes to the variable inside the handler to be retained. The “@“ in the handler definition is what makes the variable “by reference”. See “pass by reference” in th...
by bwmilby
Fri Jun 03, 2022 2:51 am
Forum: Talking LiveCode
Topic: Your computer has run out of memory - yikes!!!
Replies: 13
Views: 4256

Re: Your computer has run out of memory - yikes!!!

I would suggest changing "buildCommand" to a handler instead of a function. The additional churn of using both a by reference variable but then copying and assigning it probably isn't that good. Since the engine does use "copy on write", memory use may not be an issue but the constant adding/removin...
by bwmilby
Wed Jun 01, 2022 1:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to "re-resize" Stack (elements)
Replies: 37
Views: 11657

Re: How to "re-resize" Stack (elements)

Profiles may be another option although the IDE does not really support their use in the GUI. You didn’t mention if you tried the scale option.
by bwmilby
Tue May 31, 2022 8:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to "re-resize" Stack (elements)
Replies: 37
Views: 11657

Re: How to "re-resize" Stack (elements)

@Richard You are correct in general, but for this specific use case I think the solution needed is just being able to shrink due to the pixel size difference between monitors.
by bwmilby
Tue May 31, 2022 7:18 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to "re-resize" Stack (elements)
Replies: 37
Views: 11657

Re: How to "re-resize" Stack (elements)

Look up “scaleFactor” in the dictionary. That may be what you are after.
by bwmilby
Sun May 29, 2022 4:56 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to "re-resize" Stack (elements)
Replies: 37
Views: 11657

Re: How to "re-resize" Stack (elements)

Is it a bug or a feature that it is not possible to scale AND position the element? It is a design decision. In one direction (H or V), you can either position or scale. You can have a single object that scales one direction and positions on the other. stam's example does that for the line. One oth...
by bwmilby
Tue May 24, 2022 2:46 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: recursion
Replies: 18
Views: 5476

Re: recursion

You could shave a bit of time by using a script local and splitting the data into an array. Then accessing each line would be constant time, but probably still noticeable. Somewhere at the top of your code (outside any handler): local sData, sLine Someone in the mouseUp that starts everything: put f...
by bwmilby
Mon May 23, 2022 10:52 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: recursion
Replies: 18
Views: 5476

Re: recursion

I think you should be able to do this without recursion. You just need to keep track of the folder depth at any time and account for changing levels.
by bwmilby
Thu May 12, 2022 3:29 pm
Forum: Android Deployment
Topic: Deploy several stacks as an application to android
Replies: 34
Views: 10443

Re: Deploy several stacks as an application to android

Should be able to use special folder path in either environment.
by bwmilby
Mon Apr 25, 2022 10:36 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Export long texts to PDF?
Replies: 40
Views: 9864

Re: Export long texts to PDF?

I also find doing a search in Atom useful, but the main reason I externalize my stack’s scripts is for version tracking. Git makes it very easy to see the changes to scripts over time. ScriptTracker provides this to me without the need to convert everything to real script only stacks (the files coul...
by bwmilby
Fri Apr 01, 2022 2:54 pm
Forum: Announcements
Topic: [ANN] VSCode extension for Livecode
Replies: 14
Views: 8464

Re: [ANN] VSCode extension for Livecode

I had it working on my previous company laptop with Atom. Pretty much the same as on the Mac though. Just download the server binaries for Windows and enter the path (I’ve only done it in Atom).
by bwmilby
Fri Apr 01, 2022 2:24 pm
Forum: Announcements
Topic: [ANN] VSCode extension for Livecode
Replies: 14
Views: 8464

Re: [ANN] VSCode extension for Livecode

The server component is a separate download. The community version should work fine for linting (at least until the new LC 10 syntax is used).
by bwmilby
Sat Mar 12, 2022 11:51 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Data added to Array lost 3 commands deep
Replies: 15
Views: 6783

Re: Data added to Array lost 3 commands deep

This the root of the problem: command Routine_B InData,aOutputData_A @OutputData_B You are shadowing your script local via the function call, so the data is not being saved. In Routine_B, aOutputData_A is a copy of what is passed in (LC does a copy on write for parameters not passed by reference) Yo...

Go to advanced search