Re: Large files crash on Windows 10

2018-10-31 Thread Bob Sneidar via use-livecode
Actually now that I think of it I believe I had to disable saving stacks in ANY 
platform unless in development mode. 

Bob S


> On Oct 31, 2018, at 16:10 , Bob Sneidar  wrote:
> 
> I had this issue, because I was attempting to save from a standalone, and the 
> permissions were not set for writing to the place I was saving the stacks to. 
> I had to disable stack saving in Windows to prevent the CDT. 
> 
> Bob S
> 
> 
>> On Oct 31, 2018, at 10:26 , DAVID Epstein via use-livecode 
>>  wrote:
>> 
>> Does anyone else have problems dealing with large files on Windows 10?  My 
>> main LiveCode tool is a stack of about 1.5 MB, and I use it to create, save, 
>> and open LiveCode stacks that store text and graphics.  These "content" 
>> stacks can be anywhere from a few kilobytes to 50 MB or more.  On an iMac, 
>> these all run smoothly.  On Windows 10, my larger content stacks (>10 MB) 
>> will sometimes close unexpectedly, or crash LiveCode entirely.  The typical 
>> trigger is either executing a save command, or clicking on a list of cards 
>> to navigate to a card that contains a large table of text.
> 


___
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: Large files crash on Windows 10

2018-10-31 Thread Bob Sneidar via use-livecode
I had this issue, because I was attempting to save from a standalone, and the 
permissions were not set for writing to the place I was saving the stacks to. I 
had to disable stack saving in Windows to prevent the CDT. 

Bob S


> On Oct 31, 2018, at 10:26 , DAVID Epstein via use-livecode 
>  wrote:
> 
> Does anyone else have problems dealing with large files on Windows 10?  My 
> main LiveCode tool is a stack of about 1.5 MB, and I use it to create, save, 
> and open LiveCode stacks that store text and graphics.  These "content" 
> stacks can be anywhere from a few kilobytes to 50 MB or more.  On an iMac, 
> these all run smoothly.  On Windows 10, my larger content stacks (>10 MB) 
> will sometimes close unexpectedly, or crash LiveCode entirely.  The typical 
> trigger is either executing a save command, or clicking on a list of cards to 
> navigate to a card that contains a large table of text.


___
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: tree view hide key

2018-10-31 Thread Bob Sneidar via use-livecode
You and others have addressed a lot of the work I think, and thank you for that 
by the way. One of the things I would like to see is something akin to 
findRecord and findIndex in a datagrid. Of course, finding something several 
levels in requires that you would need to return not just a number, but a root 
node with the path to the found item, so you can reference it in the future, 
getting and setting anything in the "path". 

I wanted to create a list of items with a name and value, but then I realized I 
wanted to rearrange them, moving them up and down in the list. I also wanted to 
be able to double-click an item and put the value into another field. I call 
the feature "QuickNotes" where I have a pallette like stack I can double click 
text snippets to fill in a field with text I type often, as in a copier 
installation. 

In the end I used a datagrid so no big deal, but it left me wondering why I 
would ever use a tree view. But as you mentioned a lot of work is being done on 
it now. I cannot switch over to 9.1 yet because I made a custom change in the 
datagrid behavior which allows me to nest behaviors, so until that gets bundled 
into a release I cannot test any new changes (at least not with my current 
project). 

Bob S


> On Oct 30, 2018, at 15:47 , Brian Milby via use-livecode 
>  wrote:
> 
> What kind of work?  Here are a couple that I can think of that are not
> easily addressed:
> - Arbitrary sort would take significant changes (a couple options:  2 part
> key [1,firstkey], [2,asecondkey] or restructuring the array format to
> something like [key][title], [key][value] where the title and optionally
> value would be displayed and keys just used for sorting).
> - Inline editing is something that LCB doesn't support.
> 
> My goal is to submit a PR today that will facilitate keyboard navigation (I
> want to add a couple properties that can be controlled from LCS which can
> handle the keypresses).
> 
> Several code changes are already completed and either merged (9.1) or
> waiting review.
> - Numeric sort will now also sort the non-number entries below the numbers
> - If you select a row that is hidden by folding, it will expand to show the
> row
> - You can have the selected item scroll into view when selected
> - When an element is added interactively, it can be configured to
> auto-select the new element
> - You can reset the fold state to collapse the entire tree (optionally
> setting the arrayData at the same time)
> - MouseUp no longer registers as a click when the MouseDown was on a
> different row
> 
> I don't see anything else in the QCC for the Tree Widget that I can address
> at the moment.
> 
> Thanks,
> Brian
> 
> On Tue, Oct 30, 2018 at 5:08 PM Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Yeah I really tried to like the tree view widget but it needs work.
>> 
>> Sent from my iPhone
>> 
>>> On Oct 30, 2018, at 13:38, Mike Kerner via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> In tree view can you hide the keys of the array?  I was messing with
>> using
>>> it to display directory and subdirectory contents, but it seems that you
>>> have to display the key, which makes some other things more difficult.
>>> ___
>>> 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: Mysteries of Me

