WindowsOptions

2 views
Skip to first unread message

Bil Simser

unread,
May 7, 2008, 5:12:16 PM5/7/08
to xeva
Any thoughts on adding functionality to WindowsOptions? Currently you
can only set the size and modality of the window. A couple of things
I'm thinking about:

* Display or not display a frame (e.g. for a splash screen)
* Display the frame as a tool window
* Position of the window on the screen

I'm afraid that WindowsOptions will bloat out with a lot of "ui" type
stuff, but maybe that's just how it is.

David Laribee

unread,
May 7, 2008, 7:18:07 PM5/7/08
to xe...@googlegroups.com
Position is a good idea. Also start position (center, default, etc.)

The rest of that should probably be handled with a custom WindowAdapter, so:

1. ToolWindowAdapter - wraps up a tool window.
2. SplashWindowAdapter - a chrome-free window for splash or maybe about...
3. etc.

Make sense?
--


/ Dave

http://thebeelog.com

Bil Simser

unread,
May 8, 2008, 6:59:37 AM5/8/08
to xeva
Makes sense. I wasn't thinking the frame types would be in the
WindowAdapter but that's where it belongs.

On May 7, 5:18 pm, "David Laribee" <da...@laribee.com> wrote:
> Position is a good idea. Also start position (center, default, etc.)
>
> The rest of that should probably be handled with a custom WindowAdapter, so:
>
> 1. ToolWindowAdapter - wraps up a tool window.
> 2. SplashWindowAdapter - a chrome-free window for splash or maybe about...
> 3. etc.
>
> Make sense?
>

David Laribee

unread,
May 8, 2008, 8:00:58 AM5/8/08
to xe...@googlegroups.com
Is there a better name than WindowAdapter? Always on the lookout for more intention revealing interfaces...

Bil Simser

unread,
May 8, 2008, 9:35:22 AM5/8/08
to xeva
I'm toying with WinFormsAdapter and WinFormsFactory which isn't bad
but I think it falls down with introducing different types of windows.
WinFormsWindowAdapter sounds a little goofy. WinFormsToolWindowAdapter
just doesn't look or feel right.

Having said that, the WinFormsAdapter/Factory worked for me (before
thinking about different types of windows) as I tried out a WPFAdapter/
Factory and WebFormAdapter/Factory.
> http://thebeelog.com- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages