Re: Hide stack change focus not supported 64bit

2020-03-30 Thread Bill Vlahos via use-livecode
Paul,

Your AppHide/AppUnhide sounds perfect. I will try it.

Thank you,
Bill Vlahos

> On Mar 30, 2020, at 7:58 PM, Paul McClernan via use-livecode 
>  wrote:
> 
> (Sorry, hit send too soon).
> You can easily use AppleScript mixed with LiveCode script to change focus
> to another app:
> 
> *do *"tell application "& quote& "PhotoShop"& quote& " to activate"as
> AppleScript
> 
> You could also use AppHide / AppUnhide from my LCB Library macOSTools
> to minimize your stack which automatically switches to whatever the next
> running app is. See the test stack, which uses the above AppleScript to
> switch focus back to LiveCode after the AppHide command.
> Download from here:
> https://github.com/PaulMcClernan/LCB_macOSTools
> 
> On Mon, Mar 30, 2020 at 10:49 PM Paul McClernan 
> wrote:
> 
>> You can easily use AppleScript mixed with LiveCode script to change focus
>> to another app
>> 
>> On Sun, Mar 29, 2020 at 5:18 PM Bill Vlahos via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> 
>>> I have a stack that needs to hide itself so a different window (other
>>> application) is now the frontmost window so my application can use
>>> AppleScript keystroke command to enter information into the other window.
>>> 
>>> When I issue the command hide this stack my application window disappears
>>> but doesn’t lose focus. The target application that was behind my floating
>>> window doesn’t become the frontmost application.
>>> 
>>> The documentation in 9.5.1 says that hide stack is not supported in
>>> 64bit. What is the alternative for MacOS X 64bit to temporarily hide my
>>> application?
>>> 
>>> Thank you,
>>> Bill Vlahos
>>> ___
>>> 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: Hide stack change focus not supported 64bit

2020-03-30 Thread Paul McClernan via use-livecode
(Sorry, hit send too soon).
You can easily use AppleScript mixed with LiveCode script to change focus
to another app:

*do *"tell application "& quote& "PhotoShop"& quote& " to activate"as
AppleScript

You could also use AppHide / AppUnhide from my LCB Library macOSTools
to minimize your stack which automatically switches to whatever the next
running app is. See the test stack, which uses the above AppleScript to
switch focus back to LiveCode after the AppHide command.
Download from here:
https://github.com/PaulMcClernan/LCB_macOSTools

On Mon, Mar 30, 2020 at 10:49 PM Paul McClernan 
wrote:

> You can easily use AppleScript mixed with LiveCode script to change focus
> to another app
>
> On Sun, Mar 29, 2020 at 5:18 PM Bill Vlahos via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>>
>> I have a stack that needs to hide itself so a different window (other
>> application) is now the frontmost window so my application can use
>> AppleScript keystroke command to enter information into the other window.
>>
>> When I issue the command hide this stack my application window disappears
>> but doesn’t lose focus. The target application that was behind my floating
>> window doesn’t become the frontmost application.
>>
>> The documentation in 9.5.1 says that hide stack is not supported in
>> 64bit. What is the alternative for MacOS X 64bit to temporarily hide my
>> application?
>>
>> Thank you,
>> Bill Vlahos
>> ___
>> 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: Hide stack change focus not supported 64bit

2020-03-30 Thread Paul McClernan via use-livecode
You can easily use AppleScript mixed with LiveCode script to change focus
to another app

On Sun, Mar 29, 2020 at 5:18 PM Bill Vlahos via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> I have a stack that needs to hide itself so a different window (other
> application) is now the frontmost window so my application can use
> AppleScript keystroke command to enter information into the other window.
>
> When I issue the command hide this stack my application window disappears
> but doesn’t lose focus. The target application that was behind my floating
> window doesn’t become the frontmost application.
>
> The documentation in 9.5.1 says that hide stack is not supported in 64bit.
> What is the alternative for MacOS X 64bit to temporarily hide my
> application?
>
> Thank you,
> Bill Vlahos
> ___
> 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: DataGrid question...

2020-03-30 Thread Niggemann, Bernd via use-livecode


>Peter Bogdanoff wrote:

>Does anyone have a link to obtain Bernd's modTableField ?

Here is a link to the latest version of modifiedTableField

berndniggemann.on-rev.com/mtf/modTableField.zip

there is a zip of a demo stack with a helper stack and a .rtf document with the 
API

Use the demo stack to explore modTableField. Have a little patience to explore. 
It shows many options. Please have a look at the API document to get a feeling 
how to address and query modTableField.

If you want to use modTableField in a project copy the group "modTableField 1" 
from the demo stack to your stack and use the API to work with it.

This version is HTML5 safe. There was a superfluous wait in former versions. 
Hermann used tinyDict with his HTML5 demo of an IDE.

tinyDictionary uses modTableField

There are a couple of users that seem quite content with modTableField (thanks 
Jerry for mentioning it)

I would be happy to know if anybody uses modTableField in a project. (aside 
from the people that mailed me before).

If you have questions please feel free to email me.

Kind regards
Bernd


___
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: DataGrid question...

2020-03-30 Thread Curry Kenworthy via use-livecode


Pi:

> I’m not sure this is what Curry was thinking of. What do you think
> he was eluding to. We’ve ‘known’ this for years now apparently.

I love the humor so far - well done, kind of like a skit/spoof of Fake 
News flailing under the weight of Accurate Facts yet insistently 
demanding more, LOL, if that was your intent. OK, I'll join in the fun 
and play straight man in the act to ham it up and help give cooped up 
people at home a much-needed laugh, and educational to boot. Our own 
little Punch and Judy show. Just this one more email though; I've been 
sick for weeks and need to catch up on work, so extra typing has to be 
very limited.


Generally known (your claim, not mine): List members quickly provided 
starter code for not 1 but 2 separate approaches. I'd say the existence 
of tabstops and clickH/mouseH is fairly well-known. Just a matter of 
actually applying what is known - that's a key skill and we've just seen 
a real live demo of several people doing exactly that. Good job, all!


Long time: Check. Tabstops and mouseH have been there since LC/RR 1.0, 
if the dictionary can be trusted for once. That's quite a while. I 
myself published an optimized column function back in 2011 or 2012 with 
SpreadLib (and my critics keep reminding me that was a long time ago; 
they can't have it both ways) so I assume I'd probably been using 
rougher column code for several years before that. And I assume other 
people did too.


(But I admit, on a geological time scale that's just the blink of an 
eye. And in the course of human civilization, I don't have any handy 
evidence that people in ancient Catal Huyuk or Jericho were using 
similar methods. However even animals have an innate sense of comparing 
larger and smaller amounts, and early civilizations solved highly 
complex problems, so I wouldn't underestimate them; I think the average 
scholar back then was very smart, and placing a given value into a 
series of values should be doable IMHO. But to stick to proven facts, 
it's indeed a "long" time in LiveCode terms, the capability was 
available for almost as long as LC/RR itself. But not in geological 
terms or "God's time" and the life of our universe; I'm afraid the Fake 
News might have me over a barrel on possible meanings of the word long.) :-)


Providing people have some background on field props, this is no trouble 
at all! I don't believe all learning should be by rote, AKA either 
someone has seen the explicit code and heard a spiel, or else he/she is 
completely helpless and innocent of the entire concept. For LC tutoring 
I would place a "which column" coding challenge exercise as: Beginner 
skill level for known provided equal-width tabstops, Intermediate for 
rough handling all field tabstops, and Advanced for a cleaner/shorter 
optimized and polished solution and/or handling paragraph-level 
settings. Never claimed it was a one-liner (typical fake news "flailing" 
with hyperbole, common media tactic) but as demo'd here it's not hard to 
make your own function, for those not function-averse or 
performance-averse. But yes the field is underappreciated and much 
sexier than the gossip and hearsay crowd gives it credit for. So it's 
great that we are increasing awareness and understanding and driving a 
stake into the heart of some misconceptions!


That concludes my brief battle to fortify field users against Fake 
News...for this round, but the war for hearts and minds never ends in 
our 24/7 media cycle! So I'll fly away back to my sickbed lair to 
recuperate (but not lick my wounds or touch my face) until the next time 
Forces of Misinformation and Mayhem rise once more from the gutters and 
perch on the gorgoyles to threaten the code-izens of our fair virtual 
metropolis. Carry on!


Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.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: Hide stack change focus not supported 64bit

2020-03-30 Thread Paul Hibbert via use-livecode
Have you looked at the Launch command?

launch [documentPath with] applicationPath

Documentation:

Description
Use the launch command to start an application for the user to use.

When the launch command executes, the application being launched comes to the 
foreground. When the user quits, LiveCode comes to the foreground.