2018-10-31 Thread Bob Sneidar via use-livecode
Me is resolving correctly for me in stack, card and behavior scripts attached 
to them. The issue I think was that you cannot seem to reference card  of me 
in a stack script handler. So I created handlers that return the parent card or 
stack of an object. The object can be the long id of a card even, when getting 
the parent stack, and that you can use in any reference so far as I know. 

All it's doing is forcing the full card ID or stack name resolution so the 
parser doesn't need to use fuzzy logic. 

Bob S


> On Oct 31, 2018, at 09:04 , J. Landman Gay via use-livecode 
>  wrote:
> 
> A guess: "me" resolves correctly for controls only. Stacks and cards are not 
> controls, so behaviors attached to those resolve to the behavior script 
> itself. Since there are no cards in a behavior script, it fails. Maybe.
> --
> Jacqueline Landman Gay


___
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: Large files crash on Windows 10

2018-10-31 Thread tbodine via use-livecode
Hi,

I develop a stack that is now up to 35 MBs on a Windows 10 machine without
any crashes like you described. I use LC 7.1.4 Indy for this. I also
distribute standalones built with this stack and it is also stable on
Windows 10.

When you have these crashes, do you find the artifact ~ file that indicates
the Save process was interrupted or has failed?  Does the stack file become
corrupted?

Tom B.







--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: Continual iOS Simulator Problems

2018-10-31 Thread Matthias Rebbe via use-livecode
> 
> Am 30.10.2018 um 04:13 schrieb Brian Milby via use-livecode 
> :
> 
> Have you tried launching the simulator from Xcode first and after it is fully 
> loaded then trying to test from LC?

That´s how i am doing it, because pressing the test button in LC with the 
simulator not running produces here exact the same problems. First there are 
these notification messages that the simulator does not respond  or takes to 
long to start(or something like that - you all know that message) and i have to 
choose if want to continue. If i acknowledge to continue, then  the message 
appears after some time again and so on.

When i press the button to not continue, the simulator hangs. At least it does 
not respond for a very long time. I have to use the activity monitor to quit  
the simulator.

If i open the simulator first and wait until the iOS device is started 
completely, then i can test the LC app without a problem.

Unfortunately i very often forget to start the simulator first and and that 
then takes time i could use more useful.


Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de
https://winsignhelper.dermattes.de

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

Re: LiveCode Pseudo Captcha?

2018-10-31 Thread Rick Harrison via use-livecode
Nice!

I had also toyed with the idea of
radio buttons for multiple choice
questions and answers combined
perhaps with a date picker.

Any other ideas?

Thanks,

Rick

> On Oct 31, 2018, at 4:05 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> I haven't, but I used a regular form with two radio buttons. At first it said:
> 
> Please show us you are human:
> x I am a human
> x I'm a robot
> 
> Within 24 hours I received spam from a bot. So I changed it to:
> 
> Please choose the correct answer:
> x I am a mindless automaton
> x I think, therefore I am
> 
> And in the last several years I haven't had a single bot find the form. The 
> key, I believe, is to avoid any use of bot keywords like "human", "person", 
> "robot", "bot" or anything else similar. The above looks like an unimportant 
> picklist and they either ignore it or can't parse it.
> 
> A friend copied my form to his website and last I heard he hasn't had a bot 
> hit yet either.

___
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: LiveCode Pseudo Captcha?

2018-10-31 Thread kee nethery via use-livecode
We had a math question that was randomly generated.

What is the result of  ?

And for answers we would include the three answers that used the three possible 
operations. The question was in words, the answers were digits.

