Re: Bug, feature, or just something I need to program around?

2021-05-13 Thread Alex Tweedly via use-livecode

On 13/05/2021 20:25, Jim Lambert via use-livecode wrote:


In Notes if you are in one note then select a different note and execute 
Shift-Command-Right Arrow, you will see the same behavior. The insertion point 
moves to the end of the note without selecting any text.


I don't see that. If I move from one note to another by clicking on the 
'summary' for it, I then need to either click into the Note itself, or 
use the right-arrow to get into it. In either case, cmd-shift-arrow 
immediately does select the text.  (Notes version 4.5, 876.1, on MacOS 
1.13.6)


Is there maybe another way to move from Note to Note that I haven't found ?

Could you say *exactly* what you mean when you say "in one note then 
select a different note"?



In any case, Apple's HIG doesn't (AFAICS) specify anything, and autotab 
set to true gives me the behaviour I expect/like (for single-line 
fields, I will leave it false for multi-line fields).


It's mildly irritating that the selection anomaly exists, and also 
irritating that two behaviour changes are bundled into a single setting 
(autotab true = text pre-selection AND changes how "return"/"enter" are 
treated).


When I'm convinced I've got all the cases covered, I'll create a bug 
report for the former, and an enhancement request (for openfield to 
provide more info) to allow us to program around the latter.


Thanks,

Alex.


___
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: All new Kognition beta - LiveCode all-in Knowledgebase

2021-05-13 Thread Tom Glod via use-livecode
Hey Kevin .thanks for the demo and the food for thought. Looks
interesting and could be quite useful.  I will look more closely at this in
the summer.

On Thu, May 13, 2021 at 4:21 AM Kevin Miller via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Folks,
>
>
>
> As some of you may be aware, LiveCode has a stake in a start-up business,
> Kognition. Kognition have a very small team building an artificially
> intelligent way of working with information (using LiveCode).
>
>
>
> We have a beta/demo version which we thought could be interesting to share
> with you. What we’ve done is connected it up to the various sources of
> LiveCode information we have, including the mailing list, forums,
> documentation etc so you can find answers to a LiveCode related question as
> you are scripting or building an app. Everything is cloud based so it stays
> up to date as new posts occur or documentation becomes available.
>
>
>
> You can see how it works in this tour here:
>
> https://youtu.be/Iu5KpZVhwrM
>
>
>
> If you’re interested in trying it and have a little time to give us some
> feedback, the beta/demo program is free. We don’t allow you to import your
> own files in this version, just use the LiveCode data set that we have set
> up. Drop a line to supp...@livecode.com and we will get you signed up to
> try it out. At the end of the beta program this may potentially become a
> paid resource or integrated in some way if there is sufficient interest.
> And of course we are very interested in hearing about ways you might be
> able to use something like this in your own business or with clients,
> accessing other knowledge bases or bringing together specific sources of
> information. Kognition has the potential to be used in a wide variety of
> settings, anywhere where there is a information sitting in one or more
> system that you need to find answers from regularly.
>
>
>
> Many thanks,
>
>
>
> Kevin
>
>
>
> Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/
>
> LiveCode: Develop Yourself
>
>
>
> ___
> 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
>


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


Re: navbar pre hiliteChanged

2021-05-13 Thread Mike Kerner via use-livecode
memo for the next person who discovers this thread:
1. as has been previously discussed in other threads, the navigation bar
receives the hiliteChanged message even if the hilite does not change
(which happens when the user taps on the currently hilited segment)
2. in my testing in 9.6.x, if you set/reset the hilitedItem or the
hilitedItemName early enough in the handler, most of the time that will
take effect before the screen redraws, so the user will not see the blink
from the original tap. it's not perfect, but it might be good enough.

On Thu, May 13, 2021 at 12:47 PM Mike Kerner 
wrote:

> How do you handle the situation where a user taps on the navBar but you
> want to intercept and cancel it?
> Example: User clicks on the navBar to switch cards, but there is an error
> on the existing card, so the navigation and the hilite changing should be
> stopped.
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: Bug, feature, or just something I need to program around?

2021-05-13 Thread Jim Lambert via use-livecode
Hi Alex,

> I don't follow you Jim.

You wrote: 
>  if I TAB into the field the cursor is initially at the start of the 
> field and the key sequence above will move the cursor to the end 
> *without* selecting the characters.

In Notes if you are in one note then select a different note and execute 
Shift-Command-Right Arrow, you will see the same behavior. The insertion point 
moves to the end of the note without selecting any text. 

I merely pointed out this behavior is somewhat akin to what you see in LiveCode 
as you move from field to field with TAB as long as the autoTab property is 
false. With autoTab set to true the entire contents of the field is selected.

> if I TAB into the field the cursor is initially at the start of the field

Here the field 'remembers' its previous insertion point during the session 
rather than always appearing before char 1.

Glad Jacque's autoTab tip works for you!

Jim Lambert
___
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


navbar pre hiliteChanged

2021-05-13 Thread Mike Kerner via use-livecode
How do you handle the situation where a user taps on the navBar but you
want to intercept and cancel it?
Example: User clicks on the navBar to switch cards, but there is an error
on the existing card, so the navigation and the hilite changing should be
stopped.
___
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: the systemversion shows wrong version # on Mac

