RE: Checkmark for Mac & Windows

2018-03-23 Thread Clarence Martin via use-livecode
Phil, can you provide a sample script?

-Original Message-
From: use-livecode  On Behalf Of Phil 
Davis via use-livecode
Sent: Friday, March 23, 2018 7:20 PM
To: Knapp Martin via use-livecode 
Cc: Phil Davis 
Subject: Re: Checkmark for Mac & Windows

One idea:

- Create or find a checkmark image you like, that looks good within the 
textHeight of your lists
- Import it into your app
- make sure each line of text begins with maybe 3 spaces
- use the ID of the checkmark image as the imageSource of char 1 of each line
- let your (now modified) script support the same toggle action it now supports

HTH -
Phil Davis


On 3/23/18 6:22 PM, Knapp Martin via use-livecode wrote:
> I generate lists on the fly with the first item of each line set with a 
> checkmark. After I construct the list under script, I just insert it into a 
> standard LC table field. The user can then toggle the checkmark of each line 
> off or on with a click (a script in the field takes care of that).
>
> On Mac it's just a matter of using the checkmark character (option-v) which I 
> can type right into a script. But on Windows it does not display. I don't 
> want to rely on a specific font in case the user does not have that 
> installed. Is there really not an *simple* way to do this so that it works on 
> both Mac and Windows? I’m redoing a currently Mac-only app so I can release 
> for Windows too and don’t really want to re-work all this if there’s a simple 
> solution that I’m missing.
>
> Thanks,
>
> Marty
> ___
> 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

--
Phil Davis


___
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: Checkmark for Mac & Windows

2018-03-23 Thread Phil Davis via use-livecode

One idea:

- Create or find a checkmark image you like, that looks good within the 
textHeight of your lists

- Import it into your app
- make sure each line of text begins with maybe 3 spaces
- use the ID of the checkmark image as the imageSource of char 1 of each 
line
- let your (now modified) script support the same toggle action it now 
supports


HTH -
Phil Davis


On 3/23/18 6:22 PM, Knapp Martin via use-livecode wrote:

I generate lists on the fly with the first item of each line set with a 
checkmark. After I construct the list under script, I just insert it into a 
standard LC table field. The user can then toggle the checkmark of each line 
off or on with a click (a script in the field takes care of that).

On Mac it's just a matter of using the checkmark character (option-v) which I 
can type right into a script. But on Windows it does not display. I don't want 
to rely on a specific font in case the user does not have that installed. Is 
there really not an *simple* way to do this so that it works on both Mac and 
Windows? I’m redoing a currently Mac-only app so I can release for Windows too 
and don’t really want to re-work all this if there’s a simple solution that I’m 
missing.

Thanks,

Marty
___
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


--
Phil Davis


___
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: Checkmark for Mac & Windows

2018-03-23 Thread Brian Milby via use-livecode
Check out "imagesource" - it may be what you need.  You can do something
like:

*set* the imageSource of char 1 of line 1 of fld "Test" of this cd to 878
Which is a "+" sign, but you can use your own images.  modTableField uses
this strategy and has icons for the checked and unchecked state.  You could
track state with a particular character in that position if needed.

Thanks,
Brian

On Fri, Mar 23, 2018 at 8:22 PM, Knapp Martin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I generate lists on the fly with the first item of each line set with a
> checkmark. After I construct the list under script, I just insert it into a
> standard LC table field. The user can then toggle the checkmark of each
> line off or on with a click (a script in the field takes care of that).
>
> On Mac it's just a matter of using the checkmark character (option-v)
> which I can type right into a script. But on Windows it does not display. I
> don't want to rely on a specific font in case the user does not have that
> installed. Is there really not an *simple* way to do this so that it works
> on both Mac and Windows? I’m redoing a currently Mac-only app so I can
> release for Windows too and don’t really want to re-work all this if
> there’s a simple solution that I’m missing.
>
> Thanks,
>
> Marty
> ___
> 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

Checkmark for Mac & Windows

2018-03-23 Thread Knapp Martin via use-livecode
I generate lists on the fly with the first item of each line set with a 
checkmark. After I construct the list under script, I just insert it into a 
standard LC table field. The user can then toggle the checkmark of each line 
off or on with a click (a script in the field takes care of that).

On Mac it's just a matter of using the checkmark character (option-v) which I 
can type right into a script. But on Windows it does not display. I don't want 
to rely on a specific font in case the user does not have that installed. Is 
there really not an *simple* way to do this so that it works on both Mac and 
Windows? I’m redoing a currently Mac-only app so I can release for Windows too 
and don’t really want to re-work all this if there’s a simple solution that I’m 
missing.

Thanks,