Seemed to work for us.

Kee


> On Oct 31, 2018, at 1:05 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 10/31/18 2:18 PM, Rick Harrison via use-livecode wrote:
>> I wanted to know if anyone has created a
>> Captcha type solution just using LiveCode?
> 
> I haven't, but I used a regular form with two radio buttons. At first it said:
> 
> Please show us you are human:
> x I am a human
> x I'm a robot
> 
> Within 24 hours I received spam from a bot. So I changed it to:
> 
> Please choose the correct answer:
> x I am a mindless automaton
> x I think, therefore I am
> 
> And in the last several years I haven't had a single bot find the form. The 
> key, I believe, is to avoid any use of bot keywords like "human", "person", 
> "robot", "bot" or anything else similar. The above looks like an unimportant 
> picklist and they either ignore it or can't parse it.
> 
> A friend copied my form to his website and last I heard he hasn't had a bot 
> hit yet either.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.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


Re: LiveCode Pseudo Captcha?

2018-10-31 Thread J. Landman Gay via use-livecode

On 10/31/18 2:18 PM, Rick Harrison via use-livecode wrote:

I wanted to know if anyone has created a
Captcha type solution just using LiveCode?


I haven't, but I used a regular form with two radio buttons. At first it 
said:


Please show us you are human:
x I am a human
x I'm a robot

Within 24 hours I received spam from a bot. So I changed it to:

Please choose the correct answer:
x I am a mindless automaton
x I think, therefore I am

And in the last several years I haven't had a single bot find the form. 
The key, I believe, is to avoid any use of bot keywords like "human", 
"person", "robot", "bot" or anything else similar. The above looks like 
an unimportant picklist and they either ignore it or can't parse it.


A friend copied my form to his website and last I heard he hasn't had a 
bot hit yet either.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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: Large files crash on Windows 10

2018-10-31 Thread Matthias Rebbe via use-livecode



> 
> Perhaps relevant is that on the Mac I mostly use LC 5.5, on Windows 10 I am 
> using LC Community 9.0 (dp4).

Just out of interest, did you try with LC 9.0 on Mac OS X also and is there a 
reason why you do not use 9.0.1?

Regards,
Matthias

Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de
https://winsignhelper.dermattes.de
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


LiveCode Pseudo Captcha?

2018-10-31 Thread Rick Harrison via use-livecode
Hi there,

I wanted to know if anyone has created a
Captcha type solution just using LiveCode?

(I am not a fan of Javascript as many users
turn it off for security reasons.)

I’m thinking some kind of pictures oriented
approach might be fun, but I am also wondering
what the best approach might be if I have to
roll my own version.

Any thoughts, suggestions, or ideas for
such a LiveCode server solution?

Thanks,

Rick
___
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: Continual iOS Simulator Problems

2018-10-31 Thread JJS via use-livecode

Does the emulator itself not work?

Or does your app not run on the emulator?

You can either hit the test button to run it on an open emulator.

But you can also create a standalone on mac and drag the the standalone 
file to the emulator (or was a real device) anyway can't remember but i 
did drag it towards devices in Xcode


But your Provisioning Profile is OK?


Op 30-10-2018 om 03:47 schreef Roger Guay via use-livecode:

Hi Folks,

I’m on a Mac with OS 10.14 and using LC 9.0.0 Indy, and I have the green square 
indication in LC prefs with SDK 11.2.

I can’t get the simulator to work with test target set to simulator 11.2. It 
simply takes too long to open and then crashes if I persist.

In fact, it seems to me that I’ve had this problem with the simulator not 
working in previous versions as well.

Any help or suggestions are greatly appreciated.

Thanks,

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

Large files crash on Windows 10

2018-10-31 Thread DAVID Epstein via use-livecode
Does anyone else have problems dealing with large files on Windows 10?  My main 
LiveCode tool is a stack of about 1.5 MB, and I use it to create, save, and 
open LiveCode stacks that store text and graphics.  These "content" stacks can 
be anywhere from a few kilobytes to 50 MB or more.  On an iMac, these all run 
smoothly.  On Windows 10, my larger content stacks (>10 MB) will sometimes 
close unexpectedly, or crash LiveCode entirely.  The typical trigger is either 
executing a save command, or clicking on a list of cards to navigate to a card 
that contains a large table of text.
Does anyone have relevant experiences or suggested remedies or ways of better 
diagnosing the problem?