If no documentPath is specified, the following two statements are equivalent:

launch application
open process application for neither


Or maybe, Launch document or Launch URL

Paul


> On Mar 29, 2020, at 14:17, Bill Vlahos via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> 
> I have a stack that needs to hide itself so a different window (other 
> application) is now the frontmost window so my application can use 
> AppleScript keystroke command to enter information into the other window.
> 
> When I issue the command hide this stack my application window disappears but 
> doesn’t lose focus. The target application that was behind my floating window 
> doesn’t become the frontmost application.
> 
> The documentation in 9.5.1 says that hide stack is not supported in 64bit. 
> What is the alternative for MacOS X 64bit to temporarily hide my application?
> 
> Thank you,
> Bill Vlahos
> ___
> 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



Paul
p...@livecode.org

macOS Mojave 10.14




___
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: DataGrid question...

2020-03-30 Thread Alex Tweedly via use-livecode

Yeah,  mtfDataItemClicked calls gatherItemClickedInfo to get the info :-)


On 30/03/2020 21:07, Jerry Jensen via use-livecode wrote:

In modTableField there’s a function for that:
mtfDataItemClicked pColumnClicked, pLineClicked, pItemContent, pGroupName


On Mar 30, 2020, at 3:49 AM, Alex Tweedly via use-livecode 
 wrote:

I don't know of a simple way to do it.

However, Bernd's modTableField does do it, and it uses regular fields, and it's 
open source - so I took a very quick look there.

It's not simple :-)

But there's a function 'gatherItemClickedInfo' that (with some modifications) 
might be the foundation of a general handler for you.

___
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: DataGrid question...

2020-03-30 Thread Jerry Jensen via use-livecode
I am updating a project that used modTableField. I emailed Bernd to see what 
the current version is. Its 0.3.3.9 and he emailed it to me. I don’t have a 
link, but Bernd’s email is:
Niggemann, Bernd" 
I’m a big fan!
Jerry Jensen

> On Mar 30, 2020, at 1:38 PM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Does anyone have a link to obtain Bernd's modTableField ?
> 
> Peter Bogdanoff
> 
> 
>> On Mar 30, 2020, at 1:07 PM, Jerry Jensen via use-livecode 
>>  wrote:
>> 
>> In modTableField there’s a function for that:
>> mtfDataItemClicked pColumnClicked, pLineClicked, pItemContent, pGroupName
>> 
>>> On Mar 30, 2020, at 3:49 AM, Alex Tweedly via use-livecode 
>>>  wrote:
>>> 
>>> I don't know of a simple way to do it.
>>> 
>>> However, Bernd's modTableField does do it, and it uses regular fields, and 
>>> it's open source - so I took a very quick look there.
>>> 
>>> It's not simple :-)
>>> 
>>> But there's a function 'gatherItemClickedInfo' that (with some 
>>> modifications) might be the foundation of a general handler for you.
>> 
>> ___
>> 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: DataGrid question...

2020-03-30 Thread Peter Bogdanoff via use-livecode
Does anyone have a link to obtain Bernd's modTableField ?

Peter Bogdanoff


> On Mar 30, 2020, at 1:07 PM, Jerry Jensen via use-livecode 
>  wrote:
> 
> In modTableField there’s a function for that:
> mtfDataItemClicked pColumnClicked, pLineClicked, pItemContent, pGroupName
> 
>> On Mar 30, 2020, at 3:49 AM, Alex Tweedly via use-livecode 
>>  wrote:
>> 
>> I don't know of a simple way to do it.
>> 
>> However, Bernd's modTableField does do it, and it uses regular fields, and 
>> it's open source - so I took a very quick look there.
>> 
>> It's not simple :-)
>> 
>> But there's a function 'gatherItemClickedInfo' that (with some 
>> modifications) might be the foundation of a general handler for you.
> 
> ___
> 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: DataGrid question...

2020-03-30 Thread Jerry Jensen via use-livecode
In modTableField there’s a function for that:
mtfDataItemClicked pColumnClicked, pLineClicked, pItemContent, pGroupName

> On Mar 30, 2020, at 3:49 AM, Alex Tweedly via use-livecode 
>  wrote:
> 
> I don't know of a simple way to do it.
> 
> However, Bernd's modTableField does do it, and it uses regular fields, and 
> it's open source - so I took a very quick look there.
> 
> It's not simple :-)
> 
> But there's a function 'gatherItemClickedInfo' that (with some modifications) 
> might be the foundation of a general handler for you.

