Re: Datagrid error...

2018-12-18 Thread Bob Sneidar via use-livecode
Whoops! Not true. Just disable the datagrid group. 

Bob S


> On Dec 18, 2018, at 16:34 , Bob Sneidar via use-livecode 
>  wrote:
> 
> There is a dgProp to disable interaction with the datagrid. 
> 
> Bob S
> 
> 
>> On Dec 18, 2018, at 14:11 , Trevor DeVore via use-livecode 
>>  wrote:
>> 
>> On Tue, Dec 18, 2018 at 3:11 PM Paul Dupuis via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> 
>>> Does the idea to close the report display window if and when the
>>> datagrid is being updated make sense as a precaution? We can always lock
>>> the screen, close the window, update the datagrid contents, reopen the
>>> window and unlock the screen to minimize visible changes to the user.
>>> 
>> 
>> I don't know that you need to close down the window. What about setting the
>> dgData and dgColumns to empty so that the user can't interact with it while
>> updating? Or overlay a semi-transparent graphic over the top that eats
>> mouse events? Since you are upgrading to 9.0.2 you could also use the
>> Spinner widget placed in the middle of the Data Grid to show that you are
>> crunching some data.
>> 
>> -- 
>> Trevor DeVore
> 
> 
> ___
> 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: Datagrid error...

2018-12-18 Thread Bob Sneidar via use-livecode
There is a dgProp to disable interaction with the datagrid. 

Bob S


> On Dec 18, 2018, at 14:11 , Trevor DeVore via use-livecode 
>  wrote:
> 
> On Tue, Dec 18, 2018 at 3:11 PM Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> 
>> Does the idea to close the report display window if and when the
>> datagrid is being updated make sense as a precaution? We can always lock
>> the screen, close the window, update the datagrid contents, reopen the
>> window and unlock the screen to minimize visible changes to the user.
>> 
> 
> I don't know that you need to close down the window. What about setting the
> dgData and dgColumns to empty so that the user can't interact with it while
> updating? Or overlay a semi-transparent graphic over the top that eats
> mouse events? Since you are upgrading to 9.0.2 you could also use the
> Spinner widget placed in the middle of the Data Grid to show that you are
> crunching some data.
> 
> -- 
> Trevor DeVore


___
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: Can't Submit App to iTunes

2018-12-18 Thread Colin Holgate via use-livecode
iPhone 5 support requires default-5...@2x.png. It is a portrait image 
(640x1136), but it’s needed for landscape apps too. It’s what Apple uses to 
decide that you want to use the extra space, as opposed to having an iPhone 4 
app that is centered with black borders.

For a landscape app it would be your 16:9 splash screen image rotated clockwise 
90 degrees.
___
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: Map Widget with Custom Marker

2018-12-18 Thread hh via use-livecode
> Brian M. wrote:
> Try this one (similar concept)
> http://forums.livecode.com/viewtopic.php?p=173867#p173867

This will not work. I just tried:
The map widget updates in short intervals like a movie.
Even a native button disappears.
So the overlaying native object should also use a fast update like

http://forums.livecode.com/viewtopic.php?p=172789#p172789

which forces a fast update by playing a *non-existent movie.

Another possibility with the map widget itself is to make the custom
marker using polylines. (See property polylines of dictionary/map widget).

Polylines[i]["ccordinates"] are a simple list of coordinate points,
separated by comma (not by cr).
So one could try to exercise that with an ordinary polygon graphic over
a static map (an image).

___
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: Map Widget with Custom Marker

2018-12-18 Thread Brian Milby via use-livecode
Strange.  Try this one (similar concept)
http://forums.livecode.com/viewtopic.php?p=173867#p173867

