Re: Crunchy chestnuts again, again, again

2019-01-14 Thread Richmond Mathewson via use-livecode
What is your "objection" to the forum?

I find it better than the Use-List as one can attach stuff.

On Tue, Jan 15, 2019, 1:41 AM Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I don't use that forum so I cannot.
>
> Bob S
>
>
> > On Jan 14, 2019, at 10:44 , Richmond via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Indeed: Please signal your opinion:
> >
> > http://forums.livecode.com/viewtopic.php?f=6=31971
> >
> > Richmond.
>
>
> ___
> 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: screenRect and screenLoc weirdness

2019-01-14 Thread Monte Goulding via use-livecode
Hi Marty

I’m just wondering if you are using the standard IDE ask and answer dialog or a 
custom one? If you are working on a very old stack then MetaCard used to copy 
the ask and answer dialog into the stackFile as a substack. You should be able 
to see them in the project browser under your mainstack. If that’s the case 
then perhaps try deleting those.

Cheers

Monte

> On 15 Jan 2019, at 11:58 am, Knapp Martin via use-livecode 
>  wrote:
> 
> Does that work for you Paul - it doesn’t for me. I’m having to do this:
> 
> send CenterAnswerOnScreen to me in 1 tick
> answer “Blah blah blah”
> 
> on CenterAnswerOnScreen
>   set the loc of stack "answer dialog" to the screenLoc
> end CenterAnswerOnScreen
> 
> I have a couple of customers with small-screened laptops who use large 
> secondary monitors aligned at the bottom. Thus the top of the secondary 
> monitor is quite a bit above the main laptop monitor. Ask and Answer dialogs 
> are so far off you can only see about the bottom 1/8 of an inch of the window 
> and are thus unusable.

___
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: screenRect and screenLoc weirdness

2019-01-14 Thread Knapp Martin via use-livecode
> set the loc of stack "Ask Dialog" to screenLoc()
> ask "What color is you favorite?”

Does that work for you Paul - it doesn’t for me. I’m having to do this:

send CenterAnswerOnScreen to me in 1 tick
answer “Blah blah blah”

on CenterAnswerOnScreen
   set the loc of stack "answer dialog" to the screenLoc
end CenterAnswerOnScreen

I have a couple of customers with small-screened laptops who use large 
secondary monitors aligned at the bottom. Thus the top of the secondary monitor 
is quite a bit above the main laptop monitor. Ask and Answer dialogs are so far 
off you can only see about the bottom 1/8 of an inch of the window and are thus 
unusable.

Marty

> On Jan 14, 2019, at 2:25 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> On 1/10/2019 11:02 PM, Knapp Martin via use-livecode wrote:
>> OK, I’m making progress here. But I’m finding that ask and answer dialogs 
>> are opening off-screen. How are their positions determined?
>> 
>> Marty
>> 
> 
> See https://quality.livecode.com/show_bug.cgi?id=4309
> 
> A very old enhancement request that would be a nice addition. SuperCard has a 
> 'at' syntax, so you could say:
> 
> Ask "What color is your favorite?" at screenLoc()
> 
> Now you have to do something like
> 
> set the loc of stack "Ask Dialog" to screenLoc()
> ask "What color is you favorite?"
> 
> The actual stack names are "Ask Dialog" and "Answer Dialog" whether invoked 
> from the IDE or a Standalone.
> 
> 
> ___
> 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: Crunchy chestnuts again, again, again

2019-01-14 Thread Bob Sneidar via use-livecode
I don't use that forum so I cannot. 

Bob S


> On Jan 14, 2019, at 10:44 , Richmond via use-livecode 
>  wrote:
> 
> Indeed: Please signal your opinion:
> 
> http://forums.livecode.com/viewtopic.php?f=6=31971
> 
> Richmond.


___
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: screenRect and screenLoc weirdness

2019-01-14 Thread Paul Dupuis via use-livecode

On 1/10/2019 11:02 PM, Knapp Martin via use-livecode wrote:

OK, I’m making progress here. But I’m finding that ask and answer dialogs are 
opening off-screen. How are their positions determined?

Marty



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

A very old enhancement request that would be a nice addition. SuperCard 
has a 'at' syntax, so you could say:


Ask "What color is your favorite?" at screenLoc()

Now you have to do something like

set the loc of stack "Ask Dialog" to screenLoc()
ask "What color is you favorite?"

The actual stack names are "Ask Dialog" and "Answer Dialog" whether 
invoked from the IDE or a Standalone.



___
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: screensChanged ? (was Re: screenRect and screenLoc weirdness)

2019-01-14 Thread Ben Rubinstein via use-livecode
Aha! Thanks Paul, that's just what I needed. I looked through all the 
'changed' messages in the dictionary but didn't spot that one.


Ben

On 14/01/2019 13:38, Paul Dupuis via use-livecode wrote:

This is the 'desktopChanged' message -- see Dictionary

On 1/14/2019 8:22 AM, Ben Rubinstein via use-livecode wrote:
Related to this: is there any possibility of getting a "screensChanged" 
message? I work on multi-monitor setups all the time, and have not been 
bothered by the issue with screenRects because they've always told the truth 
relative to each other.


However, the problem is that my set-up changes multiple times a day. Mostly 
it's taking my laptop in and out of meetings, so switching from one 
multi-monitor set-up to single monitor; but sometimes I'm plugging it into a 
meeting room screen, and sometimes mirroring, and sometimes I end up with 
the three screens.


Many apps (including, to some extent, the LiveCode IDE) respond when this 
happens. But my own apps can't unless I specifically ask them to.


AFAICT there is no message stacks can get to tell them to get the 
screenRects again and take another look. Could there be a "screensChanged" 
or similar? (Or we could even overload "orientationChanged" for this 
purpose, although that would be probably be an error.)


Ben


On 11/01/2019 15:59, Bob Sneidar via use-livecode wrote:
I was probably the first person to mention it. I get around it by setting 
the position of my stacks when opened or resumed to be within the bounds of 
the monitor. Actually, this will happen when switching from the single 
built-in display of a laptop to a dual display with the laptop closed 
(built-in monitor off). If the second display is a lower resolution (as it 
likely will be with retina displays) the OS will position open windows in 
the nearest spot that can display the entire window if possible.


___
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


Crunchy chestnuts again, again, again

2019-01-14 Thread Richmond via use-livecode

Indeed: Please signal your opinion:

http://forums.livecode.com/viewtopic.php?f=6=31971

Richmond.

___
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: Repeat for each line of a variable or field?

2019-01-14 Thread Bob Sneidar via use-livecode
Also if you do not lock the screen the engine has to update the display each 
time a line changes. Not sure if this is the case if the line is not visible...

Bob S


> On Jan 12, 2019, at 08:37 , JB via use-livecode 
>  wrote:
> 
> It is faster to use version 1 because accessing the
> lines in a variable is faster than accessing lines in
> a field.
> 
> JB
> 
> 
>> On Jan 12, 2019, at 8:01 AM, David Epstein via use-livecode 
>>  wrote:
>> 
>> I've done a little bit of speed testing showing extremely slight 
>> differences, but wonder if anyone who understands the "engine" can advise on 
>> this:
>> 
>> Is there a difference between these two approaches?
>> 
>> (1) put fld 1 into txt; repeat for each line k in txt; etc.
>> 
>> and
>> (2) repeat for each line k in fld 1; etc.
>> 
>> For no very good reason, I tend to do (1), but have begun to wonder:  for a 
>> very lengthy field 1, does my writing to a variable use up more RAM, and so 
>> perhaps injure performance?  Or is the engine in effect writing to a 
>> variable either way?  Is a variable read more quickly than a field?  
>> 
>> 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
>> 
> 
> 
> ___
> 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 163

2019-01-14 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 #163 here: https://goo.gl/wUv84j

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: screensChanged ? (was Re: screenRect and screenLoc weirdness)

2019-01-14 Thread Paul Dupuis via use-livecode

This is the 'desktopChanged' message -- see Dictionary

On 1/14/2019 8:22 AM, Ben Rubinstein via use-livecode wrote:
Related to this: is there any possibility of getting a 
"screensChanged" message? I work on multi-monitor setups all the time, 
and have not been bothered by the issue with screenRects because 
they've always told the truth relative to each other.


However, the problem is that my set-up changes multiple times a day. 
Mostly it's taking my laptop in and out of meetings, so switching from 
one multi-monitor set-up to single monitor; but sometimes I'm plugging 
it into a meeting room screen, and sometimes mirroring, and sometimes 
I end up with the three screens.


Many apps (including, to some extent, the LiveCode IDE) respond when 
this happens. But my own apps can't unless I specifically ask them to.


AFAICT there is no message stacks can get to tell them to get the 
screenRects again and take another look. Could there be a 
"screensChanged" or similar? (Or we could even overload 
"orientationChanged" for this purpose, although that would be probably 
be an error.)


Ben


On 11/01/2019 15:59, Bob Sneidar via use-livecode wrote:
I was probably the first person to mention it. I get around it by 
setting the position of my stacks when opened or resumed to be within 
the bounds of the monitor. Actually, this will happen when switching 
from the single built-in display of a laptop to a dual display with 
the laptop closed (built-in monitor off). If the second display is a 
lower resolution (as it likely will be with retina displays) the OS 
will position open windows in the nearest spot that can display the 
entire window if possible.


___
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


screensChanged ? (was Re: screenRect and screenLoc weirdness)

2019-01-14 Thread Ben Rubinstein via use-livecode
Related to this: is there any possibility of getting a "screensChanged" 
message? I work on multi-monitor setups all the time, and have not been 
bothered by the issue with screenRects because they've always told the truth 
relative to each other.


However, the problem is that my set-up changes multiple times a day. Mostly 
it's taking my laptop in and out of meetings, so switching from one 
multi-monitor set-up to single monitor; but sometimes I'm plugging it into a 
meeting room screen, and sometimes mirroring, and sometimes I end up with the 
three screens.


Many apps (including, to some extent, the LiveCode IDE) respond when this 
happens. But my own apps can't unless I specifically ask them to.


AFAICT there is no message stacks can get to tell them to get the screenRects 
again and take another look. Could there be a "screensChanged" or similar? (Or 
we could even overload "orientationChanged" for this purpose, although that 
would be probably be an error.)


Ben


On 11/01/2019 15:59, Bob Sneidar via use-livecode wrote:

I was probably the first person to mention it. I get around it by setting the 
position of my stacks when opened or resumed to be within the bounds of the 
monitor. Actually, this will happen when switching from the single built-in 
display of a laptop to a dual display with the laptop closed (built-in monitor 
off). If the second display is a lower resolution (as it likely will be with 
retina displays) the OS will position open windows in the nearest spot that can 
display the entire window if possible.


___
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