___
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: DataGrid question...

2020-03-30 Thread J. Landman Gay via use-livecode

On 3/30/20 4:08 AM, Pi Digital via use-livecode wrote:

So, have we all missed a clever and simple, non convoluted method of telling 
which cell in a scrollable, non editable table field has been clicked? Even if 
that cell is empty.


The table field is pretty rudimentary and so has limitations. For example, no messages are 
generated if a user clicks in a cell that is below the last text entry. Provided the field is 
full of data and user clicks on a populated cell, this seems to work:


on selectionChanged
  put "Row:" && word 2 of the clickline into tRow -- adjust for scroll here
  put "Col:" && getColumn(the clickH) into tColumn
  put tRow & tColumn
end selectionChanged

function getColumn pClickH
  put the num of items in the tabstops of me into tNumStops
  put last item of the tabstops of me into tTabWidth -- in case we need to 
calculate it
  set the itemdel to tab
  put the num of items in line 1 of fld "tf" into tColumns
  if tNumStops < tColumns then -- add missing tabstops
put the tabstops of me into tTabs
repeat with x = tNumStops+1 to tColumns
  put comma & (tTabWidth * x) after tTabs
end repeat
  end if
  set the itemdel to comma
  repeat with x = 1 to the num of items in tTabs
if pClickH > item x of tTabs and pClickH < item x+1 of tTabs then
  return x
end if
  end repeat
  return empty
end getColumn

This is as far as I got (I need to get back to work,) but I think all it's missing is 
calculating the row offset if the field is scrolled. David accounted for that.

--
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: Ready to go

2020-03-30 Thread Pi Digital via use-livecode
The Tom Glod ‘using LiveCode for the first time’ video is a good one to share 
for enthusiastically selling LC. 

Sean Cole
Pi Digital


> On 30 Mar 2020, at 17:11, Heather Laine via use-livecode 
>  wrote:
> 
> Dear List Folks,
> 
> Following up on my earlier message, our special Covid-19 page is now live on 
> site, here:
> 
> https://livecode.com/stay-at-home/ 
> 
> Please feel free to share far and wide, with anyone you think might benefit 
> from it.
> 
> We'll be setting up the first zoom meeting soon, I'll let you know when we've 
> finalised a date and time.
> 
> Best Regards,
> 
> 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
___
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: DataGrid question...

2020-03-30 Thread Pi Digital via use-livecode
Wow, David. Not convoluted at all :) so much easier than data grid. I’m not 
sure this is what Curry was thinking of. What do you think he was eluding to. 
We’ve ‘known’ this for years now apparently. 

Sean Cole
Pi Digital


> On 30 Mar 2020, at 14:13, David Epstein via use-livecode 
>  wrote:
> 
> This is more or less Jacqueline Gay’s suggestion, but with a couple of 
> wrinkles.  You do need to adjust for the horizontal scroll of the field (I’m 
> not sure about borders or margin).  And if I am not mistaken sometimes “the 
> tabStops” will not have an entry for each tab, if the column width stays 
> constant.
> My approach is to keep a global called gColGuide, which gets reloaded when 
> column widths change.  It has one line per column, with 
> leftEdge,0,rightEdge,0 in each line.
> The function used to load gColGuide is shown below.
> 
> put word 1 of the clickLoc into x
> put word 2 of the clickLine into L — line number
> put the hScroll of fld “table” into hs
> 
> put colGuide() into gColGuide
> 
> function mCol x,hs — returns column number for horizontal pixel x, consulting 
> gColGuide.  hs is the field’s hScroll.
>  global gColGuide
>  add hs to x
>  put 1 into c
>  repeat for each line k in gColGuide
>if x > item 1 of k and x < item 3 of k then return c
>add 1 to c
>  end repeat
>  return empty
> end mCol-- Any need to adjust for borders and margins?
> 
> function colGuide — used to load gColGuide with one line per column; each 
> line has left,0,right,0
>  set itemDelimiter to tab
>  put the number of items in fld "headers" of into cz
>  set itemDelimiter to comma
>  get the tabStops of fld “table”
>  put "0," before it
>  put the left of fld “table” into fL
>  repeat with n = 1 to min(cz,(-1 + the number of items in it)) -- so that 
> colGuide will only cover the used columns.
>put fL+8 + item n of it,0,fL+8 + item n+1 of it,0 & return after hold
>  end repeat
>  if cz > n then
>put item 3 of line -1 of hold - item 1 of line -1 of hold into w
>repeat with m = n+1 to cz
>  get item 3 of line -1 of hold
>  put it,0,w + it,0 & return after hold
>end repeat
>  end if
>  put fL into item 1 of hold
>  return hold
> end colGuide
> 
> 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
___
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: Using Shift + Cmd + 1 as a menu short in LiveCode