Thanks,
Brian
On Dec 18, 2018, 4:15 PM -0600, Scott Rossi via use-livecode 
, wrote:
> Thank you for the response, but getting a forum error 172729 doesn't
> exist(?).
>
> On Tue, Dec 18, 2018 at 2:09 PM Brian Milby via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > It is a native layer so it the only LC object that would work would be
> > another browser widget. There was a demo a while back of doing that.
> >
> > http://forums.livecode.com/viewtopic.php?p=172729#p172729
> >
> > Thanks,
> > Brian
> > On Dec 18, 2018, 3:52 PM -0600, Scott Rossi via use-livecode <
> > use-livecode@lists.runrev.com>, wrote:
> > > Hi All:
> > >
> > > Wondering if it's possible to use a custom marker with the map widget. I
> > > want to continuously track and show the user's location with a custom
> > icon,
> > > but can't find any way to overlay an image on the widget, as it seems to
> > be
> > > the equivalent of a web view.
> > >
> > > Thanks for any suggestions.
> > > ___
> > > 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

Re: Datagrid error...

2018-12-18 Thread Paul Dupuis via use-livecode

On 12/18/2018 5:11 PM, Trevor DeVore via use-livecode wrote:

On Tue, Dec 18, 2018 at 3:11 PM Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


Does the idea to close the report display window if and when the
datagrid is being updated make sense as a precaution? We can always lock
the screen, close the window, update the datagrid contents, reopen the
window and unlock the screen to minimize visible changes to the user.


I don't know that you need to close down the window. What about setting the
dgData and dgColumns to empty so that the user can't interact with it while
updating? Or overlay a semi-transparent graphic over the top that eats
mouse events? Since you are upgrading to 9.0.2 you could also use the
Spinner widget placed in the middle of the Data Grid to show that you are
crunching some data.


Great suggestions. Thank you!



___
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: Map Widget with Custom Marker

2018-12-18 Thread Scott Rossi via use-livecode
Thank you for the response, but getting a forum error 172729 doesn't
exist(?).

On Tue, Dec 18, 2018 at 2:09 PM Brian Milby via use-livecode <
use-livecode@lists.runrev.com> wrote:

> It is a native layer so it the only LC object that would work would be
> another browser widget.  There was a demo a while back of doing that.
>
> http://forums.livecode.com/viewtopic.php?p=172729#p172729
>
> Thanks,
> Brian
> On Dec 18, 2018, 3:52 PM -0600, Scott Rossi via use-livecode <
> use-livecode@lists.runrev.com>, wrote:
> > Hi All:
> >
> > Wondering if it's possible to use a custom marker with the map widget. I
> > want to continuously track and show the user's location with a custom
> icon,
> > but can't find any way to overlay an image on the widget, as it seems to
> be
> > the equivalent of a web view.
> >
> > Thanks for any suggestions.
> > ___
> > 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


Re: Datagrid error...

2018-12-18 Thread Trevor DeVore via use-livecode
On Tue, Dec 18, 2018 at 3:11 PM Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> Does the idea to close the report display window if and when the
> datagrid is being updated make sense as a precaution? We can always lock
> the screen, close the window, update the datagrid contents, reopen the
> window and unlock the screen to minimize visible changes to the user.
>

I don't know that you need to close down the window. What about setting the
dgData and dgColumns to empty so that the user can't interact with it while
updating? Or overlay a semi-transparent graphic over the top that eats
mouse events? Since you are upgrading to 9.0.2 you could also use the
Spinner widget placed in the middle of the Data Grid to show that you are
crunching some data.

-- 
Trevor DeVore
CTO - ScreenSteps
www.screensteps.com
___
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: Map Widget with Custom Marker

2018-12-18 Thread Brian Milby via use-livecode
It is a native layer so it the only LC object that would work would be another 
browser widget.  There was a demo a while back of doing that.

http://forums.livecode.com/viewtopic.php?p=172729#p172729

