Re: Figuring out if something is on the current screen, or getting the current screen rect

2016-01-13 Thread Dr. Hawkins
On Mon, Jan 11, 2016 at 4:03 PM, Bob Sneidar 
wrote:

> There is no notion of a current screen in the OS itself. Do you mean which
> screen the frontmost window is in? And what do you mean by "In"? A window
> can overlap two or more screens. Typically if you double click the title
> bar of a window, the window will maximize on the screen the mouse is in.


I'm trying to pop another stack with selections over an object from that
object's handler.  My concern is the popup going over the top or bottom.
 (There's a secondary left/right issue, too, but the top/bottom is the big
issue))

So something like

on mouseOver

lock screen

palette stack "choose" at the screenLoc of me

do some magic to keep it on screen

end mouseOver



-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: Figuring out if something is on the current screen, or getting the current screen rect

2016-01-11 Thread Bob Sneidar
works in 6.7.6

> On Jan 9, 2016, at 18:20 , Monte Goulding  wrote:
> 
> 
>> On 10 Jan 2016, at 10:55 am, Dr. Hawkins  wrote:
>> 
>> As I look through screenLoc, screenRect(s), etc., I'm not seeing *any* way
>> to figure out which screen an object is on, short of manually comparing
>> elements of its rect to the various bits of screensRects.
> 
> put the screen of this stack into theScreen
> put line theScreen of the screenRects into theStackScreenRect
> 
> From my memory of following the repo feed the screen of stack was 
> undocumented until recently when Trevor documented it which probably means it 
> is only documented in LC 8 so not sure what version it was introduced but it 
> stands to reason it may have been introduced when the screenRects was...
> 
> Cheers
> 
> Monte
> ___
> 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: Figuring out if something is on the current screen, or getting the current screen rect

2016-01-11 Thread Bob Sneidar
There is no notion of a current screen in the OS itself. Do you mean which 
screen the frontmost window is in? And what do you mean by "In"? A window can 
overlap two or more screens. Typically if you double click the title bar of a 
window, the window will maximize on the screen the mouse is in. 

Bob S


> On Jan 9, 2016, at 16:37 , Dr. Hawkins  wrote:
> 
> On Sat, Jan 9, 2016 at 4:26 PM, Mark Wieder  wrote:
> 
>> I would think that ideally the user should be in control of whether
>> something goes on one screen or another, and that this ability shouldn't be
>> taken away from them.
>> 
> 
> AFAIK,live code offers no such option when opening a stack . . . there was
> a big to-do several years ago when the package maintainer for fvwm on
> (iirc) debian decided that the user placing each and every window was the
> only sane way to handle it.  I believe that it actually deleted other
> methods from existing .fvwmrc or some such (or I may be mixing idiotic
> choices).
> 
> Anyway, in this case, I'm popping up a stack over a field with the list of
> valid choices (I needed more than the built in popups).  I just want them
> to stay on the screen . . .
> 
> It's just insane that there's no notion of a current screen . . .
> 
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> 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: Figuring out if something is on the current screen, or getting the current screen rect

2016-01-09 Thread Dr. Hawkins
On Sat, Jan 9, 2016 at 4:26 PM, Mark Wieder  wrote:

> I would think that ideally the user should be in control of whether
> something goes on one screen or another, and that this ability shouldn't be
> taken away from them.
>

AFAIK,live code offers no such option when opening a stack . . . there was
a big to-do several years ago when the package maintainer for fvwm on
(iirc) debian decided that the user placing each and every window was the
only sane way to handle it.  I believe that it actually deleted other
methods from existing .fvwmrc or some such (or I may be mixing idiotic
choices).

Anyway, in this case, I'm popping up a stack over a field with the list of
valid choices (I needed more than the built in popups).  I just want them
to stay on the screen . . .

It's just insane that there's no notion of a current screen . . .


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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


Figuring out if something is on the current screen, or getting the current screen rect

2016-01-09 Thread Dr. Hawkins
As I look through screenLoc, screenRect(s), etc., I'm not seeing *any* way
to figure out which screen an object is on, short of manually comparing
elements of its rect to the various bits of screensRects.


In particular, I want to know if another stack (or group) that I set the
position of will actually fit onto the current screen, or if I need to move
it.

Any ideas?
-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: Figuring out if something is on the current screen, or getting the current screen rect

2016-01-09 Thread Scott Rossi
I believe the screenRects is the only function that determines if you have
multiple monitors available.  So comparing stack rects or plugging points
from your group rect/s into the globalLoc function would be the way to go.

The screenRect by itself determines the rect of the main monitor.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 1/9/16, 3:55 PM, "use-livecode on behalf of Dr. Hawkins"

wrote:

>As I look through screenLoc, screenRect(s), etc., I'm not seeing *any* way
>to figure out which screen an object is on, short of manually comparing
>elements of its rect to the various bits of screensRects.
>
>
>In particular, I want to know if another stack (or group) that I set the
>position of will actually fit onto the current screen, or if I need to
>move
>it.
>
>Any ideas?
>-- 
>Dr. Richard E. Hawkins, Esq.
>(702) 508-8462
>___
>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: Figuring out if something is on the current screen, or getting the current screen rect

2016-01-09 Thread Mark Wieder

On 01/09/2016 03:55 PM, Dr. Hawkins wrote:

As I look through screenLoc, screenRect(s), etc., I'm not seeing *any* way
to figure out which screen an object is on, short of manually comparing
elements of its rect to the various bits of screensRects.


In particular, I want to know if another stack (or group) that I set the
position of will actually fit onto the current screen, or if I need to move
it.


*should* you need to know this?
I would think that ideally the user should be in control of whether 
something goes on one screen or another, and that this ability shouldn't 
be taken away from them.


If this really is something you need, then I use the screenrects in more 
or less the way you describe to figure out what screen something is on. 
And it's "more or less" because I just look at the loc of the object and 
compare that with the rect elements of the screenrects.


--
 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: Figuring out if something is on the current screen, or getting the current screen rect

2016-01-09 Thread Monte Goulding

> On 10 Jan 2016, at 10:55 am, Dr. Hawkins  wrote:
> 
> As I look through screenLoc, screenRect(s), etc., I'm not seeing *any* way
> to figure out which screen an object is on, short of manually comparing
> elements of its rect to the various bits of screensRects.

put the screen of this stack into theScreen
put line theScreen of the screenRects into theStackScreenRect

>From my memory of following the repo feed the screen of stack was undocumented 
>until recently when Trevor documented it which probably means it is only 
>documented in LC 8 so not sure what version it was introduced but it stands to 
>reason it may have been introduced when the screenRects was...

Cheers

Monte
___
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: Figuring out if something is on the current screen, or getting the current screen rect

2016-01-09 Thread J. Landman Gay
Couldn't you just get the globalLoc of the field and set the stack to that, or 
an offset of it? 

On January 9, 2016 6:37:52 PM CST, "Dr. Hawkins"  wrote:
>
>
>Anyway, in this case, I'm popping up a stack over a field with the list
>of valid choices (I needed more than the built in popups).  I just want
>them to stay on the screen . . .

-- 
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: Figuring out if something is on the current screen, or getting the current screen rect

2016-01-09 Thread [-hh]
It's really hard to say how all the advices to this question apply to the new 
feature of "SplitView" of OSX 10.11 (https://support.apple.com/en-ca/HT204948)

Luckily, in the sense of Mark Wieder (and TMHO).
___
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: Figuring out if something is on the current screen, or getting the current screen rect

2016-01-09 Thread Monte Goulding
We get Split View for free if we implement fullscreen. I was going to do it for 
Hacktoberfest but it was interesting working out the syntax and how it 
interacts with the current fullscreen property and decorations so I went for 
something simpler instead.

Cheers

Monte

Sent from my iPhone

> On 10 Jan 2016, at 5:21 PM, [-hh]  wrote:
> 
> It's really hard to say how all the advices to this question apply to the new 
> feature of "SplitView" of OSX 10.11 (https://support.apple.com/en-ca/HT204948)

___
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