# Can I disable The Restore Down ability of the Restore Down/Maximize Button on the Main Frame?

**URL:** <https://clarionhub.com/t/can-i-disable-the-restore-down-ability-of-the-restore-down-maximize-button-on-the-main-frame/9254>\
**Category:** questions\
**Created:** [July 27, 2026, 11:18am UTC](https://clarionhub.com/t/can-i-disable-the-restore-down-ability-of-the-restore-down-maximize-button-on-the-main-frame/9254 "2026-07-27T11:18:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenns](https://clarionhub.com/user_avatar/clarionhub.com/kenns/32/6428_2.png) [@kenns](https://clarionhub.com/u/kenns)\
**Post date:** [July 27, 2026, 11:18am UTC](https://clarionhub.com/t/can-i-disable-the-restore-down-ability-of-the-restore-down-maximize-button-on-the-main-frame/9254/1 "2026-07-27T11:18:05Z")

</div>

I have the initial size of the MainFrame of an app set to Maximize, and want to know if I can disable the ability of a user to “Restore Down” the window? I am wanting to have the Main Frame remain maximized, or Minimized.

---

<div class="post-metadata">

**Author:** ![LANSRAD](https://clarionhub.com/user_avatar/clarionhub.com/lansrad/32/4519_2.png) [@LANSRAD](https://clarionhub.com/u/LANSRAD)\
**Post date:** [July 27, 2026, 12:14pm UTC](https://clarionhub.com/t/can-i-disable-the-restore-down-ability-of-the-restore-down-maximize-button-on-the-main-frame/9254/2 "2026-07-27T12:14:00Z")

</div>

This works here.

1. Set the appframe to start maximized.

2. In the appframe window **TakeEvent** embed at the top **before the parent call**

 ![image](https://clarionhub-uploads.s3.dualstack.eu-north-1.amazonaws.com/original/2X/5/524418dd5312684916f6c20afd6758c0991b898b.png)

Put this code:

 ![image](https://clarionhub-uploads.s3.dualstack.eu-north-1.amazonaws.com/original/2X/e/eb4d527ff39b2d9bb2c4b8a100fb569e3a76eb97.png)

That causes the window to ignore the **EVENT:Restore** which takes care of the user trying to downsize the window via the icon or by double-clicking the title bar.

Charles

---

<div class="post-metadata">

**Author:** ![kenns](https://clarionhub.com/user_avatar/clarionhub.com/kenns/32/6428_2.png) [@kenns](https://clarionhub.com/u/kenns)\
**Post date:** [July 27, 2026, 9:59pm UTC](https://clarionhub.com/t/can-i-disable-the-restore-down-ability-of-the-restore-down-maximize-button-on-the-main-frame/9254/3 "2026-07-27T21:59:04Z")

</div>

Thank You, that worked a treat.  
Kenn

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [July 27, 2026, 11:29pm UTC](https://clarionhub.com/t/can-i-disable-the-restore-down-ability-of-the-restore-down-maximize-button-on-the-main-frame/9254/4 "2026-07-27T23:29:01Z")

</div>

> [@kenns](#):
>
> Thank You, that worked a treat.

Does your frame allow Minimize?

> [@LANSRAD](#):
>
> That causes the window to ignore the **EVENT:Restore** which takes care of the user trying to downsize the window via the icon or by double-clicking the title bar.

`EVENT:Restore` is also fired if the Window is Minimized when the user tries to Undo Minimize i.e. _Restore_.

Better code for Minimize

```clarion
CASE EVENT()
OF EVENT:Restore
   IF 0{PROP:Maximize} THEN CYCLE. !Must stay Maximized
! or 
   IF ~0{PROP:Iconize} THEN CYCLE. !Do not prevent undoing Minimized 
END

```

Tip: In Windows 10 & 11 when Minimized if you Shift + Right click on it on the Taskbar that gives you the System menu with Min,Max,Restore,Move,Size,Close. Without Shift+ you get a new Taskbar Popup that offers none of those.

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [July 28, 2026, 1:43pm UTC](https://clarionhub.com/t/can-i-disable-the-restore-down-ability-of-the-restore-down-maximize-button-on-the-main-frame/9254/5 "2026-07-28T13:43:13Z")

</div>

> [@kenns](#):
>
> I am wanting to have the Main Frame remain maximized, or Minimized.

Preventing standard Windows behaviors can be confusing, stressful and annoying to users. E.g. a Maximized window cannot be moved to another monitor (I think there is a setting to allow that).

Suggest you open Message() to explain to the user why he should leave it Max, but have buttons to allow Max or Restore.

---

<div class="post-metadata">

**Author:** ![kenns](https://clarionhub.com/user_avatar/clarionhub.com/kenns/32/6428_2.png) [@kenns](https://clarionhub.com/u/kenns)\
**Post date:** [July 29, 2026, 1:34am UTC](https://clarionhub.com/t/can-i-disable-the-restore-down-ability-of-the-restore-down-maximize-button-on-the-main-frame/9254/6 "2026-07-29T01:34:05Z")

</div>

Thanks for the input, sound advice I think.