Thanks,
Brian
On Dec 18, 2018, 3:52 PM -0600, Scott Rossi via use-livecode 
, wrote:
> Hi All:
>
> Wondering if it's possible to use a custom marker with the map widget. I
> want to continuously track and show the user's location with a custom icon,
> but can't find any way to overlay an image on the widget, as it seems to be
> the equivalent of a web view.
>
> Thanks for any suggestions.
> ___
> 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

Map Widget with Custom Marker

2018-12-18 Thread Scott Rossi via use-livecode
Hi All:

Wondering if it's possible to use a custom marker with the map widget.  I
want to continuously track and show the user's location with a custom icon,
but can't find any way to overlay an image on the widget, as it seems to be
the equivalent of a web view.

Thanks for any suggestions.
___
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


BrowserSnapshot_v015

2018-12-18 Thread hh via use-livecode
BrowserSnapshot updated to v015:
• Removed a bug.
• Added also scrolling snapshots when the viewport is horizontally clipping.
• There is also an example for how to hide overlays (menu, chat, campaign) in
pages like livecode.com (test livecode.com after the page is fully loaded).

**This is now with all my tests better than using the javascript library.**

> BrowserSnapshot makes an image of the *whole* HTML content of a browser widget
> (while waiting for printToPdf from the browser widget in 9.x).
> The image may get a height of several thousands pixels.
> 
> This is a pure LC Script solution:
> The widget is scrolled appropriate portions of the whole HTML page down and 
> right
> and a snapshot is made from these portions. Then the snapshots are merged 
> into ONE
> image of format PNG.
> 
> Download BrowserSnapshot from "Sample Stacks" or
> http://livecodeshare.runrev.com/stack/920/

___
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: Datagrid error...

2018-12-18 Thread Paul Dupuis via use-livecode

On 12/18/2018 11:16 AM, Trevor DeVore via use-livecode wrote:

Now, all of this leads me to the following questions –

1) Are you modifying the columns displayed in this Data Grid through code?
2) If so, is it possible that you are updating the columns in the Data Grid
while the user is interacting with it?



Wow. Seriously Trevor. Thank you!

It is possible the user could be interacting with the datagrid while a 
script is trying to update it. A report setting window allows the user 
to configure many many options for a "report". They then click Display 
and the report appears in another window in a datagrid (if 'Table' view 
is selected). They could change settings, click "Display" again and 
start scrolling or otherwise interacting with the previously displayed 
results when the script . Some reports are instantaneous, but some, 
depending on how much data the user has can take seconds to even many 
tens of minutes for our biggest data customers.


So, I gather it may be better to have the Report settings "Display" 
script close the report display window while updating it (if it is open) 
and then reopen it once the results are populated.


We have seen another behavior in our app where a user can start an 
operation (a script) that takes a while to run, switch to another 3rd 
party applications, and then back to a different Window in our App and 
we can get an execution error with the "object not found" because the 
previous script - still executing - was referencing objects in its 
window without using explicit object references and now the default 
window has changed.


I thought we have weeded any such relative object references out, but 
now I am wondering it one or more may still be present in our reporting 
code.


Does the idea to close the report display window if and when the 
datagrid is being updated make sense as a precaution? We can always lock 
the screen, close the window, update the datagrid contents, reopen the 
window and unlock the screen to minimize visible changes to the user.




___
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: Datagrid error...

2018-12-18 Thread JJS via use-livecode

ok thanks.

Op 18-12-2018 om 20:33 schreef Trevor DeVore via use-livecode:

On Tue, Dec 18, 2018 at 12:16 PM JJS via use-livecode <
use-livecode@lists.runrev.com> wrote:


quote"

   A `_ScrollListV` request sent in time might be
able to create such a scenario." end quote

Trevore is what you say not the same as what is written here:

https://forums.livecode.com/viewtopic.php?f=104=172021=73fc5b60aaa154dfddc7c723b563a370#p172019

although you figured it out technically.


Not necessarily. `_ScrollListV` is used regardless of the setting so it can
be called from a number of different code paths.



