Re: Webview scrolling

2021-10-08 Thread Brian Milby via use-livecode
Could you detect the keyboard being shown and resize the web view? Sent from my iPad > On Oct 8, 2021, at 9:21 PM, J. Landman Gay via use-livecode > wrote: > > I told a web designer I'd ask here to see if anyone has ideas. I'm > displaying a web page with a form in a browser widget. On

Webview scrolling

2021-10-08 Thread J. Landman Gay via use-livecode
I told a web designer I'd ask here to see if anyone has ideas. I'm displaying a web page with a form in a browser widget. On Android, when I tap into one of the lower form fields, the browser content does not scroll up and the keyboard covers the field you're trying to type into. There are two

RE: Keep stack proportions when resizing

2021-10-08 Thread Ralph DiMola via use-livecode
resizeStack has 4 parameters that can be very useful. resizeStack pNewWidth, pNewHeight, pOldWidth, pOldHeight Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On

Re: Keep stack proportions when resizing

2021-10-08 Thread Sean Cole (Pi) via use-livecode
on resizeStack send "ratioSet" to me in 0.01 sec end resizeStack on ratioSet lock screen put the topleft of this stack into tTL set the width of this stack to the height of me * 1.78 -- Ratio 16:9 set the topleft of this stack to tTL unlock screen end ratioSet

Re: Keep stack proportions when resizing

2021-10-08 Thread Richard Gaskin via use-livecode
I had a similar request from a client a few years ago. We couldn't find any apps from the 21st century that do that, so instead we opted for what we see in apps from Apple and many others: We leave the user in control of their desired window size, and adjust our media in the content region

Re: Keep stack proportions when resizing

2021-10-08 Thread Peter Bogdanoff via use-livecode
Thanks Devin, I’ll try these out. I’m seeing that the resizing process is not going to be visually smooth, so I’m content at present to have something that does the job in chunks or at the end of the resize. Peter > On Oct 8, 2021, at 4:56 PM, Devin Asay via use-livecode > wrote: > >

Re: Keep stack proportions when resizing

2021-10-08 Thread Devin Asay via use-livecode
Peter, I asked this question several years ago and what I gathered is that it’s not easy because window resizing is under the control of the operating system, and LiveCode can’t really override it. My attempts were not completely satisfactory: I have a stack that I want to constrain to a 4:3

Re: Stack with the same name loop

2021-10-08 Thread Mark Wieder via use-livecode
On 10/8/21 8:24 AM, Bob Sneidar via use-livecode wrote: Where did you find this script? I am pondering adding this to my "scripts to replace when I download a new version" list. It's in revbackscriptlibrary.livecodescript. Here's an improved version that avoids that double cancel. on

Keep stack proportions when resizing

2021-10-08 Thread Peter Bogdanoff via use-livecode
Does anyone have a script to keep a stack’s proportions constant when the user is changing the stack size by dragging the lower right corner? This is a stack with a control containing a video or image. I’ve used the geometry manager for the objects within the stack but the stack itself needs to

Re: Stack with the same name loop

2021-10-08 Thread Mark Smith via use-livecode
Hi Jacque, Somewhere back in my history I learned not to copy “open” files in case some important bit of information was just waiting for the file to be properly closed. Given the number of times you have probably done this, I can assume LC is not leaving the copied file in an incomplete

Re: Stack with the same name loop

2021-10-08 Thread Pi Digital via use-livecode
> On 8 Oct 2021, at 16:08, J. Landman Gay via use-livecode > wrote: > > Actually I never quit LC. I duplicate the file in Finder and then rename the > one I was working on, which is still open in memory. > > I don't often use Save As but when I do I don't see a second copy of the > stack.

RE: On the subject of things with the same short name... ('identical' groups which behave differently)

2021-10-08 Thread Jim Lambert via use-livecode
> Jacque wrote: > And then there's "this me", which still tickles me. "This me" could be a quote from that Scottish author's tale The Strange Case of Dr. Jekyll and Mr. Hyde. ;) Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: On the subject of things with the same short name... ('identical' groups which behave differently)

2021-10-08 Thread David V Glasgow via use-livecode
I don’t know what my wife is complaining about. It IS all about me! > On 8 Oct 2021, at 4:37 pm, Bob Sneidar via use-livecode > wrote: > > For the sake of clarity, in retrospect it may have been better to use This > Me, That Me, The Other Me, and perhaps Not Me. :-) > > Bob S > > >> On

Re: On the subject of things with the same short name... ('identical' groups which behave differently)

2021-10-08 Thread Bob Sneidar via use-livecode
For the sake of clarity, in retrospect it may have been better to use This Me, That Me, The Other Me, and perhaps Not Me. :-) Bob S > On Oct 8, 2021, at 08:28 , J. Landman Gay via use-livecode > wrote: > > And then there's "this me", which still tickles me. > > -- > Jacqueline Landman Gay

Re: Stack with the same name loop

2021-10-08 Thread Bob Sneidar via use-livecode
Following convention, the way Word handles Save As is what the majority of apps do. But I have seen an app where save as creates a new file on disk but does NOT open it in memory, completely defying convention! Add to that the confusion Apple introduced with some of their apps, like TextEdit

Re: On the subject of things with the same short name... ('identical' groups which behave differently)

2021-10-08 Thread Bob Sneidar via use-livecode
Even better, use the long id of me to precicely identify the object. There are occassions where the stack you think is the topstack, isn't. Bob S > On Oct 8, 2021, at 04:16 , David V Glasgow via use-livecode > wrote: > > Ah! (light comes on). Thanks Sean. So ‘me’ is actually more

Re: On the subject of things with the same short name... ('identical' groups which behave differently)

2021-10-08 Thread J. Landman Gay via use-livecode
And then there's "this me", which still tickles me. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 8, 2021 9:51:34 AM "Sean Cole \(Pi\) via use-livecode" wrote: 'me' is also useful in behaviors as it refers, not to the

Re: Stack with the same name loop

2021-10-08 Thread Bob Sneidar via use-livecode
Where did you find this script? I am pondering adding this to my "scripts to replace when I download a new version" list. Bob S > On Oct 7, 2021, at 18:51 , Mark Wieder via use-livecode > wrote: > > On 10/7/21 1:08 PM, Mark Wieder via use-livecode wrote: >> How about a fourth option to

Re: Stack with the same name loop

2021-10-08 Thread Bob Sneidar via use-livecode
> On Oct 7, 2021, at 14:47 , Mark Wieder via use-livecode > wrote: > > although there seem to be extra calls to "delete stack" which still don't > give me warm fuzzies. I do what everyone else does when that dialog appears: > panic, quit and restart. :-) Do you have some hidden camera in my

Re: Stack with the same name loop

2021-10-08 Thread J. Landman Gay via use-livecode
Actually I never quit LC. I duplicate the file in Finder and then rename the one I was working on, which is still open in memory. I don't often use Save As but when I do I don't see a second copy of the stack. But I did notice once that when manually removing a stack from memory it doesn't

Re: On the subject of things with the same short name... ('identical' groups which behave differently)

2021-10-08 Thread Sean Cole (Pi) via use-livecode
Hi David, It seems confusing and I see how. Me and This are really useful and powerful keywords. And that is the point in this example. 'The rect of me' uses it as a keyword referring to itself. It knows then not to look any further and applies it to itself. But once you add 'the long name of'

Re: Stack with the same name loop

2021-10-08 Thread Mark Smith via use-livecode
> On Oct 7, 2021, at 5:28 PM, Mark Waddingham via use-livecode > wrote: > > As I said, this isn't anything to do with 'Save As' specifically - 'Save As' > is doing precisely what you would expect... i.e. Saving the stackfile to a > different file, and just as when you do that in any other

Re: On the subject of things with the same short name... ('identical' groups which behave differently)

2021-10-08 Thread David V Glasgow via use-livecode
Ah! (light comes on). Thanks Sean. So ‘me’ is actually more specific than it would seem! I avoided ‘me' because it returns the short name of an object (of which there are several), and went for the long name of me because it is unique. Just to be clear, what you are saying is that when LC

Re: On the subject of things with the same short name... ('identical' groups which behave differently)

2021-10-08 Thread Sean Cole (Pi) via use-livecode
The message path looks for the first instance it finds with a given name. As your script is within the group itself, it would be easier (lazier ;) ) to reference to each group as 'me' eg lock screen for visual effect in rect (the rect of me) rather than 'the rect of the long name of me' Sean On

On the subject of things with the same short name... ('identical' groups which behave differently)

2021-10-08 Thread David Glasgow via use-livecode
Being essentially a lazy and a sloppy programmer, I made a group which contained a script that caused the group to do what I wanted. Then I copied it again and again, and grouped the resultant groups. Rather than adapting the script to be located on the card I just left several identical