Re: Windows maximization on desktops

2023-11-09 Thread Paul Dupuis via use-livecode

On 11/9/2023 5:38 PM, ambassador--- via use-livecode wrote:

Paul Dupuis wrote:


Is there a message sent when a user click the maximize icon (macOS
and Windows) in the titlebar of a window?

As others have pointed out, resizeStack is sent. And by definition, wouldn't 
the windowBoundingRect be the maximized size?


So, the windowBoundingRect actually only applies to the main monitor 
(where 'the screen of stack "X" = 1' so you actually need to consider 
windowBoundingRect deprecated and use the working screenRects or the 
effective working screenRects (I may have my adjectives in the wrong 
order!) and compare the screen of the stack in question to the line in 
the returned screenRects for a bounding rect equivalent.



I'm curious: what does the app need to do differently if the user resized the 
window to that rect manually vs the Maximize button?


It is an oddity (bug) where certain windows in HyperRESEARCH are not 
redrawing their contents properly when the maximize icon in the title 
bar is clicked and the window maximized. However, if you resize the 
window to the maximum size, everything is redrawn correctly. I was 
asking about the maximize message as it may have aided in debugging the 
issue - if there was such a message sent. This is also only on macOS. 
The same windows maximize correctly whether resized manually or the 
maximize icon in the title bar is clicked. Also, I have not determined 
if this behavior started happening on some specific version of macOS yet.


In theory, as you stated, there should be no difference between resizing 
a stack/window manually and clicking the maximize icon.


___
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: Windows maximization on desktops

2023-11-09 Thread ambassador--- via use-livecode
Paul Dupuis wrote:

> Is there a message sent when a user click the maximize icon (macOS
> and Windows) in the titlebar of a window?

As others have pointed out, resizeStack is sent. And by definition, wouldn't 
the windowBoundingRect be the maximized size?

I'm curious: what does the app need to do differently if the user resized the 
window to that rect manually vs the Maximize button?

--
Richard Gaskin
Fourth World Systems

___
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: Windows maximization on desktops

2023-11-09 Thread Mark Talluto via use-livecode
Hi Paul,

Knowing the app was minimized, you could use a flag to track your state and 
recover from a maximize. 


Best regards,
Mark Talluto

appli.io 
livecloud.io 
nursenotes.net 
canelasoftware.com 



> On Nov 7, 2023, at 8:42 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Thanks Klaus and Panos,
> 
> Yes, a resizeStack is send on Maximize. Now I just need to do some screenrect 
> calculations to determine a drag-resize from a maximize-resize.
> 
> Thank you.
> 
> 
> On 11/7/2023 11:15 AM, panagiotis merakos via use-livecode wrote:
>> Hello Paul,
>> 
>> I think the "resizeStack" message should be sent.
>> 
>> Kind regards,
>> Panos
>> --
>> 
>> On Tue, 7 Nov 2023 at 18:08, Paul Dupuis via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Is there a message sent when a user click the maximize icon (macOS and
>>> Windows) in the titlebar of a window?
>>> 
>>> "iconifyStack" is sent for minimization, and "unIconifyStack" is sent
>>> when a minimizaed stack is expanded (from the Windows taskbar or Apple
>>> dock). However, I can't seem to find an equivalent message for
>>> maximization?
>>> 
>>> Is there such a message. What messages (if any) are sent when a window
>>> is maximized?
>>> 
>>> ___
>>> 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

___
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: Windows maximization on desktops

2023-11-07 Thread Paul Dupuis via use-livecode

Thanks Klaus and Panos,

Yes, a resizeStack is send on Maximize. Now I just need to do some 
screenrect calculations to determine a drag-resize from a maximize-resize.


Thank you.


On 11/7/2023 11:15 AM, panagiotis merakos via use-livecode wrote:

Hello Paul,

I think the "resizeStack" message should be sent.

Kind regards,
Panos
--

On Tue, 7 Nov 2023 at 18:08, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


Is there a message sent when a user click the maximize icon (macOS and
Windows) in the titlebar of a window?

"iconifyStack" is sent for minimization, and "unIconifyStack" is sent
when a minimizaed stack is expanded (from the Windows taskbar or Apple
dock). However, I can't seem to find an equivalent message for
maximization?

Is there such a message. What messages (if any) are sent when a window
is maximized?

___
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: Windows maximization on desktops

2023-11-07 Thread panagiotis merakos via use-livecode
Hello Paul,

I think the "resizeStack" message should be sent.

Kind regards,
Panos
--

On Tue, 7 Nov 2023 at 18:08, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Is there a message sent when a user click the maximize icon (macOS and
> Windows) in the titlebar of a window?
>
> "iconifyStack" is sent for minimization, and "unIconifyStack" is sent
> when a minimizaed stack is expanded (from the Windows taskbar or Apple
> dock). However, I can't seem to find an equivalent message for
> maximization?
>
> Is there such a message. What messages (if any) are sent when a window
> is maximized?
>
> ___
> 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: Windows maximization on desktops

2023-11-07 Thread Klaus major-k via use-livecode
Hi Paul,

> Am 07.11.2023 um 17:07 schrieb Paul Dupuis via use-livecode 
> :
> 
> Is there a message sent when a user click the maximize icon (macOS and 
> Windows) in the titlebar of a window?
> 
> "iconifyStack" is sent for minimization, and "unIconifyStack" is sent when a 
> minimizaed stack is expanded (from the Windows taskbar or Apple dock). 
> However, I can't seem to find an equivalent message for maximization?
> 
> Is there such a message. What messages (if any) are sent when a window is 
> maximized?

doesn't that make the "resizestack" message fire?


Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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


Windows maximization on desktops

2023-11-07 Thread Paul Dupuis via use-livecode
Is there a message sent when a user click the maximize icon (macOS and 
Windows) in the titlebar of a window?


"iconifyStack" is sent for minimization, and "unIconifyStack" is sent 
when a minimizaed stack is expanded (from the Windows taskbar or Apple 
dock). However, I can't seem to find an equivalent message for maximization?


Is there such a message. What messages (if any) are sent when a window 
is maximized?


___
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