___
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: Can't Submit App to iTunes

2018-12-18 Thread Dan Friedman via use-livecode
Panos,

Yes, but I don't think it's all of them.   Here's what's there:

_CodeSignature
appicon60...@3x.png
AppIcon83.5x83.5@2x~ipad.png
Assets.car
ca-bundle.crt
default-3...@3x.png
default-4...@3x.png
default-ipadprolandsc...@2x.png
Default-Landscape.png
myApp
embedded.mobileprovision
Info.plist
PkgInfo
Sounds  //my included folder


-Dan

From: panagiotis merakos 
Date: Tuesday, December 18, 2018 at 12:54 PM
To: How to use LiveCode 
Cc: Dan Friedman 
Subject: Re: Can't Submit App to iTunes

Hello Dan,

If you right click on the .app bundle and choose "Show Package Contents", are 
the image files there?

Best Regards
Panos
--

On Tue, Dec 18, 2018 at 10:41 PM Dan Friedman via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:
Greetings!

I've never had this problem before… When I attempt to upload my app via the 
Application Loader, I get a number of errors:

ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone apps 
and app updates submitted must support the 4-inch display on iPhone 5 and must 
include a launch image referenced in the Info.plist under UILaunchImages with a 
UILaunchImageSize value set to {320, 568}. Launch images must be PNG files and 
located at the top-level of your bundle, or provided within each .lproj folder 
if you localize your launch images. Learn more about iPhone 5 support and app 
launch images by reviewing the 'iOS Human Interface Guidelines' at 
https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen.;

ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced 
under key 'CFBundleIcons': 'AppIcon60x60'"

ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an 
app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format 
for iOS versions >= 10.0."

ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an 
app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions 
>= 10.0."

All icons are included in the App Settings (and they are correct, I triple 
checked!).  Also, all Splash screens are included.  I did not include the 
Portrait splash screens as the app does not use portrait display.

Any thoughts?

LC Indy 9.0.2
iOS SDK 11.2
MacOS 10.12.6

-Dan
___
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: Can't Submit App to iTunes

2018-12-18 Thread panagiotis merakos via use-livecode
Hello Dan,

If you right click on the .app bundle and choose "Show Package Contents",
are the image files there?

Best Regards
Panos
--

On Tue, Dec 18, 2018 at 10:41 PM Dan Friedman via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Greetings!
>
> I've never had this problem before… When I attempt to upload my app via
> the Application Loader, I get a number of errors:
>
> ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone
> apps and app updates submitted must support the 4-inch display on iPhone 5
> and must include a launch image referenced in the Info.plist under
> UILaunchImages with a UILaunchImageSize value set to {320, 568}. Launch
> images must be PNG files and located at the top-level of your bundle, or
> provided within each .lproj folder if you localize your launch images.
> Learn more about iPhone 5 support and app launch images by reviewing the
> 'iOS Human Interface Guidelines' at
> https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen
> ."
>
> ERROR ITMS-90032: "Invalid Image Path - No image found at the path
> referenced under key 'CFBundleIcons': 'AppIcon60x60'"
>
> ERROR ITMS-90022: "Missing required icon file. The bundle does not contain
> an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png
> format for iOS versions >= 10.0."
>
> ERROR ITMS-90023: "Missing required icon file. The bundle does not contain
> an app icon for iPad of exactly '152x152' pixels, in .png format for iOS
> versions >= 10.0."
>
> All icons are included in the App Settings (and they are correct, I triple
> checked!).  Also, all Splash screens are included.  I did not include the
> Portrait splash screens as the app does not use portrait display.
>
> Any thoughts?
>
> LC Indy 9.0.2
> iOS SDK 11.2
> MacOS 10.12.6
>
> -Dan
> ___
> 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

Can't Submit App to iTunes

2018-12-18 Thread Dan Friedman via use-livecode
Greetings!

