Re: widget properties

2022-04-06 Thread Neville Smythe via use-livecode
Just a point of clarification; Ali’s post does not explain how to access the object properties of a widget. The properties returned by put the keys of (revIDEExtensionProperties("com.livecode.widget.foo")) are the intrinsic properties of the widget, which these days are accessible via the

Re: s it a bug?

2022-05-24 Thread Neville Smythe via use-livecode
Bob: I'm not seeing this in the IDE or standalone. LC 9.6.7, macOS Monterey > > I found one thing I think is a bug, and I'd like to report it, but I want to > see if anyone else thinks this may be the expected behavior: > > It seems to me that when clicking and holding the mouse button down

Re: Is LC encryption different for Mac than for Windows??

2022-07-02 Thread Neville Smythe via use-livecode
Is socketTimeOut set high enough? Neville ___ 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: long id trap for the unwary

2022-06-28 Thread Neville Smythe via use-livecode
No crashes or errors, I just didn’t get back the data I expected. Does it really have anything to do with message paths? I just expected the long id of field1 of card 1 to do what it says, that is, to return a specifier to (the instance of) field 1 on card 1. At the time I was iterating

nsScriptDatabase (and long id's)

2022-06-30 Thread Neville Smythe via use-livecode
I have uploaded version 3 of nsScriptDatabase to Sample Stacks, and the standalones are at https://www.dropbox.com/sh/6z4yuw55rnvub3t/AAB3jJ9yO4l2zCOoDq1uO7L2a?dl=0 This version addresses the issues with groups caused by my misplaced expectations raised in the thread about long id’s of grouped

long id trap for the unwary

2022-06-27 Thread Neville Smythe via use-livecode
If I write put the long id of field 1 of card 1 into tObject; put the text of tObject I get the text of field 1 of card 1, right ? Not necessarily. If field 1 of card 1 is in a shared group, then what I get is the text of field id something of card id whatever, where whatever is the id of

Re: Is LC encryption different for Mac than for Windows??

2022-07-05 Thread Neville Smythe via use-livecode
Bob Sneider wrote > So strange. I built in some logging, removed the base64 stuff, and now it > works! Timing problem of some sort? Who knows. That’s what I was inferring. I’d suggest you increase socketTimeOut to avoid the problem recurring (or reduce it if you want to test that timing was

Re: Property sheets

2022-06-09 Thread Neville Smythe via use-livecode
I have uploaded version 2.2 of nsScriptDatabase which can display supported properties of widgets, with their current and default values. There are also some bug fixes so current users should download the new version and update their database for those stacks which contain widgets or for which

Multiple revCursors substacks added to standalone

2022-06-09 Thread Neville Smythe via use-livecode
For a while now (LC 9.x) I have been finding that making a standalone sometimes adds multiple copies of revCursors to the standalone. One copy as a substack of the mainstack is expected, but under some unknown circumstances I get 3 more copies of the stack added (not as substacks). This on a

Re: Property Sheet for LC

2022-06-05 Thread Neville Smythe via use-livecode
Alex wrote > The NavBar widget has a number of properties (itemNames, itemStyle, > hilitedItem, itemArray, ..) which are visible in the Object Inspector, > but not in 4WProps. As discussed in a post a while ago, the problem is that requesting the properties of a widget object returns nothing

Best way to update a large DB ?

2022-06-13 Thread Neville Smythe via use-livecode
Oh and you can prevent a file transfer from timing out… look up libURLSetExpect10 Neville ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Best way to update a large DB ?

2022-06-13 Thread Neville Smythe via use-livecode
> update myDB set col1 = "blah blah", col2 = "blah blah" where id = 12345 > limit 1 > I have a file with all the requests that weights almost 200 Mb. Unless your "blah blah”s are very large indeed shouldn’t your change data be packable into a much smaller file to transmit? Eg if they were

Re: char as word boundary

2022-06-07 Thread Neville Smythe via use-livecode
Hmm. I jumped without thinking…I was thinking if unicode char 2029 which is the paragraph separator. Unicode Char 202 is supposed to be Latin Capital Letter E With Circumflex. But 202 is beyond the standard ascii range so the deprecated numtochar(202) will return an extended ascii character

Re: char as word boundary

2022-06-07 Thread Neville Smythe via use-livecode
Still jumping without thinking… If native char 202 or unicode char 202 is a word boundary in Windows it is a real bug — but is that the case? Native char 202, a non-breaking space, should (or maybe shouldn’t) be a word boundary in Mac - the docs say word boundaries are space, tab and return.

Re: nsScriptDatabase (was property sheets)

2022-06-10 Thread Neville Smythe via use-livecode
Bob S wrote > On 11 Jun 2022, at 2:00 am, use-livecode-requ...@lists.runrev.com wrote: > > A direct link, or where to go to get it would be helpful. The stack is in the Development section of Sample Stacks, though it seems to help the extraordinarily slow search engine to click All before Go.

Re: char as word boundary

2022-06-03 Thread Neville Smythe via use-livecode
Jean-Jacques In 9.6.8 the number of chars of (numtochar(32)& numtochar(202)(32)& numtochar(202)(32)) = 5 As it should be. Did you mean the number of words? But then the number of words of (numtochar(32)& numtochar(202)(32)& numtochar(202)(32)) = 0 (in 9.6.8) As it should be. Char

IAC for Livecode standalones

2022-04-13 Thread Neville Smythe via use-livecode
When developing my recent utility I have thought it could be useful if other users could access the output from some of its features, in other words inter-application communication. Stacks can do this if the utility is running in the IDE but not when run as a standalone. Now a Mac

Re: widget properties

2022-04-13 Thread Neville Smythe via use-livecode
(Bug 23670 ) has been referred by QualityControl to Expert Review, as Panos was not sure whether this is a real bug. As a use-case I have commented that the properties of all controls, including widgets, is needed when comparing stacks for

Re: Zip file problem on Mac

2022-05-07 Thread Neville Smythe via use-livecode
> On 7 May 2022, at 2:00 am, use-livecode-requ...@lists.runrev.com wrote: > > This sounds like this enhancement request > https://quality.livecode.com/show_bug.cgi?id=9642 > Thanks Panos for pointing out this is a duplicate to bug 9642, an

Re Pulldownmenu button bug on Windows

2022-05-07 Thread Neville Smythe via use-livecode
The pulldownmenu bug I reported has been confirmed: bug 23693 To remind the reader: On a Mac, when a user select a menu item from a pulldown menu button, the menuPick message is sent first followed by a mouseLeave message (generated as the

Re: Zip file problem on Mac

2022-05-07 Thread Neville Smythe via use-livecode
> On 8 May 2022, at 2:00 am, Brian Milby wrote: > > It is a bug somewhere. See this big report: > https://quality.livecode.com/show_bug.cgi?id=21447 > > > I actually think it is related. The zip should be created as a Unix variant > and not

Pulldownmenu button bug on Windows

2022-04-28 Thread Neville Smythe via use-livecode
I have a pulldown menu button which has a menupick script and also a mouseLeave script. On a Mac, when a user brings up the menu and drags the mouse down to select a menu item (leaving the button rect but within the pulldown menu), the menupick handler is invoked, and then the mouseleave

Zip file problem on Mac

2022-05-04 Thread Neville Smythe via use-livecode
I distribute a Mac standalone via a zip file, created using revZipOpenArchive etc. This has worked fine until macOS Monterey or LiveCode 9.6.x Either a bug has been introduced into the revZip tools in 9.6.x, or I have a corrupted version, or the Mac Archive Utility has changed so as to make

Re Pulldownmenu button bug on Windows

2022-05-10 Thread Neville Smythe via use-livecode
Thanks again Richard In my case I don’t actually need a workaround. Once I had corrected my own error, the only effect of the inconsistent event order is that on Windows and Linux the colour coding of the selection turns off a fraction of a second earlier than on a Mac. I am not so obsessive

Re: Re Pulldownmenu button bug on Windows

2022-05-08 Thread Neville Smythe via use-livecode
Thanks Richard for your wise observations. As cross-platform developers we do indeed need to be aware of differences that will arise in standalones because of GUI differences in the operating systems – different placement of menus, different text string lengths, some features not even being

Re: Zip file problem on Mac

2022-05-05 Thread Neville Smythe via use-livecode
I have submitting a report to QC (Bug 23698 ) Thanks Matthias for clarifying that permissions are not correct in the archive. I can now add that the Linux archive has the same problem. The Windows archive created by revZip executes correctly.

Re: Standardize Font Appearance

2022-09-02 Thread Neville Smythe via use-livecode
Standardising fonts, so that one would no longer have to check that every label and field carefully crafted on the Mac to fit text precisely would not have missing pixels or whole words wrapped out of sight on Windows because of different font metrics, sounds like a great idea. But the reality

Re: Standardize Font Appearance

2022-09-02 Thread Neville Smythe via use-livecode
Consulting the dictionary would have helped me (in this case!): measureText(text,field,bounds) should give me what I need to make precise comparisons of how the various operating (iterating?!!!) systems will render my fonts. I will report back Interesting idea, Richard, to use images for all

Re: Cross-platform font handling, and why you don't want to do it

2022-09-06 Thread Neville Smythe via use-livecode
Bob Sneider wrote: > The fonts do not get included in a MacOS standalone embedding fonts in a Mac standalone worked fine for me. Have you checked that the fonts are actually in /Contents/Resources/_MacOS/ and your file path when loading is correct On the IDE problem > when I quit Livecode,

Re: Standardize Font Appearance

2022-09-04 Thread Neville Smythe via use-livecode
So I have conducted a more careful test of the proposed method of standardising fonts across platforms, that is, installing some Google fonts in the standalone for use in labels and fields, with the objective of setting the rects of objects on the development platform and having the same

Re: Standardize Font Appearance

2022-09-05 Thread Neville Smythe via use-livecode
I agree Quentin, trying to make text appear exactly the same on all platforms is a fools errand. That however is not the main point of the exercise, at least for me. When designing an apps interface, it would be good to know that (at least static) text items will (probably) appear in the same

Re: Standardize Font Appearance

2022-09-04 Thread Neville Smythe via use-livecode
Actually it is possible to ensure the baselines of fields are consistent across platforms without having to use conditionals. From experimentation it appears that the baseline is given (relative to the top of the field) by the top margin - 3*fontAscent/4 -1 where the

SVG Icon tool query

2022-08-28 Thread Neville Smythe via use-livecode
Many thanks to Brian for sharing the fantastic collection of icons included in this tool. Can I enquire as to the copyright status of the images? Neville ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

fontNames woes

2022-10-23 Thread Neville Smythe via use-livecode
My grand project to compile a database of cross-platform LC font metrics is slowly progressing, though rather hindered by bugs in LC. In particular fontNames() produces inconsistent results between Mac and Windows (and is not available in Linux) and worse can produce incorrect results on the

Cfross-platform font comparison

2022-10-30 Thread Neville Smythe via use-livecode
As I am about to go on vacation this project delving into the Dark Arts may be on hold for a while, but a quick update of a former assertion is in order. I claimed that strings on the Mac and Windows now have the same rendered lengths for a given font and size. Turns out this is only 85%

Re: fontNames woes

2022-10-28 Thread Neville Smythe via use-livecode
In my last post I alluded to an elusive problem on Windows 10 with the fontnames function. I think I have identified at least one circumstance where fontNames() causes a crash on Windows 10. If in a Windows standalone you call stop using font file foo.ttf and then try to get fontNames()

Re: Standardize Font Appearance

2022-09-13 Thread Neville Smythe via use-livecode
I agree Richard text management is a lot better than it used to be but problems remain. Text strings on Windows standalones used to be longer than on Mac. It was a painful process to find a label which had been clipped in Windows, fix it in the Mac IDE, compile, copy to a Windows box, only to

Re: Standardize Font Appearance

2022-09-15 Thread Neville Smythe via use-livecode
Thanks Richard for your comments. Interesting to see comments about font drift in a general context The problems is however not fixed if you add Google fonts to your standalone. The problem could probably be fixed (on Mac and Windows anyway) by hacking the fonts to change their metadata tables

Re: Standardize Font Appearance

2022-09-11 Thread Neville Smythe via use-livecode
I have enough datapoints to report some findings from my comparison of the appearance of fonts across platforms, in particular on the length of strings in fields and text baselines, and to correct some of my previous statements. My intention is to compile a database for some 7000+ fonts in 7

Cross-platform font comparison

2023-01-28 Thread Neville Smythe via use-livecode
I have at last completed the compilation of a font database to examine the issues concerning the differences in rendering text on Mac Monterey, Windows 10 and Linux Ubuntu. Over 4600 font files have been included in the database, including the fonts distributed with each platform, the Google

Stop using font file bug

2023-03-25 Thread Neville Smythe via use-livecode
I have at least got around to filing a bug report about the “stop using font file” bug discovered in my cross-platform text issues investigation, life having intervened in the last few months. Bug 24151 Stop Using font bug I have also file

Which sqlite?

2023-04-15 Thread Neville Smythe via use-livecode
Is it possible to direct LC to use a custom version of sqlite3 rather than its default? I ask because the installed version of sqlite which come installed with macOS, and which I assume LC uses when it initialises its database library, is crippled ---arithmetic functions which come with the

Re: Which sqlite?

2023-04-17 Thread Neville Smythe via use-livecode
That is excellent news Mark, thank you. Mark Waddingham wrote... > > The version of sqlite we use is compiled in to the dbsqlite driver and > thus is independent of any installed libraries. We've already got a > pending request (https://quality.livecode.com/show_bug.cgi?id=24051) to > update

Re: A stack "revCursors" is already in memory.

2023-07-06 Thread Neville Smythe via use-livecode
Paul Are you launching a stack that has previously been made into a standalone? Some time ago very often when I created a standalone it added copies of the built-in revCursors stack(s) as substacks of my stack. Before I noticed this subsequent standalone builds could add multiple copies all

Convert date

2023-07-13 Thread Neville Smythe via use-livecode
I seem to have hallucinated that the built-in convert handler recognised the ISO date and dateTime formats (-MM-DD, -MM-DD hh:mm:ss+-hh.ss, etc) but I must have written my own conversion routines in a former life. But one would have to ask… Why doesn’t it? After all, the original ISO

Re: Convert date

2023-07-13 Thread Neville Smythe via use-livecode
Jacque: Nice! Particularly as a demonstration of the variety of ways to achieve an objective in LC and different coding styles. I’ll add the snippets to my own version. The ISO date (aka sql date) format is my favourite because it avoids the ambiguity of the English/American ordering of day,

revDeleteFolder

2023-07-27 Thread Neville Smythe via use-livecode
I just got hit (again - I had forgotten my previous encounter) with the fact that revDeleteFolder is not available in LC server. I have no problem using the workaround from the Common library noted in the bug report that dates from 2014, but it would be nice if the documentation could be

Linux file names in LC Server

2023-08-13 Thread Neville Smythe via use-livecode
As we know with LC it is pretty straightforward to deal with internationalised text for remote databases and unknown user platforms by conversion to utf-8. But I have come across a problem with Linux filenames containing non-ascii characters which has me befuddled. My many-years-old app has

Re: Multipart form decode

2024-01-23 Thread Neville Smythe via use-livecode
David: do you need a special decoder? I thought the multipart form handlers just broke up the sent data into user-defined small chunks, and the server was responsible for waiting for all the parts to be received and then re-assembling the data. From that point it is just a normal POST. Maybe

Nasty filter bug

2024-01-23 Thread Neville Smythe via use-livecode
Try this in the msg box: put "aaa[bbb" into tStr; put line 1 of tStr into tLine; filter tStr without tLine; put tStr I get (using MacOS, LC 9.6.11) aaa[bbb That is to say, the line is not filtered out. And: put "aaa[bbb" into tStr; filter tStr with tStr; put tStr produces an empty string

Re: Nasty filter bug (not)

2024-01-24 Thread Neville Smythe via use-livecode
Thanks Brian of putting me right (once again) . I had completely forgotten.the escape sequence for the wildcards is [*] and [? (an unexpected way to escape a character, but it is what it is) and so had overlooked that [ is itself a special character. And neither * nor ? In the msg box example

Re: Get rid of the remote debugger

2023-12-11 Thread Neville Smythe via use-livecode
Bob: There may be a problem with your code. I believe I have seen the Remote Debugger message when I had a runtime error in a modal dialog. In earlier versions of LiveCode the dialog would fail silently, returning to the stack without reporting any error but actually not executing any code

Re: Top things you are waiting for ....

2023-11-13 Thread Neville Smythe via use-livecode
• Font styles • Get/set text baselines Neville Smythe ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: FindIndex question

2024-03-24 Thread Neville Smythe via use-livecode
> On 25 Mar 2024, at 3:00 am,Mike Kerner wrote: > > i don't know if you dove into the code, but it's too early to think about > unpacking this, so here's the code: ... Thanks Mike While I was aware of the optional parameters feature of LC commands I have never used it I so was unfamiliar

FindIndex question

2024-03-24 Thread Neville Smythe via use-livecode
I am using FindIndex on a dataGrid dispatch "FindIndex" to tDataGrid with pKey, pSearchingString and I can pass multiple pKey, pSearchingString pairs such as “col1",pSearchStr1,”col2”,pSearchStr2 as cited in the dictionary entry But there is also a rather cryptic note at the end of the

<    1   2