Marty
___
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

Apple iOS App Rejection because Location Usage String is too Generic

2018-03-23 Thread Ralph DiMola via use-livecode
These keys aren't in the settings.plist file.
NSLocationUsageDescription
NSLocationWhenInUseUsageDescription

Does anyone know where they are? I need to change them and re-submit the
app.

Thanks

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


___
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: Issues with storage of data in stack

2018-03-23 Thread Richard Gaskin via use-livecode

Lagi Pittas write:

> Sqlite does fine for my single user systems but needing routines to
> change between LC dates and sqlite dates is a pain.

Indeed it is, or to any format not already handled.

There are some requests in the bug DB for other formats:
https://quality.livecode.com/show_bug.cgi?id=4636
https://quality.livecode.com/show_bug.cgi?id=19601

Most interesting is Comment #4 in bz# from Monte:
https://quality.livecode.com/show_bug.cgi?id=19601#c4

Apparently he submitted a pull request last year for what seems like a 
very nice solution, using formatting strings:

https://github.com/livecode/livecode/pull/5433

This was per this BZ request:
https://quality.livecode.com/show_bug.cgi?id=18150

Not sure what happened to that.  Seems like it would be a great option.

--
 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: Issues with storage of data in stack

2018-03-23 Thread Lagi Pittas via use-livecode
Hi Mark,

Thanks for that - I'd forgotten I'd asked ;-)

The times you gave are super impressive - who needs mysql - Im gonna
see if I get anytime in the next month - snowed under as usual.

I think I have got it - each cluster is in effect a file on the disk?

I will understand it more when I have had time to pause the video a
few times and try to implement a very simple system although to be
honest a few thousand records should be ample in most of my stuff and
I can archive data to a history file. Sqlite does fine for my single
user systems but needing routines to change between LC dates and
sqlite dates is a pain.

Thanks again

Lagi



On 22 March 2018 at 23:28, Mark Talluto  wrote:
> Hi Lagi,
>
> Sorry about the delayed reply. I have been on a long business trip. Your
> early designs are far more sophisticated than what we put together here.
> Super impressive history you have.
>
> LiveCode really is the champion here in that we are only using arrayEncode()
> and put myArrayA into url() to store the arrays. Selecting which array
> cluster to store might be easier to understand using a video.
>
> http://canelasoftware.com/pub/canela/liveCode_array_clustering.mp4
>
> Once you understand how the array is structured, I think the method will be
> clear.
>
> We do not preallocate space. No appending. We overwrite a cluster when one
> or more records are saved to disk. The write happens at the end of the CRUD
> operation taking place. Thus, if you ‘create’ a single record, the record is
> first created in memory and then the cluster it belongs to is written to
> disk. I have toyed with the idea of making the write to disk feature
> controllable by the dev. Thus, you could define when the write is to take
> place. For example, you might like to write to disk after every 5
> transactions or so. But, I have not found the write to affect performance in
> a noticeable way to need to add that feature.
>
> -Multi User-
> Yes, everything is processed sequentially in the cloud. There are no open
> sockets so you can have massive concurrent connections. All cloud calls are
> done via ‘post’. They are handled by PHP scripts to write the request to a
> cache area. One or more LiveCode standalones on the other end processes the
> request in the order they are received. Thus, should a process go down, no
> data is lost. When the process comes a back up, everything continues again
> as normal. Scale is handled by having more than one process be available.
> More scaling is handled by having data stored across multiple droplets/VMs
> (sharding). This can keep repeating itself as needed.
>
> -File Size Limitations-
> The OS iNode limitations are negated by not reaching its maximum limit. We
> found 40,000 files would really bring the performance down. Adding
> clustering of arrays lowers the file count to acceptable and controllable
> levels.
>
> -Test Data-
> 100,000 records in table
> Record size average: 45 chars
> Keys in each record: last_name, first_name, date_of_birth, middle_name,
> student_number, gender, grade_level, active
>
> A cluster size, clusters per table, time to load all clusters from disk to
> RAM, time to write all clusters from RAM to disk, time to write one cluster
> from RAM to disk:
> 1, 16, 1.46 secs, 1.5 secs, 91.4 ms
> 2, 256, 1.52 secs, 1.5 secs, 6.7 ms
> 3, 4096, 2.38 secs, 1.6 secs, 0.8 ms
>
> I hope this information is helpful. Please let me know if you have any other
> questions.
>
> Best regards,
>
> Mark Talluto
> livecloud.io
> nursenotes.net
> canelasoftware.com
>
>
>
>
> On Mar 12, 2018, at 10:31 AM, Lagi Pittas  wrote:
>
> Hi Mark,
>
> Thanks for the detailed explanation but I have a few (ish) questions ...
>
> Hope you don't mind me asking these questions because I did have to
> write my own access routines in those bad old days before I started on
> Clipper/Foxpro/Delphi/Btrieve  and I do enjoy learning from others on
> the list and the forums - those AHA! moments when you finally get how
> the Heapsort works the night before the exam.
>
> Many moons ago I wrote a multi-way B-TREE based  on the explanation in
> Wirth's Book "Algorithms + Data Structures = Programs" -  in UCSD
> Pascal for the Apple 2,  I  had a 5MB hard Drives for the bigger
> companies when I was lucky, for the smaller companies I made do with 2
> 143k floppy disks and Hashing for a "large" data set- oh the memories.
> I used   the B-Trees  if the codes were alphanumeric. I also had my
> own method where I kept the index in the first X Blocks of the file
> and loaded the parts in memory as they were needed - a brain dead
> version of yours I suppose.  I think we had about 40k of free ram to
> Play with so couldn't always keep everything in RAM. I even made the
> system multi-user and ran 20 Apple ][s on a network using a
> proprietary Nestar/Zynar network using Ribbon Cables -  it worked but
> am I glad we have Ethernet!
>
> Anyway - I digress. I can understand the 

Re: Just a list test

2018-03-23 Thread Bob Sneidar via use-livecode
Oh BTW no false positive Phishing alert in the body of my email! 

Bob S


> On Mar 23, 2018, at 10:47 , Bob Sneidar  wrote:
> 
> I can't. I'm looking right at it. ;-)
> 
> Bob S
> 
> 
>> On Mar 23, 2018, at 10:35 , Heather Laine via use-livecode 
>>  wrote:
>> 
>> Please ignore.
>> 
>> Heather
>> 
>> Heather Laine
>> Customer Services Manager
>> LiveCode Ltd
>> www.livecode.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: Just a list test