I've never had this problem before… When I attempt to upload my app via the 
Application Loader, I get a number of errors:

ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone apps 
and app updates submitted must support the 4-inch display on iPhone 5 and must 
include a launch image referenced in the Info.plist under UILaunchImages with a 
UILaunchImageSize value set to {320, 568}. Launch images must be PNG files and 
located at the top-level of your bundle, or provided within each .lproj folder 
if you localize your launch images. Learn more about iPhone 5 support and app 
launch images by reviewing the 'iOS Human Interface Guidelines' at 
https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen.;

ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced 
under key 'CFBundleIcons': 'AppIcon60x60'"

ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an 
app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format 
for iOS versions >= 10.0."

ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an 
app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions 
>= 10.0."

All icons are included in the App Settings (and they are correct, I triple 
checked!).  Also, all Splash screens are included.  I did not include the 
Portrait splash screens as the app does not use portrait display.

Any thoughts?

LC Indy 9.0.2
iOS SDK 11.2
MacOS 10.12.6

-Dan
___
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: DataGrid in v9: DragImage broken on Windows?

2018-12-18 Thread panagiotis merakos via use-livecode
Hello Richard,

This looks like this bug:

https://quality.livecode.com/show_bug.cgi?id=21562

Kind regards,
Panos
--

On Tue, Dec 18, 2018 at 10:21 PM Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> The following relates to Windows only; things are working well on macOS.
>
> I have this code in a DataGrid in an older project:
>
> on dragstart
> if the dgDataControl of the target <> "" then
>   put the dgIndex of the dgDataControl of the target into theIndex
>   set the dgDragImageIndex of me to theIndex
>   set the dragData["private"] to "FieldGrid" & cr & theIndex
> end if
> end dragstart
>
> In earlier versions the dragImage looks great.
>
> In v9 no dragImage shows at all.
>
> I do get the drag cursor, but no image of the record line.
>
> What has changed with the DG to account for this, and how do I restore
> the former excellent dragImage?
>
> --
>   Richard Gaskin
>   Fourth World Systems
>   Software Design and Development for the Desktop, Mobile, and the Web
>   
>   ambassa...@fourthworld.comhttp://www.FourthWorld.com
>
> ___
> 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


DataGrid in v9: DragImage broken on Windows?

2018-12-18 Thread Richard Gaskin via use-livecode

The following relates to Windows only; things are working well on macOS.

I have this code in a DataGrid in an older project:

on dragstart
   if the dgDataControl of the target <> "" then
 put the dgIndex of the dgDataControl of the target into theIndex
 set the dgDragImageIndex of me to theIndex
 set the dragData["private"] to "FieldGrid" & cr & theIndex
   end if
end dragstart

In earlier versions the dragImage looks great.

In v9 no dragImage shows at all.

I do get the drag cursor, but no image of the record line.

What has changed with the DG to account for this, and how do I restore
the former excellent dragImage?

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
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: Datagrid error...

2018-12-18 Thread Trevor DeVore via use-livecode
On Tue, Dec 18, 2018 at 12:16 PM JJS via use-livecode <
use-livecode@lists.runrev.com> wrote:

> quote"
>
>   A `_ScrollListV` request sent in time might be
> able to create such a scenario." end quote
>
> Trevore is what you say not the same as what is written here:
>
> https://forums.livecode.com/viewtopic.php?f=104=172021=73fc5b60aaa154dfddc7c723b563a370#p172019
>
> although you figured it out technically.
>

Not necessarily. `_ScrollListV` is used regardless of the setting so it can
be called from a number of different code paths.

-- 
Trevor DeVore
CTO - ScreenSteps
www.screensteps.com
___
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


problem with revZipOpenArchive in a Mac app bundle?

2018-12-18 Thread Curt Ford via use-livecode
I'm working on updating a client's project for 64bit compatibility on 
the Mac side.


