Re: Mobile Scroller

2021-06-19 Thread Tom Glod via use-livecode
Hi Ralph... Thanks for those tips I will test to see if I can make it
work.

On Fri, Jun 18, 2021, 10:23 PM Ralph DiMola via use-livecode, <
use-livecode@lists.runrev.com> wrote:

> Tom,
>
> Orientationchanged happens before the screen is actually rotated. This is
> why your scroll regions are not correct. Put your code in the resizestack
> handler. I delete and recreate the scroller, I don't remember if that is
> needed or I just started doing it that way. Scrollers work for me on both
> iOS and Android. If you are able to come up with your magic numbers that
> will make it scroll to the same place you must do a send in time for the  2
> "mobileControlSet"s for both vScroll and hScroll. I use 100ms
>
> That being said although all my apps support both portrait and landscape I
> use Orientationchanged very very rarely but when you need it it's
> invaluable.
>
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
>
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
> Behalf Of Tom Glod via use-livecode
> Sent: Friday, June 18, 2021 9:23 PM
> To: How to use LiveCode
> Cc: Tom Glod
> Subject: Re: Mobile Scroller
>
> Ralph, it's in the orientationchanged handler
>
> Brian Thanks. !!!
>
>
> On Fri, Jun 18, 2021, 4:18 PM Brian Milby via use-livecode, <
> use-livecode@lists.runrev.com> wrote:
>
> > I have this working in SivaSiva for the stories module on Android.  It
> > locks up on iOS so I have rotation disabled for now.  In my use case,
> > the group is essentially the full screen with an image that is being
> > moved around.  I’ll try to find the specific scripts tonight.
> >
> > Thanks,
> > Brian
> >
> > Sent from my iPhone
> >
> > > On Jun 18, 2021, at 3:06 PM, Ralph DiMola via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > > Tom,
> > >
> > > What handler are you doing this in?
> > >
> > > Ralph DiMola
> > > IT Director
> > > Evergreen Information Services
> > > rdim...@evergreeninfo.net
> > >
> > > -Original Message-
> > > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
> > Behalf
> > > Of Tom Glod via use-livecode
> > > Sent: Friday, June 18, 2021 2:51 PM
> > > To: How to use LiveCode
> > > Cc: Tom Glod
> > > Subject: Mobile Scroller
> > >
> > > Hi Folks,
> > >
> > > I implemented a MobileControl "Scroller" to scroll a group.  Works
> great.
> > > However when I change the orientation, it no longer works correctly.
> > >
> > >
> > >   - I tried to just update the properties relating to the rect
> > >   - deleting / recreating
> > >
> > >
> > > mobileControlSet "CardContentScroller","visible",true
> > >
> > > mobileControlSet "CardContentScroller","rect",the rect of *group*
> > > "Card Content" of this card of me
> > >
> > > *put* 0,0,the width of *group* "Card Content" of this card of me,the
> > > formattedHeight of *group* "Card Content" of this card of me into
> > > tContentRect
> > >
> > > mobileControlSet "CardContentScroller","contentRect",tContentRect
> > >
> > > mobileControlSet "CardContentScroller","vIndicator",true
> > >
> > >
> > > but it still isn't updating properly.
> > > Not sure what i'm doing wrong.
> > >
> > > The code runs on the orientationChanged message
> > >
> > > Please help.
> > >
> > > Thanks,
> > >
> > > --
> > > Tom Glod
> > > Founder & Developer
> > > MakeShyft R.D.A (www.makeshyft.com)
> > > Mobile:647.562.9411
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription
> > > preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > >
> > >
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe 

Re: Open a folder on the desktop from a LiveCode app

2021-06-19 Thread Klaus major-k via use-livecode
Hi Paul,

> Am 19.06.2021 um 20:48 schrieb Paul Dupuis via use-livecode 
> :
> 
> What is the "best" way (or any way) to open a folder on the Windows desktop 
> from a Livecode script.
> 
> For example:
> 
> on openFolder pPath -- where pPath is the path and name to a document (file)
>   set itemDel to slash
>   delete last item of pPath -- leaves the the path to the folder containing 
> the document
>   -- now, how do I open this on the desktop (i.e in Explorer)?

launch document pPath
## :-)

> end openFolder

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


AW: Open a folder on the desktop from a LiveCode app

2021-06-19 Thread Paul Dupuis via use-livecode

Thank you Marty and Mathias

I figured there was a simple way, but must have missed anything about 
folders under the Launch command in the dictionary. All set!




On 6/19/2021 2:48 PM, Paul Dupuis via use-livecode wrote:
What is the "best" way (or any way) to open a folder on the Windows 
desktop from a Livecode script.


For example:

on openFolder pPath -- where pPath is the path and name to a document 
(file)

  set itemDel to slash
  delete last item of pPath -- leaves the the path to the folder 
containing the document

  -- now, how do I open this on the desktop (i.e in Explorer)?


end openFolder


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Open a folder on the desktop from a LiveCode app

2021-06-19 Thread matthias rebbe via use-livecode
launch document tPathToFolder 

would also work

Regards
Matthias


> Am 19.06.2021 um 20:48 schrieb Paul Dupuis via use-livecode 
> :
> 
> What is the "best" way (or any way) to open a folder on the Windows desktop 
> from a Livecode script.
> 
> For example:
> 
> on openFolder pPath -- where pPath is the path and name to a document (file)
>   set itemDel to slash
>   delete last item of pPath -- leaves the the path to the folder containing 
> the document
>   -- now, how do I open this on the desktop (i.e in Explorer)?
> 
> 
> end openFolder
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Open a folder on the desktop from a LiveCode app

2021-06-19 Thread Marty Knapp via use-livecode
I use:

launch url ("file:" & tPathToFolder)

—Marty

> On Jun 19, 2021, at 11:48 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> What is the "best" way (or any way) to open a folder on the Windows desktop 
> from a Livecode script.
> 
> For example:
> 
> on openFolder pPath -- where pPath is the path and name to a document (file)
>   set itemDel to slash
>   delete last item of pPath -- leaves the the path to the folder containing 
> the document
>   -- now, how do I open this on the desktop (i.e in Explorer)?
> 
> 
> end openFolder
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Open a folder on the desktop from a LiveCode app

2021-06-19 Thread Paul Dupuis via use-livecode
What is the "best" way (or any way) to open a folder on the Windows 
desktop from a Livecode script.


For example:

on openFolder pPath -- where pPath is the path and name to a document (file)
  set itemDel to slash
  delete last item of pPath -- leaves the the path to the folder 
containing the document

  -- now, how do I open this on the desktop (i.e in Explorer)?


end openFolder


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode