Re: Identifying IDE stacks

2018-04-27 Thread J. Landman Gay via use-livecode
This has been informative. IDEUserMainStacks() is exactly what I want, I don't care about substacks at the moment. With four or five different ways to get the info, I think all bases are covered. Many thanks to those who have the courage to dig through the IDE scripts. On 4/27/18 7:42 PM,

Re: Identifying IDE stacks

2018-04-27 Thread Brian Milby via use-livecode
If you just want a list then: ideUserMainStacks will provide part of what you are looking for (no sub stacks in my brief test). If you want substacks too, then use: revLoadedStacks (Common library) On Fri, Apr 27, 2018 at 7:24 PM Mark Wieder via use-livecode < use-livecode@lists.runrev.com>

Re: Identifying IDE stacks

2018-04-27 Thread Mark Wieder via use-livecode
On 04/27/2018 03:40 PM, Bob Sneidar via use-livecode wrote: Redundantly redundant. Heh. There's a hierarchy here: revIDEStackIsIDEStack(id) calls revIDEStackNameIsIDEStack(short name) which calls revStackNameIsIDEStack(short name) ... which may call revInternal__ListLoadedLibraries(), but

Project Browser - Sort Stack Preferences

2018-04-27 Thread Sannyasin Brahmanathaswami via use-livecode
I was trying the Project Browser's prefs. Sort stacks by layer ascending. It reverts to "Name" … can't keep it stick to "layer" 8.1.10 rc 1 Any else see this? BR ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Identifying IDE stacks

2018-04-27 Thread J. Landman Gay via use-livecode
Interesting...so there are two ways. It looks like revIDEStackIsIDEStack needs a long id, and revStackNameIsIDEStack needs only the short name but will also accept a long ID. Thanks for finding the list of qualifications. On 4/27/18 5:09 PM, Mark Wieder via use-livecode wrote: On 04/27/2018

Re: Identifying IDE stacks

2018-04-27 Thread Bob Sneidar via use-livecode
Redundantly redundant. Bob S > On Apr 27, 2018, at 14:59 , Ali Lloyd via use-livecode > wrote: > > That would be revIDEStackIsIDEStack ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this

Re: Detailed File Information for One File

2018-04-27 Thread Bob Sneidar via use-livecode
> On Apr 27, 2018, at 13:39 , Richard Gaskin via use-livecode > wrote: > > Bob Sneidar wrote: > >> Not to beat a severely wounded horse, but one reason for implementing >> a detailed file function (and probably why it hasn't been tackled) is >> that getting the

Re: Q on Accessing multi-dimension arrays.

2018-04-27 Thread Ali Lloyd via use-livecode
I must confess, ‘fettle’ is very much a Waddingham-ism that I have found myself using increasingly often! On Fri, 27 Apr 2018 at 20:17, Ralph DiMola via use-livecode < use-livecode@lists.runrev.com> wrote: > What's the difference between a violin and a fiddle? > A violin has strings and a fiddle

Re: Identifying IDE stacks

2018-04-27 Thread Mark Wieder via use-livecode
On 04/27/2018 02:45 PM, J. Landman Gay via use-livecode wrote: It used to be we could identify IDE stacks because their names started with "rev" but that's not true anymore. I want to scan for and list any open non-IDE stacks. Does anyone know offhand if there's an existing function in the IDE

Re: Identifying IDE stacks

2018-04-27 Thread J. Landman Gay via use-livecode
Thanks Ali. :) On 4/27/18 4:59 PM, Ali Lloyd via use-livecode wrote: That would be revIDEStackIsIDEStack On Fri, Apr 27, 2018 at 10:45 PM J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: It used to be we could identify IDE stacks because their names started with "rev"

Re: Identifying IDE stacks

2018-04-27 Thread Ali Lloyd via use-livecode
That would be revIDEStackIsIDEStack On Fri, Apr 27, 2018 at 10:45 PM J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > It used to be we could identify IDE stacks because their names started > with "rev" but that's not true anymore. I want to scan for and list any > open

Identifying IDE stacks

2018-04-27 Thread J. Landman Gay via use-livecode
It used to be we could identify IDE stacks because their names started with "rev" but that's not true anymore. I want to scan for and list any open non-IDE stacks. Does anyone know offhand if there's an existing function in the IDE that identifies IDE stacks? Or maybe there's a property to

Re: Splitting long elements into two lines in an Option Menu

2018-04-27 Thread Richmond Mathewson via use-livecode
Well that chopping up doesn't have to take place between fields: it could, say, start with the string in a string-variable, and the chopped-up bits end up in a 2-dimensional array. Richmond. On 27/4/2018 5:47 pm, Bob Sneidar via use-livecode wrote: On a mobile device?? Bob S On Apr 27,

Question: script only stacks in iOS?

2018-04-27 Thread William Prothero via use-livecode
Folks: I can’t seem to get an external script only stack to get assigned to the “Stacks” list for an iOS app in LC 9.0.0. Thus, it appears to me that all stacks must be substacks in iOS. Is this true? Best, Bill William A. Prothero http://earthlearningsolutions.org

Re: Detailed File Information for One File

2018-04-27 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: Not to beat a severely wounded horse, but one reason for implementing a detailed file function (and probably why it hasn't been tackled) is that getting the detailed file information from a command shell is decidedly NOT straightforward. Shell is great for things we can't

Re: create widget

2018-04-27 Thread J. Landman Gay via use-livecode
Or, if you are among those who have access to a working dictionary, click the "Widget" type in the left sidebar to see the list. On 4/27/18 2:25 PM, Mark Wieder via use-livecode wrote: On 04/27/2018 11:40 AM, Richmond Mathewson via use-livecode wrote: BUT . . . where does one find a catalog

Re: create widget

2018-04-27 Thread Mark Wieder via use-livecode
On 04/27/2018 11:40 AM, Richmond Mathewson via use-livecode wrote: BUT . . . where does one find a catalog of all the kinds of widget available? A catalog of all widgets available would be extremely useful. put revideextensions() into tArray; put the keys of tArray if you just want widgets,

RE: Q on Accessing multi-dimension arrays.

2018-04-27 Thread Ralph DiMola via use-livecode
What's the difference between a violin and a fiddle? A violin has strings and a fiddle has strgs. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of

create widget

2018-04-27 Thread Richmond Mathewson via use-livecode
"Create a widget control of the specified kind" sounds groovy . . . "create widget "My Navbar" as "com.livecode.widget.navbar" even groovier . . . BUT . . . where does one find a catalog of all the kinds of widget available? A catalog of all widgets available would be extremely useful.

Re: Enable/disable Group enables/disables all children

2018-04-27 Thread Bob Sneidar via use-livecode
> On Apr 27, 2018, at 10:04 , Mark Waddingham via use-livecode > wrote: > > You can't tell what the state of disabled was of a child before the owning > group's disabled property is set - that's the problem. > > Imagine we change this without any regard for

Re: Detailed File Information for One File

2018-04-27 Thread Bob Sneidar via use-livecode
Not to beat a severely wounded horse, but one reason for implementing a detailed file function (and probably why it hasn't been tackled) is that getting the detailed file information from a command shell is decidedly NOT straightforward. *NIX has an ls function, and also has a date function.

Re: Enable/disable Group enables/disables all children

2018-04-27 Thread Mark Waddingham via use-livecode
On 2018-04-27 16:57, Bob Sneidar via use-livecode wrote: Darned if you do, darned if you don't. I get it. Still, looking at your example, it begs the question, what was the state of the enabled property for the individual objects before the parent group was disabled? The current situation is

RE: Enable/disable Group enables/disables all children

2018-04-27 Thread Ralph DiMola via use-livecode
I ran into this on a card basis. I have a handler that loops thru all controls and disables(and dims) them so a user can't do anything until some function is complete and a complementary handler that enables them all. This became a problem if one of the controls on the card was disabled. To

Re: Hex to Decimal 2s Complement

2018-04-27 Thread Mark Wieder via use-livecode
On 04/27/2018 02:41 AM, Alex Tweedly via use-livecode wrote: I should know this - but don't any more :-) So there may be a corner case to fix up - but in general, something like *put*thetextoffld"F"intotemp* put*baseconvert(temp,16,10) intot1* if* t1 > 32767*then* *put*t1-65536intot1* end*

Re: Detailed File Information for One File

2018-04-27 Thread Brian Milby via use-livecode
Are you sure about that? Some apps delete/recreate vice actually modifying an existing file. On Fri, Apr 27, 2018 at 9:44 AM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Funny you should mention that. I thought about doing this, but then I have > to think about checking

Re: Enable/disable Group enables/disables all children

2018-04-27 Thread Bob Sneidar via use-livecode
Darned if you do, darned if you don't. I get it. Still, looking at your example, it begs the question, what was the state of the enabled property for the individual objects before the parent group was disabled? The current situation is exactly what your objection describes. :-) I worked around

Re: Q on Accessing multi-dimension arrays.

2018-04-27 Thread Bob Sneidar via use-livecode
Fettling! I'm going to start using that! fet·tle ˈfedl/ verb gerund or present participle: fettling • trim or clean the rough edges of (a metal casting or a piece of pottery) before firing. Apparently appropriate as well. Pronounced like feddle, likely where we get our fiddle with.

Re: Splitting long elements into two lines in an Option Menu

2018-04-27 Thread Bob Sneidar via use-livecode
On a mobile device?? Bob S > On Apr 27, 2018, at 02:09 , Richmond via use-livecode > wrote: > > I've just set up a stack containing 2 fields; one called "fff" containing your > > original string, another called "fCHOPPED" that is a scrolling list field. > > I

Re: Detailed File Information for One File

2018-04-27 Thread Bob Sneidar via use-livecode
Funny you should mention that. I thought about doing this, but then I have to think about checking to see if the file is open somewhere else. In some cases it would work though. As an aside, I noticed yesterday that modifying a file on MacOS updates not only the modify date but the CREATION

Re: Detailed File Information for One File

2018-04-27 Thread Bob Sneidar via use-livecode
I added my 2¢ Bob S > On Apr 26, 2018, at 16:25 , Richard Gaskin via use-livecode > wrote: > > I do not believe this has been implemented yet: > https://quality.livecode.com/show_bug.cgi?id=20384 > > That said, wasteful as "the detailed files" is it's probably

Re: Detailed File Information for One File

2018-04-27 Thread Eller, Roger via use-livecode
If you have the path and filename, you could create a subfolder "temp" just for the purpose of reading the details of a single file. ## THIS IS NOT A SCRIPT -- LOL move the file into "temp". get the detailed fiiles. move the file from "temp" back to where you got it from. ~Roger

Re: Hex to Decimal 2s Complement

2018-04-27 Thread Camm via use-livecode
Alex , You got it ! I forgot the > 32767 !! Great thanks Camm - Original Message - From: "Alex Tweedly via use-livecode" To: use-livecode@lists.runrev.com Cc: "Alex Tweedly" Sent: Friday, 27 April, 2018 10:41:27 AM Subject: Re: Hex to

Re: Open printing to PDF error

2018-04-27 Thread Trevor DeVore via use-livecode
On Thu, Apr 26, 2018 at 9:36 AM Paul Dupuis via use-livecode < use-livecode@lists.runrev.com> wrote: > I have a user who ran into the error "printing: Unknown destination: > (Line 0, column 0)" when executing a line in my code that was "Open > printing to PDF " Try testing a filename that has

Re: Hex to Decimal 2s Complement

2018-04-27 Thread Alex Tweedly via use-livecode
I should know this - but don't any more :-) So there may be a corner case to fix up - but in general, something like *put*thetextoffld"F"intotemp* put*baseconvert(temp,16,10) intot1* if* t1 > 32767*then* *put*t1-65536intot1* end* *if* should do it. -- Alex. On 27/04/2018 10:27, Camm via

Re: Hex to Decimal 2s Complement

2018-04-27 Thread Camm via use-livecode
Richmond , Yes , thanks I have seen xor(Hex) +1 , but just asking if anyone has a solution ? FFCC = -52 014A = 330 Anyone ? Regards Camm - Original Message - From: "Richmond via use-livecode" To: "Camm via use-livecode"

Re: Hex to Decimal 2s Complement

2018-04-27 Thread Richmond via use-livecode
I think you will have to perform several operations here: 1. convert Hex number to Binary number. 2. find Complement of Binary number. 3. convert Complement to Decimal number. Your "main problem" is that YOU have to work out the algorhythm to get the complement as LiveCode does not have that

Re: Hex to Decimal 2s Complement

2018-04-27 Thread Camm via use-livecode
Two's complement is a mathematical operation on binary numbers, best known for its role in computing as a method of signed number representation. For this reason, it is the most important example of a radix complement. The two's complement of an N-bit number is defined as its complement with

Re: Hex to Decimal 2s Complement

2018-04-27 Thread Richmond via use-livecode
Well, unless you can explain to me what "2s Complement" means I cannot help you. Richmond. On 27.04.2018 12:06, Camm via use-livecode wrote: Richmond , Tried baseconvert but could not get the correct result for 2s Complement. Regards Camm - Original Message - From: "Richmond via

Re: Splitting long elements into two lines in an Option Menu

2018-04-27 Thread Richmond via use-livecode
I've just set up a stack containing 2 fields; one called "fff" containing your original string, another called "fCHOPPED" that is a scrolling list field. I have a button containing this script: on mouseUp    put fld "fff" into FFF    set the itemDelimiter to ","    put 1 into KOUNT    repeat

Re: Hex to Decimal 2s Complement

2018-04-27 Thread Camm via use-livecode
Richmond , Tried baseconvert but could not get the correct result for 2s Complement. Regards Camm - Original Message - From: "Richmond via use-livecode" To: "Camm via use-livecode" Cc: "Richmond"

Re: Hex to Decimal 2s Complement

2018-04-27 Thread Richmond via use-livecode
Check out *baseConvert* in the dictionary. Richmond. On 27.04.2018 11:50, Camm via use-livecode wrote: Hi , Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range - Example :- FFCC = -52 014A = 330 Kind Regards Camm

Hex to Decimal 2s Complement

2018-04-27 Thread Camm via use-livecode
Hi , Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range - Example :- FFCC = -52 014A = 330 Kind Regards Camm ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit

Re: Q on Accessing multi-dimension arrays.

2018-04-27 Thread Ali Lloyd via use-livecode
Which reminds me - the tree view widget should probably use the list form of a path directly instead of fettling with a path delimiter property On Fri, Apr 27, 2018 at 12:26 AM Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: > Thanks Brian, Bernd, and everyone else. > >

Re: Enable/disable Group enables/disables all children

2018-04-27 Thread Mark Waddingham via use-livecode
On 2018-04-27 08:15, Mark Waddingham via use-livecode wrote: The 'disabled' property should be effectively computed as the logical and of all the parent's property values This should be 'logical or' - i.e. a control is disabled if any one of its parent controls is. It is 'logical and' for the

Re: Enable/disable Group enables/disables all children

2018-04-27 Thread Mark Waddingham via use-livecode
On 2018-04-26 19:06, Bob Sneidar via use-livecode wrote: Hi all. I have a group that contains a number of objects, buttons, menus, fuelds and groups. I just noticed that if I disable a group (so that none of the objects in the group can be interacted with) I get the desired effect. However when