2020-03-30 Thread Trevor DeVore via use-livecode
Guys,

Please don't hijack the thread.

-- 
Trevor DeVore
ScreenSteps
www.screensteps.com

On Mon, Mar 30, 2020 at 12:07 PM Richmond via use-livecode <
use-livecode@lists.runrev.com> wrote:

> This is worth a look:
>
> https://support.apple.com/en-us/HT201236
>
> On 30.03.20 19:54, doc hawk via use-livecode wrote:
> > On Mar 30, 2020, at 8:02 AM, Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >> Cmd-E will eject a mounted removable disk. I've never heard of
> Cmd-Shift-1.
> > Newbie :)
> >
> > It seems to have disappeared some time ago.
> >
> > I know that I used it some years ago on a CD, to my surprise.
> >
> > -3 and -4 are still live, but the whole set were very, very low level
> way back when.
> >
> > I bring it up because even thought apparently not implemented any more,
> there might still be some system intercept that catches it under some OSX
> variants.
> >
> >
> > ___
> > 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


[ ANN ] This week in LiveCode 219

2020-03-30 Thread panagiotis merakos via use-livecode
Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #219 here: https://bit.ly/2UriPj3

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to you e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.

-- 
Panagiotis Merakos 
LiveCode Software Developer

Everyone Can Create Apps 
___
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: Using Shift + Cmd + 1 as a menu short in LiveCode

2020-03-30 Thread Richmond via use-livecode

This is worth a look:

https://support.apple.com/en-us/HT201236

On 30.03.20 19:54, doc hawk via use-livecode wrote:

On Mar 30, 2020, at 8:02 AM, Bob Sneidar via use-livecode 
 wrote:

Cmd-E will eject a mounted removable disk. I've never heard of Cmd-Shift-1.

Newbie :)

It seems to have disappeared some time ago.

I know that I used it some years ago on a CD, to my surprise.

-3 and -4 are still live, but the whole set were very, very low level way back 
when.

I bring it up because even thought apparently not implemented any more, there 
might still be some system intercept that catches it under some OSX variants.


___
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: Using Shift + Cmd + 1 as a menu short in LiveCode

2020-03-30 Thread doc hawk via use-livecode


On Mar 30, 2020, at 8:02 AM, Bob Sneidar via use-livecode 
 wrote:
> 
> Cmd-E will eject a mounted removable disk. I've never heard of Cmd-Shift-1. 

Newbie :)

It seems to have disappeared some time ago.

I know that I used it some years ago on a CD, to my surprise.

-3 and -4 are still live, but the whole set were very, very low level way back 
when.

I bring it up because even thought apparently not implemented any more, there 
might still be some system intercept that catches it under some OSX variants.


___
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: Using Shift + Cmd + 1 as a menu short in LiveCode

2020-03-30 Thread Richmond via use-livecode
Well, or what it's worth I just tried Cmd_Shift_1 on my Mac Mini and 
nothing happened, so, if it
really "floats yer boat" you should be able to use it as some sort of 
short cut in LiveCode.


On 30.03.20 18:02, Bob Sneidar via use-livecode wrote:

Cmd-E will eject a mounted removable disk. I've never heard of Cmd-Shift-1.

Bob S



On Mar 25, 2020, at 11:09 , doc hawk via use-livecode 
 wrote:

Isn’t that the key sequence for ejecting the internal floppy, err, first 
removable disk?

It does seem to be removed from recent releases, though (although -3 an -4 
still work, though not quite how they used to . . )

These were in the original release for the 128k . . .

___
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


Ready to go

2020-03-30 Thread Heather Laine via use-livecode
Dear List Folks,

Following up on my earlier message, our special Covid-19 page is now live on 
site, here:

https://livecode.com/stay-at-home/ 

Please feel free to share far and wide, with anyone you think might benefit 
from it.

We'll be setting up the first zoom meeting soon, I'll let you know when we've 
finalised a date and time.