The project is a menu app that downloads and unzips a number of modules 
from a server. The previous version, done in LiveCode 7, saved & 
unzipped the modules in the app bundle, at 
/Contents/Resources/_MacOS/Modules (that last item is a folder created 
by the app).


This wasn't working when I opened it in LiveCode 9, so I tweaked the 
code to use


specialFolderPath("resources") & slash & "Modules/"

The folder is created and downloaded zip files are saved there as 
expected, but there seems to be a problem extracting it.


I'm trying to follow the steps at 
http://lessons.livecode.com/m/2592/l/126625-zip-tool . It gets as far as 
starting the listZipContents handler, then gives a blank window 
"Execution Error" with a close button. Immediately after 
revZipOpenArchive I have "answer the result" which never shows, so it 
seems to be a problem with revZipOpenArchive?


I'm just feeling my way here... any thoughts on what's going wrong? In 
case it matters: each zipped file is a folder that contains a LiveCode 
stack and a subfolder "media" containing some mp3 files.


My clumsy debugging code:
-- lists the content of an archive pArchive
on listZipContents pArchive
   if the controlKey is down then
  answer "starting listZipContents, pArchive is" && pArchive
   end if
   --IT SEEMS TO FAIL HERE
   revZipOpenArchive pArchive, "read"
   if the controlKey is down then
  answer the result
   end if
   if the controlKey is down then
  answer "just did revZipOpenArchive"
   end if
  local tZipContents
  put revZipEnumerateItems(pArchive) into tZipContents
  put tZipContents into field "FileList"
  if the controlKey is down then
 answer "about to do revZipCloseArchive"
  end if
  revZipCloseArchive pArchive
  if the controlKey is down then
 answer "just did revZipCloseArchive"
  end if
end listZipContents

-Curt
--
Sent from Postbox 


___
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: Datagrid error...

2018-12-18 Thread JJS via use-livecode

quote"

 A `_ScrollListV` request sent in time might be
able to create such a scenario." end quote

Trevore is what you say not the same as what is written here:
https://forums.livecode.com/viewtopic.php?f=104=172021=73fc5b60aaa154dfddc7c723b563a370#p172019

although you figured it out technically.


Op 18-12-2018 om 17:16 schreef Trevor DeVore via use-livecode:

  A `_ScrollListV` request sent in time might be
able to create such a scenario.


___
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: Stumped on Datagrid Problem

2018-12-18 Thread Bob Sneidar via use-livecode
I think we already did test this, and the upshot if I recall was that once you 
get beyond 2 or 3 recursive queries, the memory DB is much faster. 

I think I put up a demo stack demonstrating this on Livecode Share if you want 
to have a look. 

Bob S


> On Dec 17, 2018, at 18:09 , Tom Glod via use-livecode 
>  wrote:
> 
> Hi Bob,
> 
> Gotta love making custom solutions.  Yes, adding tables.  In memory
> database is pretty genius bob currently I feed my datagrid from an
> array.
> 
> I am not sure of the line at which a database becomes faster than repeat
> with &  LiveCode array and a sort function.
> 
> maybe thats a good test to run someday.


___
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: Datagrid error...

2018-12-18 Thread Trevor DeVore via use-livecode
On Tue, Dec 18, 2018 at 9:31 AM Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> built under LiveCode 6.7.11. We are readying a new version built under
> LC9.0.1, but without a recipe for the error, I have no way of testing
> whether the new engine (and newer Datagrid) fixes this issue. I was
> hoping the executionCotexts might provide some insight as to a suggested
> recipe to reproduce the error.
>

I just checked the Data Grid script in 6.7.11 by executing the following
code in the Message Box:

 ```
edit script of button id 1005 of stack "revDataGridLibrary"
```

If we piece together what we know from the error we get the following:

1) `_DrawListWithProperties` is called
2) `_table.DrawWithProperties` is called
3) `_table.DrawControlsInRealTime` is called
4) `_table.DrawColumns` is called
5) An object that doesn't exist is referenced and triggers the "can't find
object".

