|
|
You know, if you sit down and read this stuff, there's actually a *hell*
of a lot of switches and options in there...
Like, you'd think creating a window would just be "hey, please create a
window with this title please". But no. Apart from being able to specify
the title, icon, and initial size and place, you can do a whole heap of
other things:
- You can disable the close button.
- You can adjust the border style.
- You can remove the titlebar completely.
- You can enable or disable resizing the window.
- You can add that little help-icon thingy. You know, the one where the
user clicks the help button, clicks something in the window and gets an
error message saying "sorry, no help available".
- You can select "keep on top".
- You can select horisontal and/or vertical scrollbars.
- You can select whether whatever the window obscures is cached for fast
redraw.
- You can enable file drag/drop. (I'm not kidding...)
- You can do that thing that floating toolbars have, where the titlebar
is rendered smaller than usual and the window won't resize.
- You can have the window initially minimised or maximised.
- You can make it so the window can't become the active window. (I.e.,
you can see it, but can't select it.)
- You can "open" the window but have it invisible initially. (Presumably
you'll make it visible at some point - again presumably once you've
finished adding controls to it.)
This not including all the low-level stuff like what clipping to do,
which drawing context to use, which window messages to send, and a bunch
of other stuff I don't even comprehend yet.
And you thought you could just OPEN a window... ha!
Post a reply to this message
|
|