Best Regards,

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: Its very quiet

2020-03-30 Thread Mark Wieder via use-livecode

On 3/30/20 12:15 AM, Stephen Barncard via use-livecode wrote:

Plug in headblocks for 24, 16, and 8 tracks.


...and three (!) rows of VUE meters?

--
 Mark Wieder
 ahsoftw...@gmail.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: Using Shift + Cmd + 1 as a menu short in LiveCode

2020-03-30 Thread Bob Sneidar via use-livecode
Cmd-E will eject a mounted removable disk. I've never heard of Cmd-Shift-1. 

Bob S


> On Mar 25, 2020, at 11:09 , doc hawk via use-livecode 
>  wrote:
> 
> Isn’t that the key sequence for ejecting the internal floppy, err, first 
> removable disk?
> 
> It does seem to be removed from recent releases, though (although -3 an -4 
> still work, though not quite how they used to . . )
> 
> These were in the original release for the 128k . . .

___
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: Its very quiet

2020-03-30 Thread Ralph DiMola via use-livecode
I'm getting all 16 channels of my Fostex E16(1/2 inch) working to see if I can 
digitally archive. My biggest problem is that it's all on 456 grand master and 
I will probably only get one pass (if that) and gunk up the heads every pass. I 
also have one 2" 16 track tape I would like to archive.

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 
Stephen Barncard via use-livecode
Sent: Sunday, March 29, 2020 10:01 PM
To: How to use LiveCode
Cc: Stephen Barncard; Pi Digital
Subject: Re: Its very quiet

I'm rebuilding a 1980s era Ampex MM1200 Recording Device. 24/16/8 track.
For archiving.
No Livecode content though, although I will eventually make a remote control 
using LiveCode Community ...
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org


On Sun, Mar 29, 2020 at 4:36 PM Pi Digital via use-livecode < 
use-livecode@lists.runrev.com> wrote:

> Sorry to hear that, Curry. Rest up. Glad it hasn’t been too serious 
> for you. We’ll try and keep the noise down for you.
>
> Sean Cole
> Pi
>
>
> > On 29 Mar 2020, at 21:40, Curry Kenworthy via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Like many who have been sick between all the flu and corona going
> around, just working on getting well again. Managed to stay out of 
> hospital, but not much energy. Quiet 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


___
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: DataGrid question...

2020-03-30 Thread David Epstein via use-livecode
This is more or less Jacqueline Gay’s suggestion, but with a couple of 
wrinkles.  You do need to adjust for the horizontal scroll of the field (I’m 
not sure about borders or margin).  And if I am not mistaken sometimes “the 
tabStops” will not have an entry for each tab, if the column width stays 
constant.
My approach is to keep a global called gColGuide, which gets reloaded when 
column widths change.  It has one line per column, with leftEdge,0,rightEdge,0 
in each line.
The function used to load gColGuide is shown below.

put word 1 of the clickLoc into x
put word 2 of the clickLine into L — line number
put the hScroll of fld “table” into hs

put colGuide() into gColGuide

function mCol x,hs — returns column number for horizontal pixel x, consulting 
gColGuide.  hs is the field’s hScroll.
  global gColGuide
  add hs to x
  put 1 into c
  repeat for each line k in gColGuide
if x > item 1 of k and x < item 3 of k then return c
add 1 to c
  end repeat
  return empty
end mCol-- Any need to adjust for borders and margins?

function colGuide — used to load gColGuide with one line per column; each line 
has left,0,right,0
  set itemDelimiter to tab
  put the number of items in fld "headers" of into cz
  set itemDelimiter to comma
  get the tabStops of fld “table”
  put "0," before it
  put the left of fld “table” into fL
  repeat with n = 1 to min(cz,(-1 + the number of items in it)) -- so that 
colGuide will only cover the used columns.
put fL+8 + item n of it,0,fL+8 + item n+1 of it,0 & return after hold
  end repeat
  if cz > n then
put item 3 of line -1 of hold - item 1 of line -1 of hold into w
repeat with m = n+1 to cz
  get item 3 of line -1 of hold
  put it,0,w + it,0 & return after hold
end repeat
  end if
  put fL into item 1 of hold
  return hold
end colGuide

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: DataGrid question...

2020-03-30 Thread Alex Tweedly via use-livecode

I don't know of a simple way to do it.