2018-03-23 Thread Bob Sneidar via use-livecode
I can't. I'm looking right at it. ;-)

Bob S


> On Mar 23, 2018, at 10:35 , Heather Laine via use-livecode 
>  wrote:
> 
> Please ignore.
> 
> Heather
> 
> Heather Laine
> Customer Services Manager
> LiveCode Ltd
> www.livecode.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


Just a list test

2018-03-23 Thread Heather Laine via use-livecode
Please ignore.

Heather

Heather Laine
Customer Services Manager
LiveCode Ltd
www.livecode.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


Inferring absence of physical keyboard in Win 10 'convertible' device

2018-03-23 Thread David V Glasgow via use-livecode
I apologise in advance for the ugliness of my attempt at a solution to the 
above.

Just a brief gratuitous update on strangeness associated with Inferring absence 
of physical keyboard in Win 10.  The Win 10 tablet itself knows the keyboard 
has been detached, because the cursor disappears (although LC continues to 
detect the location of the invisible cursor, because tooltips are sometimes 
triggered).  However it seems there is no flag accessible to developers.  
Various online recipes appear in different languages, but none appear to be 
accepted as foolproof.

The simple kludge I came up with works fairly well.  Counting mousemoves 
generated on a setup screen allows me to reliably determine whether the input 
is mouse or touch (the latter presuming keyboard absent).  However, the cut off 
isn’t as clear as I thought it might be.  This is because mousemoves appear to 
be generated when the pointer doesn’t actually move

Opening the card containing the mousemove counter always generates 3 mousemove 
messages without the screen being touched in any way.  Any tap generates 4 
mousemoves.  So open card + popup + select option + radio button + go button = 
3+4+4+4+4= 18 minimum.  I could reduce that a bit by zeroing the mousemove 
count after the popup selection.

Luckily it seems impossible to do the same using a mouse-pointer with fewer 
than 70 mousemoves, so if the platform is Win and mousemoves <60 I present a 
“It looks like you are using this device as a tablet, is that right?” dialog.  
A ‘Yes’ enables the use of on screen keyboard and numeric keypad on the main 
card.  Also, someone using the screen as a tablet but with a mouse attached 
would slip through the net. However, a false positive here is not a great 
inconvenience.

False negatives remain a possibility, though.  Obviously a rather touchy, 
clumsy, strokey tablet user could generate another 42 mousemove events, and 
thus transition to the main card with no means of entering data.  

The built in on-screen keyboard is also pretty horrible.  Often obscuring the 
important parts of the screen, and apparently arbitrarily invoked or not 
invoked.  In short, Microsoft’s ‘continuum’ seems to be more ambitious and 
complicated than Apple's ‘continuity’, and rather difficult  to manage as a 
user and developer.


Best Wishes,
David Glasgow


  

  
 
___
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