Plain Box - Rounded corners

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

[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

Thanks Michel - didn’t recognise you from your Avatar :wink:

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

[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.

That’s great - thanks for your thoughts/help

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.

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

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