Perhaps relevant is that on the Mac I mostly use LC 5.5, on Windows 10 I am 
using LC Community 9.0 (dp4).

Many thanks.
David Epstein

___
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: tree view hide key

2018-10-31 Thread Mike Kerner via use-livecode
I was thinking about using it for a directory view.  It seemed like a
natural fit - nodes are subdirectories and leaves are files.  You can't
just limit the hiliteChanged event to leaves, so you have to be able to
determine if the user clicked on a leaf or a node, and if it's a node
behave differently than if it's a leaf.
Nodes can't have values in the tree view, so using numeric keys and setting
the values to the filenames and telling the user to ignore the keys won't
work because the subfolder name won't even appear in the tree view if you
do that.  You could fake it by appending a fake key on the front of the
subfolder name, I suppose, but we're rapidly approaching "why not just use
a table field or dg" at that point, and I really don't want the key and the
value both appearing anyway.
In order to not have a key and a value appearing you have to set the keys
to the file (and subfolder) names.  In that case, though, you don't know if
the user just clicked on a leaf or a node, unless you go back to the array
and inspect it.
___
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: Mysteries of Me

2018-10-31 Thread J. Landman Gay via use-livecode
A guess: "me" resolves correctly for controls only. Stacks and cards are 
not controls, so behaviors attached to those resolve to the behavior script 
itself. Since there are no cards in a behavior script, it fails. Maybe.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 31, 2018 10:39:53 AM Bob Sneidar via use-livecode 
 wrote:


It's not a bug, it's a limitation (probably the wrong word) of the parser. 
As has been talked about in the past, messing with the parser is one of the 
least desirable things the devs have to do, and from what I have gleaned, 
they avoid it if at all possible. The parser is really where all the LC 
magic is. Currently the spells are working quite nicely. You don't want to 
mess with the magic. :-)


Bob S


On Oct 30, 2018, at 10:56 , Sannyasin Brahmanathaswami via use-livecode 
 wrote:


Hmm, is that a bug?  Should we report it? I think so.



On 10/30/18 5:54 AM, Bob Sneidar via use-livecode wrote:
Ah yes I've encountered this. What I do is I have 2 functions: 
getParentCard() and getParentStack(). pass the long id of any object on a 
card and they return the long id of the card, or the long filename of the 
stack respectively. Then you can use go tParentCard and that will compile. 
Your issue is in fact, why I wrote these functions! They are very simple as 
you can see:


function getParentCard pObjectID
  put offset("card id", pObjectID) into tStartChar
  put char tStartChar to -1 of pObjectID into tCardID
  return tCardID
end getParentCard

function getParentStack pObjectID
  put offset("stack ", pObjectID) into tStartChar
  put char tStartChar to -1 of pObjectID into tParentStack
  return tParentStack
end getParentStack

Bob S


On Oct 29, 2018, at 17:15 , Sannyasin Brahmanathaswami via use-livecode 
 wrote:


@tom  go card and go to card same thing.

@ bob

That's what I understand (as you have described it)

-- The behavior is set in the properties of a stack.
-- the SE suggestions "knows" this and on typing
go card...[List of cards in current stack appears... choose one)

# you get:

go card "my-audio-library" of me  #as we would expect

# but it gives an error; will not compile. You have to be explicit:

go card "my-audio-library" of this stack

# then it compiles

-- re: backscript

function isThisTrue() then
  go card "my-audio-library" of me  # as per SE suggestions
 # generates an error
end isThisTrue

# isThisTrue , is part of a back script. It won't compile
# I wondered it that was causing a reference change
# because this works

function isThisTrue() then
  go card "my-audio-library" of this stack
end isThisTrue




___
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: Mysteries of Me

2018-10-31 Thread Bob Sneidar via use-livecode
It's not a bug, it's a limitation (probably the wrong word) of the parser. As 
has been talked about in the past, messing with the parser is one of the least 
desirable things the devs have to do, and from what I have gleaned, they avoid 
it if at all possible. The parser is really where all the LC magic is. 
Currently the spells are working quite nicely. You don't want to mess with the 
magic. :-)

Bob S


> On Oct 30, 2018, at 10:56 , Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> Hmm, is that a bug?  Should we report it? I think so.
> 
> 
> 
> On 10/30/18 5:54 AM, Bob Sneidar via use-livecode wrote:
>> Ah yes I've encountered this. What I do is I have 2 functions: 
>> getParentCard() and getParentStack(). pass the long id of any object on a 
>> card and they return the long id of the card, or the long filename of the 
>> stack respectively. Then you can use go tParentCard and that will compile. 
>> Your issue is in fact, why I wrote these functions! They are very simple as 
>> you can see:
>> 
>> function getParentCard pObjectID
>>   put offset("card id", pObjectID) into tStartChar
>>   put char tStartChar to -1 of pObjectID into tCardID
>>   return tCardID
>> end getParentCard
>> 
>> function getParentStack pObjectID
>>   put offset("stack ", pObjectID) into tStartChar
>>   put char tStartChar to -1 of pObjectID into tParentStack
>>   return tParentStack
>> end getParentStack
>> 
>> Bob S
>> 
>> 
>>> On Oct 29, 2018, at 17:15 , Sannyasin Brahmanathaswami via use-livecode 
>>>  wrote:
>>> 
>>> @tom  go card and go to card same thing.
>>> 
>>> @ bob
>>> 
>>> That's what I understand (as you have described it)
>>> 
>>> -- The behavior is set in the properties of a stack.
>>> -- the SE suggestions "knows" this and on typing
>>> go card...[List of cards in current stack appears... choose one)
>>> 
>>> # you get:
>>> 
>>> go card "my-audio-library" of me  #as we would expect
>>> 
>>> # but it gives an error; will not compile. You have to be explicit:
>>> 
>>> go card "my-audio-library" of this stack
>>> 
>>> # then it compiles
>>> 
>>> -- re: backscript
>>> 
>>> function isThisTrue() then
>>>   go card "my-audio-library" of me  # as per SE suggestions
>>>  # generates an error
>>> end isThisTrue
>>> 
>>> # isThisTrue , is part of a back script. It won't compile
>>> # I wondered it that was causing a reference change
>>> # because this works
>>> 
>>> function isThisTrue() then
>>>   go card "my-audio-library" of this stack
>>> end isThisTrue
> 
> 
> 
> ___
> 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: tree view hide key

2018-10-31 Thread Brian Milby via use-livecode
Tree view displays a LiveCode array, so everything is key-value.  What you
are running up against is that the value is either a string or an array.
What are you wanting to use as a key?  How are you storing the data now
prior to presentation?

That is probably the single issue that can't be readily addressed.  If you
can represent your data as a LiveCode array where keys are sorted either
numerically or alphabetically, then the tree view widget can present the
data.  Extending the widget to hide the value would not be that difficult
though.

In the tree view, non-leaf nodes have the disclosure triangle.  Are you
talking about when you get the hilitedElement?

Thanks,
Brian


On Wed, Oct 31, 2018 at 8:09 AM Mike Kerner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> • Nodes can't have both keys and values, only leaves can
> • You can't hide the key
> • Hiding the key is kind of important if you're trying to use it for a
> directory tree view.  Working around this requires assigning keys only but
> no values, but if you do that then you can't figure out (without looking at
> the array) whether you are dealing with a leaf or a node.
>
>
> On Tue, Oct 30, 2018 at 6:43 PM Brian Milby via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > What kind of work?  Here are a couple that I can think of that are not
> > easily addressed:
> > - Arbitrary sort would take significant changes (a couple options:  2
> part
> > key [1,firstkey], [2,asecondkey] or restructuring the array format to
> > something like [key][title], [key][value] where the title and optionally
> > value would be displayed and keys just used for sorting).
> > - Inline editing is something that LCB doesn't support.
> >
> > My goal is to submit a PR today that will facilitate keyboard navigation
> (I
> > want to add a couple properties that can be controlled from LCS which can
> > handle the keypresses).
> >
> > Several code changes are already completed and either merged (9.1) or
> > waiting review.
> > - Numeric sort will now also sort the non-number entries below the
> numbers
> > - If you select a row that is hidden by folding, it will expand to show
> the
> > row
> > - You can have the selected item scroll into view when selected
> > - When an element is added interactively, it can be configured to
> > auto-select the new element
> > - You can reset the fold state to collapse the entire tree (optionally
> > setting the arrayData at the same time)
> > - MouseUp no longer registers as a click when the MouseDown was on a
> > different row
> >
> > I don't see anything else in the QCC for the Tree Widget that I can
> address
> > at the moment.
> >
> > Thanks,
> > Brian
> >
> > On Tue, Oct 30, 2018 at 5:08 PM Bob Sneidar via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > Yeah I really tried to like the tree view widget but it needs work.
> > >
> > > Sent from my iPhone
> > >
> > > > On Oct 30, 2018, at 13:38, Mike Kerner via use-livecode <
> > > use-livecode@lists.runrev.com> wrote:
> > > >
> > > > In tree view can you hide the keys of the array?  I was messing with
> > > using
> > > > it to display directory and subdirectory contents, but it seems that
> > you
> > > > have to display the key, which makes some other things more
> difficult.
> > > > ___
> > > > 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
> >
>
>
> --
> 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
___
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

