# Plain Box - Rounded corners

**URL:** <https://forum.xojo.com/t/plain-box-rounded-corners/20227>\
**Category:** General\
**Created:** [November 7, 2014, 1:09pm UTC](https://forum.xojo.com/t/plain-box-rounded-corners/20227 "2014-11-07T13:09:48Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Delaney](https://forum.xojo.com/user_avatar/forum.xojo.com/patrick_delaney/32/1123_2.png) [@Patrick\_Delaney](https://forum.xojo.com/u/Patrick_Delaney)\
**Post date:** [November 7, 2014, 1:09pm UTC](https://forum.xojo.com/t/plain-box-rounded-corners/20227/1 "2014-11-07T13:09:48Z")

</div>

Does anyone know if it’s possible to give a plain box window rounded corners?

I have access to MacOSLib and WFS but I can’t find anything in there, unless I’m being Kermit (again!)

Thanks  
Pat

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [November 7, 2014, 1:36pm UTC](https://forum.xojo.com/t/plain-box-rounded-corners/20227/2 "2014-11-07T13:36:41Z")

</div>

[quote=141938:@Patrick Delaney]Does anyone know if it’s possible to give a plain box window rounded corners?

I have access to MacOSLib and WFS but I can’t find anything in there, unless I’m being Kermit (again!)  
[/quote]

Use a custom shaped window.

In MacOSLib macoslibSplashWindow

For Windows use the technique in examples Projects/Platform-Specific/Windows/CustomWindowShape

---

<div class="post-metadata">

**Author:** ![Patrick\_Delaney](https://forum.xojo.com/user_avatar/forum.xojo.com/patrick_delaney/32/1123_2.png) [@Patrick\_Delaney](https://forum.xojo.com/u/Patrick_Delaney)\
**Post date:** [November 7, 2014, 2:07pm UTC](https://forum.xojo.com/t/plain-box-rounded-corners/20227/3 "2014-11-07T14:07:58Z")

</div>

Thanks Michel - didn’t recognise you from your Avatar 😉

Correct me if I’m wrong but doesn’t MacOSlibSplashWindow simply make the window transparent and paste an image as the background? I guess I could make a rounded rectangle to fill the window and stretch accordingly…

Haven’t looked at that example - thanks for the pointer…

Cheers

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [November 7, 2014, 2:21pm UTC](https://forum.xojo.com/t/plain-box-rounded-corners/20227/4 "2014-11-07T14:21:40Z")

</div>

[quote=141948:@Patrick Delaney]  
Correct me if I’m wrong but doesn’t MacOSlibSplashWindow simply make the window transparent and paste an image as the background? I guess I could make a rounded rectangle to fill the window and stretch accordingly…[/quote]

Yes, the splashwindow is transparent, and whatever is stuck on it is not. So if you use a rounded rectangle you got your rounded box.

The Windows example works pretty much the same way.

---

<div class="post-metadata">

**Author:** ![Patrick\_Delaney](https://forum.xojo.com/user_avatar/forum.xojo.com/patrick_delaney/32/1123_2.png) [@Patrick\_Delaney](https://forum.xojo.com/u/Patrick_Delaney)\
**Post date:** [November 7, 2014, 2:55pm UTC](https://forum.xojo.com/t/plain-box-rounded-corners/20227/5 "2014-11-07T14:55:31Z")

</div>

That’s great - thanks for your thoughts/help

---

<div class="post-metadata">

**Author:** ![jim\_mckay](https://forum.xojo.com/user_avatar/forum.xojo.com/jim_mckay/32/905_2.png) [@jim\_mckay](https://forum.xojo.com/u/jim_mckay)\
**Post date:** [November 7, 2014, 4:21pm UTC](https://forum.xojo.com/t/plain-box-rounded-corners/20227/6 "2014-11-07T16:21:15Z")

</div>

> [@141948:@Patrick Delaney](#):
>
> I guess I could make a rounded rectangle to fill the window and stretch accordingly…

You could draw any shape you want. No need to stretch.

---

<div class="post-metadata">

**Author:** ![Patrick\_Delaney](https://forum.xojo.com/user_avatar/forum.xojo.com/patrick_delaney/32/1123_2.png) [@Patrick\_Delaney](https://forum.xojo.com/u/Patrick_Delaney)\
**Post date:** [November 7, 2014, 4:36pm UTC](https://forum.xojo.com/t/plain-box-rounded-corners/20227/7 "2014-11-07T16:36:07Z")

</div>

> [@141974:@jim mckay](#):
>
> You could draw any shape you want. No need to stretch.

I’m putting a rounded rectangle control on the Window Zaligned to the backlist control. As the user resizes the window I need to have the control locked to grow with the window which is what I meant by stretching.

---

<div class="post-metadata">

**Author:** ![jim\_mckay](https://forum.xojo.com/user_avatar/forum.xojo.com/jim_mckay/32/905_2.png) [@jim\_mckay](https://forum.xojo.com/u/jim_mckay)\
**Post date:** [November 7, 2014, 5:37pm UTC](https://forum.xojo.com/t/plain-box-rounded-corners/20227/8 "2014-11-07T17:37:11Z")

</div>

Oh, right… sorry, I’ve got scaling on my mind…

---

<div class="post-metadata">

**Author:** ![Patrick\_Delaney](https://forum.xojo.com/user_avatar/forum.xojo.com/patrick_delaney/32/1123_2.png) [@Patrick\_Delaney](https://forum.xojo.com/u/Patrick_Delaney)\
**Post date:** [November 7, 2014, 6:06pm UTC](https://forum.xojo.com/t/plain-box-rounded-corners/20227/9 "2014-11-07T18:06:20Z")

</div>

> [@141988:@jim mckay](#):
>
> Oh, right… sorry, I’ve got scaling on my mind…

What are you apologising for 🙂 You may have a brilliant idea I haven’t come across and I’m using the wrong term in stretching!

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:29pm UTC](https://forum.xojo.com/t/plain-box-rounded-corners/20227/10 "2020-10-29T17:29:02Z")

</div>