However, Bernd's modTableField does do it, and it uses regular fields, 
and it's open source - so I took a very quick look there.


It's not simple :-)

But there's a function 'gatherItemClickedInfo' that (with some 
modifications) might be the foundation of a general handler for you.


Alex.


On 30/03/2020 10:08, Pi Digital via use-livecode wrote:

Hmm, but if you look back to Curry’s last post he claims regarding table 
fields, not data grids :


Working out which cell has been clicked: Sorry, that's not accurate either. 
Yes, we do have that! Also for a long time.

Curry is a very reliable and valued source of LC knowledge. So, have we all 
missed a clever and simple, non convoluted method of telling which cell in a 
scrollable, non editable table field has been clicked? Even if that cell is 
empty. Something as simple as:

put the dgIndex of the target into theIndexThatWasClickedOn
?

Sean Cole
Pi



On 30 Mar 2020, at 07:32, J. Landman Gay via use-livecode 
 wrote:

I can't write a test handler right now, but I'm thinking you might be able do 
something like this:

repeat for each item i in the tabstops of the field:
  if the clickH > i and less than item i+1,
  that's your column

The clickline gives you the row.


On 3/29/20 11:04 PM, Terry Judd via use-livecode wrote:
This is rough but sort of works...
on selectionChanged
set the itemDel to tab
put word 2 of the selectedLine into tRow
put word 2 of the selectedChunk into nChar
put length(line 1 to tRow-1 of me) into tStart
put char tStart+2 to nChar of me into tText
put the number of items in tText into tCol
put tRow&
end selectionChanged


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


___
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: DataGrid question...

2020-03-30 Thread Pi Digital via use-livecode
Hmm, but if you look back to Curry’s last post he claims regarding table 
fields, not data grids :

>> Working out which cell has been clicked: Sorry, that's not accurate either. 
>> Yes, we do have that! Also for a long time.

Curry is a very reliable and valued source of LC knowledge. So, have we all 
missed a clever and simple, non convoluted method of telling which cell in a 
scrollable, non editable table field has been clicked? Even if that cell is 
empty. Something as simple as:

put the dgIndex of the target into theIndexThatWasClickedOn
?

Sean Cole
Pi


> On 30 Mar 2020, at 07:32, J. Landman Gay via use-livecode 
>  wrote:
> 
> I can't write a test handler right now, but I'm thinking you might be able 
> do something like this:
> 
> repeat for each item i in the tabstops of the field:
>  if the clickH > i and less than item i+1,
>  that's your column
> 
> The clickline gives you the row.
> 
>> On 3/29/20 11:04 PM, Terry Judd via use-livecode wrote:
>> This is rough but sort of works...
>> on selectionChanged
>>set the itemDel to tab
>>put word 2 of the selectedLine into tRow
>>put word 2 of the selectedChunk into nChar
>>put length(line 1 to tRow-1 of me) into tStart
>>put char tStart+2 to nChar of me into tText
>>put the number of items in tText into tCol
>>put tRow&
>> end selectionChanged
> 
> 
> -- 
> 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: Its very quiet

2020-03-30 Thread Stephen Barncard via use-livecode
Plug in headblocks for 24, 16, and 8 tracks.
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org


On Sun, Mar 29, 2020 at 7:24 PM Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 3/29/20 7:00 PM, Stephen Barncard via use-livecode wrote:
> > I'm rebuilding a 1980s era Ampex MM1200 Recording Device. 24/16/8 track.
> > For archiving.
> > No Livecode content though, although I will eventually make a remote
> > control using LiveCode Community ...
>
> !!! I thought the MM1200s were only 16 track. Those things are huge.
> Great sounding though.
>
> --
>   Mark Wieder
>   ahsoftw...@gmail.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: DataGrid question...

2020-03-30 Thread J. Landman Gay via use-livecode

I can't write a test handler right now, but I'm thinking you might be able do 
something like this:

repeat for each item i in the tabstops of the field:
  if the clickH > i and less than item i+1,
  that's your column

The clickline gives you the row.

On 3/29/20 11:04 PM, Terry Judd via use-livecode wrote:

This is rough but sort of works...

on selectionChanged
set the itemDel to tab
put word 2 of the selectedLine into tRow
put word 2 of the selectedChunk into nChar
put length(line 1 to tRow-1 of me) into tStart
put char tStart+2 to nChar of me into tText
put the number of items in tText into tCol
put tRow&
end selectionChanged




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