system date also works with the long system date?

2018-10-31 Thread Klaus major-k via use-livecode
Hi friends,

quick question, see subject, just to be sure.
Maybe someone can confirm this.


Problem, LC on ANDROID still does not support the system date,
so sorting by date in a datagrid does not work for non-english dates.

This just one of the inconveniences resulting from this missing feature

Who also thinks this SHOULD work on Android (4 years after the confirmed 
report), 
please consider to add comment here: 



Best

Klaus

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


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


Re: tree view hide key

2018-10-31 Thread Mike Kerner via use-livecode
• Nodes can't have both keys and values, only leaves can
• You can't hide the key
• Hiding the key is kind of important if you're trying to use it for a
directory tree view.  Working around this requires assigning keys only but
no values, but if you do that then you can't figure out (without looking at
the array) whether you are dealing with a leaf or a node.


On Tue, Oct 30, 2018 at 6:43 PM Brian Milby via use-livecode <
use-livecode@lists.runrev.com> wrote:

> What kind of work?  Here are a couple that I can think of that are not
> easily addressed:
> - Arbitrary sort would take significant changes (a couple options:  2 part
> key [1,firstkey], [2,asecondkey] or restructuring the array format to
> something like [key][title], [key][value] where the title and optionally
> value would be displayed and keys just used for sorting).
> - Inline editing is something that LCB doesn't support.
>
> My goal is to submit a PR today that will facilitate keyboard navigation (I
> want to add a couple properties that can be controlled from LCS which can
> handle the keypresses).
>
> Several code changes are already completed and either merged (9.1) or
> waiting review.
> - Numeric sort will now also sort the non-number entries below the numbers
> - If you select a row that is hidden by folding, it will expand to show the
> row
> - You can have the selected item scroll into view when selected
> - When an element is added interactively, it can be configured to
> auto-select the new element
> - You can reset the fold state to collapse the entire tree (optionally
> setting the arrayData at the same time)
> - MouseUp no longer registers as a click when the MouseDown was on a
> different row
>
> I don't see anything else in the QCC for the Tree Widget that I can address
> at the moment.
>
> Thanks,
> Brian
>
> On Tue, Oct 30, 2018 at 5:08 PM Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Yeah I really tried to like the tree view widget but it needs work.
> >
> > Sent from my iPhone
> >
> > > On Oct 30, 2018, at 13:38, Mike Kerner via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > > In tree view can you hide the keys of the array?  I was messing with
> > using
> > > it to display directory and subdirectory contents, but it seems that
> you
> > > have to display the key, which makes some other things more difficult.
> > > ___
> > > 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
>


-- 
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: Browser widget and mailto link.

2018-10-31 Thread Ludovic THEBAULT via use-livecode

> Le 30 oct. 2018 à 19:08, Ludovic THEBAULT via use-livecode 
>  a écrit :
> 
> Hello,
> 
> is it normal that email links (mailto:x...@xx.com 
>  »>my mail) do not work in a web page displayed with 
> the browser widget?
> Livecode 9.01 - tested on iOS.
> 

I’ve made a sample stack and opened a bug : 
https://quality.livecode.com/show_bug.cgi?id=21666 


It’s work on android but not on iOS (12 at least). 
here a table of what it work ‘x' or not ‘-‘ after my test (livecode 8 for 
windows)

iOS Android Macos   Win
Widget browser  -   x   -   -   
Mobile browser  x   x   
Browser (desktop)   -   x
___
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