[00:00]
In this video, we will take an in-depth look at the properties of a Window. Just like components, Windows have properties that can change the way the Window looks and the way it behaves. We can view these properties in the designer by selecting the Window object in the project browser. It's important to note that if you click on the Window in the design space, or even in the background, you're going to select the root container that's inside the Window. So you must select it from the project browser. Down in the property editor, you'll see all the properties for the Window. Under behavior, we have properties that control if the Window's closable, maximizable, resizable and whether or not we want the Window to start maximized. So here in my client, I have the pop-up Window open right now, which is the Window that I'm looking at in the designer. Currently, closable, maximizable, and resizable are all checked.
[01:06]
And you can see that right now I can close it. I can maximize it and minimize it. And I can also resize it here in the client. If I go back and uncheck these properties in the designer and save these changes, you can see that now I don't have the closable nor maximizable buttons and I can't resize the Window anymore. Going down the list of properties, we have a title property, which is the title we see at the top of the Window if the title bar is showing. Then there's the border and title bar display policies. The top of the Window, which shows the title is the title bar and the border goes around the whole Window. Right now, both of those are set to always show in the client. But I can also set these to never show or only show when the Window is not maximized.
[02:06]
Let's go ahead and set these to never and never for both the title bar and the border. And we'll save my changes. Now you'll see that the pop-up Window looks like it has no border and no title bar at the top. If you do show the title bar, there's properties for the height of the title bar, as well as the font, if you want the font to be bigger or smaller. Down below under layout, we have the dock position. This is where you can set the Window to be one of the various types. You can make it a docked Window docking it to the west, south east, or north sides, or you can make it floating, which allows a Window to float around in the middle and is used for pop-up Windows and main Windows. There's some other properties for the location and size of the Window, which you can actually change by making the bigger or smaller in the designer. At the very bottom, we have a layer property and a dock index.
[03:06]
The layer property is mainly used for pop-up Windows because it determines the Z order or layer of the Window. The higher the number, the more on top that Window is going to be. If you have multiple Windows with the same layer, then the Window in focus will be on top. The dock index is if multiple Windows are docked to the same edge. So if there are two Windows that are docked west, then I can specify which one's going to be first and closest to the edge and which one's going to be second. Each of these properties play a part in determining how envision Window looks and behaves.