2021-05-13 Thread Sean Cole (Pi) via use-livecode
On Thu, 13 May 2021 at 14:57, Ben Rubinstein via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Do we need a "detailed systemversion" ?
>

+1
Great idea. For Windows also this could return from ' systeminfo | findstr
/B /C:"OS Name" /C:"OS Version" ' which would give the build number instead
of just NT 10.0. eg:
OS Name:   Microsoft Windows 10 Pro
OS Version:10.0.18363 N/A Build 18363
___
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: Bug, feature, or just something I need to program around?

2021-05-13 Thread Alex Tweedly via use-livecode

Thanks Jacque.

'autoTab' does indeed give a behaviour the same as I see in Apple's own 
apps (for single line fields, differs for multi-line fields), so I'll go 
with that for now.


And when I've got this all sorted out, I'll submit the issues as bug 
reports (3 I think, so far) and report them back here on the list for 
completeness.


Thank you all,

Alex.


___
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: the systemversion shows wrong version # on Mac

2021-05-13 Thread Ben Rubinstein via use-livecode

Do we need a "detailed systemversion" ?

On 07/05/2021 18:07, panagiotis merakos via use-livecode wrote:

Hello all,

Yeap, what Phil said:

function mySystemVersion
get shell("sw_vers -productVersion")
return it
end mySystemVersion

This will return 11.2.3 on a Mac running Big Sur 11.2.3

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

Cheers,
Panos
--

On Fri, 7 May 2021 at 19:43, Phil Davis via use-livecode <
use-livecode@lists.runrev.com> wrote:


If you want the actual macOS system version, you can use the 'sw_vers'
shell command.

 phils-macbook-pro:~ pdslabs2$ sw_vers -productVersion
 10.15.7

 or

 phils-macbook-pro:~ pdslabs2$ sw_vers
 ProductName:Mac OS X
 ProductVersion:10.15.7
 BuildVersion:19H1030

Phil Davis



On 5/7/21 7:25 AM, Andre Garzia via use-livecode wrote:

Tiemo,

This is not a bug.

MacOS Big Sur will identify itself as both 10.16.0 and 11.x. This is by

design so that scripts checking for version compatibility can see Big Sur
as just a minor version of 10.x


The version seen depends on both which SDK was used to compile the app,

and also on the value of the environment variable called
SYSTEM_VERSION_COMPAT.


Best
Andre


On 7 May 2021, at 13:00, Tiemo via use-livecode <

use-livecode@lists.runrev.com> wrote:


Hello,



I am on macOS 11.2.3 and the systemversion shows 10.16.0?

It shows the same at least going back to 8.1.7



Do I have to multiply the systemversion by 1.1053 to get the real one?



Tiemo









___
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



--
Phil Davis
503-307-4363

___
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: Problems with text data fields pulling from SQL

2021-05-13 Thread Ben Rubinstein via use-livecode

This. NVARCHAR is for Unicode strings.

You may be able to deal with it by modifying the ODBC DSN or the query to do a 
conversion before it reaches LiveCode.


Otherwise, IIRC you need to use revDatabaseColumnNumbered and go row by row 
(rather than revDataFromQuery); taking the data and using textDecode to get it 
out of (probably) UTF-8.


Some experimentation may be needed!

Ben


On 12/05/2021 15:11, Paul Dupuis via use-livecode wrote:
Possibly an encoding issue? If the text in the database was in Unicode or some 
non-ASCII encoding, then it may appear as one or more question marks in LC 
unless textEncode/textDecode (I forget which would apply) is used to translate 
it from the database encoding



On 5/12/2021 9:38 AM, Skip Kimpel via use-livecode wrote:

I am pulling data from an Azure MS SQL database using an ODBC connection.
All data comes across just fine EXCEPT for data with field types of
NVARCHAR(Max).

When those fields arrive to LC, it shows up as a question mark "?".

Any reason why this would happen?   Any resolution to this?

Best regards,

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


All new Kognition beta - LiveCode all-in Knowledgebase

2021-05-13 Thread Kevin Miller via use-livecode
Hi Folks,

 

As some of you may be aware, LiveCode has a stake in a start-up business, 
Kognition. Kognition have a very small team building an artificially 
intelligent way of working with information (using LiveCode).

 

We have a beta/demo version which we thought could be interesting to share with 
you. What we’ve done is connected it up to the various sources of LiveCode 
information we have, including the mailing list, forums, documentation etc so 
you can find answers to a LiveCode related question as you are scripting or 
building an app. Everything is cloud based so it stays up to date as new posts 
occur or documentation becomes available.

 

You can see how it works in this tour here:

https://youtu.be/Iu5KpZVhwrM

 

If you’re interested in trying it and have a little time to give us some 
feedback, the beta/demo program is free. We don’t allow you to import your own 
files in this version, just use the LiveCode data set that we have set up. Drop 
a line to supp...@livecode.com and we will get you signed up to try it out. At 
the end of the beta program this may potentially become a paid resource or 
integrated in some way if there is sufficient interest. And of course we are 
very interested in hearing about ways you might be able to use something like 
this in your own business or with clients, accessing other knowledge bases or 
bringing together specific sources of information. Kognition has the potential 
to be used in a wide variety of settings, anywhere where there is a information 
sitting in one or more system that you need to find answers from regularly.

 

Many thanks,

 

Kevin

 

Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/

LiveCode: Develop Yourself

 

___
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