The line that triggers the "can't find object" error is line 3919. Line
3919 is part of the `_table.DrawColumns` private command which draws
columns in a table. It reads as follows:

```
put the dgIndex of theControl into theCurrentIndex
```

This tells us that `theControl` doesn't exist. `theControl` comes from line
3910:

```
put line theControlIndex of theMasterControlList[theColumn] into theControl
```

`theMasterControlList` is a list of existing controls that can be used to
render the data for a particular row and column in the table.

What is interesting here is that `_DrawListWithProperties` is the entry
point. `_DrawListWithProperties` is a private command and the error report
isn't telling us who is calling `_DrawListWithProperties`. That complicates
things a bit since we don't know if it is being called when you set the
`dgData`, when the user is scrolling, when the user clicks on a row, etc.
One potentially important piece of information is that
`_DrawListWithProperties` can be called by `_ScrollListV`, Because
scrolling can happen very quickly `_ScrollListV` will throttle itself
meaning that if it is currently running when it is called (e.g. the user is
scrolling quickly and `_ScrollListV` hasn't finished rendering the last
scroll request) then it will call itself in time so that the new scroll
request can be processed after the current scroll request finishes
rendering. If `_DrawListWithProperties` was called from a scrolling action
then the theory I propose below might be possible.

Given what we know my best guess is that the columns property is being set
and in the process a column is being removed. At the same time,
`_DrawListWithProperties` is being triggered which is trying to draw the
column that was removed. A `_ScrollListV` request sent in time might be
able to create such a scenario.

Now, all of this leads me to the following questions –

1) Are you modifying the columns displayed in this Data Grid through code?
2) If so, is it possible that you are updating the columns in the Data Grid
while the user is interacting with it?

-- 
Trevor DeVore
CTO - ScreenSteps
www.screensteps.com
___
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

[ANN] bnGuides alignment tool on ivecodeshare

2018-12-18 Thread Niggemann, Bernd via use-livecode
I have put a stack "bnGuides" on livecodeshare (or access it from "Sample 
Stacks" from within LC).
It is best used as a plugin.

http://livecodeshare.runrev.com/stack/918/BnGuides

It helps with visual guides to align objects. It complements the build-in 
alignment tool.
Feedback welcome.

Kind regards
Bernd
___
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: Datagrid error...

2018-12-18 Thread Paul Dupuis via use-livecode

On 12/18/2018 10:19 AM, Trevor DeVore via use-livecode wrote:

On Mon, Dec 17, 2018 at 1:47 PM Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


I have a a few customers reporting the error below, and yet, none of
them have provided information on what exactly they were doing that
resulted in the error below. I have no recipe to reproduce it. These are
just busy researchers who just don't have the time nor technical
know-how to spend any time troubleshooting. I am hoping someone on this
list with detailed knowledge of the inner working of the Datagrid might
be able to suggest what might be causing the error based on the
ExcutionContexts (below)


Which version of LiveCode was the app built with? The error contains line
numbers and it is important to look at the exact version of the Data Grid
library you are using in order to determine the code that triggered the
error.


Hi Trevor,

Thanks for chiming in. I am sorry to say that this is a very old app, 
built under LiveCode 6.7.11. We are readying a new version built under 
LC9.0.1, but without a recipe for the error, I have no way of testing 
whether the new engine (and newer Datagrid) fixes this issue. I was 
hoping the executionCotexts might provide some insight as to a suggested 
recipe to reproduce the error.





___
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: Datagrid error...

2018-12-18 Thread Trevor DeVore via use-livecode
On Mon, Dec 17, 2018 at 1:47 PM Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I have a a few customers reporting the error below, and yet, none of
> them have provided information on what exactly they were doing that
> resulted in the error below. I have no recipe to reproduce it. These are
> just busy researchers who just don't have the time nor technical
> know-how to spend any time troubleshooting. I am hoping someone on this
> list with detailed knowledge of the inner working of the Datagrid might
> be able to suggest what might be causing the error based on the
> ExcutionContexts (below)


Which version of LiveCode was the app built with? The error contains line
numbers and it is important to look at the exact version of the Data Grid
library you are using in order to determine the code that triggered the
error.

-- 
Trevor DeVore
CTO - ScreenSteps
www.screensteps.com
___
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


Android Text-To-Speech?

2018-12-18 Thread Peter Reid via use-livecode
Has anyone got a way of doing text-to-speech for Android? We have revSpeak for 
desktop/laptop but not for Android deployment. Any solutions please?

Peter
--
Peter Reid
Loughborough, UK


___
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: Datagrid error...

2018-12-18 Thread Curry Kenworthy via use-livecode



> I really do wish someone would deliver a really reliable table object

I'm always game as you know, and would enjoy such a project. Reliable is 
not a problem - simply proper methods to ensure proper results.  :)


