Re: Window's bounds in fullscreen

2017-10-15 Thread Jean-Christophe Helary
Please ignore that message. For some reason Script Debugger was not giving me 
the good values, or maybe I was not reading them properly. Apologies.

Jean-Christophe 


> On Oct 15, 2017, at 17:57, Jean-Christophe Helary 
>  wrote:
> 
> There is a discussion on how to detect if a window is fullscreen on the AS 
> user list and BBEdit (11, I guess) displayed a weird behavior:
> 
> "regardless of whether the window is new (default size) or fullscreen 
> BBEdit's windows keep the same bounds ({0, 22, 1009, 800} on my screen). 
> Position is thus {0, 22} regardless of the state of the window."
> 
> There does not seem to be a way to detect whether a given window is in 
> Fullscreen mode or not, hence us trying to find ways to do that using various 
> window informations. I managed to do that with Terminal by comparing the 
> number of rows to the max possible if the window was fullscreen (machine 
> specific, but that was the best I could find), and other people have tried 
> with "position" or "bounds", which do seem to be better approximations. Hence 
> the check with BBEdit.
> 
> My understanding is that BBEdit 12 uses a lot more native frameworks, so 
> would the weird result above be fixed there ? Do developers have a way to 
> reliably show a window's "fullscreenness"?
> 
> Jean-Christophe

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Window's bounds in fullscreen

2017-10-15 Thread Jean-Christophe Helary
There is a discussion on how to detect if a window is fullscreen on the AS user 
list and BBEdit (11, I guess) displayed a weird behavior:

"regardless of whether the window is new (default size) or fullscreen BBEdit's 
windows keep the same bounds ({0, 22, 1009, 800} on my screen). Position is 
thus {0, 22} regardless of the state of the window."

There does not seem to be a way to detect whether a given window is in 
Fullscreen mode or not, hence us trying to find ways to do that using various 
window informations. I managed to do that with Terminal by comparing the number 
of rows to the max possible if the window was fullscreen (machine specific, but 
that was the best I could find), and other people have tried with "position" or 
"bounds", which do seem to be better approximations. Hence the check with 
BBEdit.

My understanding is that BBEdit 12 uses a lot more native frameworks, so would 
the weird result above be fixed there ? Do developers have a way to reliably 
show a window's "fullscreenness"?

Jean-Christophe

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.