But when it comes to efficiency, LiveCode itself is lately a getting bit 
portly and sluggish, surely due for a little optimization now. With 
custom controls, no matter which code route is taken, it's encouraging 
to have a lean mean foundation to build upon!


Best wishes,

Curry K.

___
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: Datagrid error...

2018-12-18 Thread Paul Dupuis via use-livecode

On 12/18/2018 8:03 AM, Curry Kenworthy via use-livecode wrote:


A lot of pain can be avoided, and more responsive interfaces achieved, 
by using data grids ONLY when necessary.


Sometimes they are necessary...but usually not. 



True. In this case, I need a table view of a bunch of data. The columns 
must be sortable and resizable (a datagrid does this for me) and the 
textual content of the cells must wrap (so that rules out a single field 
object set as a table field) and at least 1 column may contain text 
(wrapped in the columns field) or an image or  even html text with 
embedded images. Thus the only existing LiveCode widget or object that 
does this is a Datagrid.


I really do wish someone would deliver a really reliable table object 
for LiveCode that supported an htmlText property for each cell and each 
cell could be wrapped or not that also handled sorting and resizing, 
including auto-sizing column widths and row heights to fit the content!



___
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: Datagrid error...

2018-12-18 Thread Curry Kenworthy via use-livecode



A lot of pain can be avoided, and more responsive interfaces achieved, 
by using data grids ONLY when necessary.


Sometimes they are necessary...but usually not.

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.com/

___
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: BrowserSnapshot_v001

2018-12-18 Thread Lagi Pittas via use-livecode
Hermann,

I have no use for this presently but I KINOW I will learn a lot just by
looking at your code.
Thanks for all your brilliant stuff - oh and if I don't thank you for
future stuff (life gets in the way of living) take that as a thank you as
well
- I'll be the first to tell you when your stuff is rubbish - time or no
time ;-)

Lagi

On Mon, 17 Dec 2018 at 23:59, hh via use-livecode <
use-livecode@lists.runrev.com> wrote:

> BrowserSnapshot makes an image of the *whole* HTML content of a browser
> widget
> (while waiting for printToPdf from the browser widget in 9.x).
> The image may get a height of several thousands pixels.
>
> ** It works currently only for (horizontally) responsive HTML pages, that
> is if
> the widget doesn't need a horizontal scrollbar. **
>
> This is a pure LC Script solution: The widget is scrolled down appropriate
> portions of the whole HTML page and a snapshot is made. Then the snapshots
> are merged into ONE image of format PNG.
>
> Download BrowserSnapshot from "Sample Stacks" or
> http://livecodeshare.runrev.com/stack/920/
>
> Probably this pure LC Script version is doing better than creating a
> "snapshot"
> from the DOM using a HTML5 canvas (HTMLtoIMAGE_v100)
> ___
> 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