To bring it back, I can just click it from the menu here. But it has lost focus to another window within the same layer, so it becomes hidden. If I click Windows, I can see that it's still open. The main window is set to layer 0 so if I change the pop-up window to layer 0, I can save, open the pop-up window, click the main window, and the pop-up will disappear. Windows with higher layer numbers will always be on top of windows with the lower layer numbers. This is controlled by the Layer property. If I go back to the client, open my pop-up window, and click outside of its bounds, You'll see that it remains in front of the main window. If you want to use the location property for your pop-up window, be sure to uncheck the center option and the Navigation action as this will override the location property. Finally, the Layout properties allow me to change things like the location and size of the pop-up window. For example, I can change the title to something like 'Super Cool Popup Window.' Now, if I save and head back to the client, you can see the title here. The Appearance properties are where I can configure a title for my pop-up window. The Behavior properties allow me to do things like make it closable or resizable. Let's take a look at the Property Editor to see what can be configured on my pop-up window. Specifically a pop-up window was a floating window that is set to not start maximized. A pop-up window is just a window with certain settings. Back in the designer, I'll select the pop-up window in the Project Browser. I'll head back to the designer and look at some of the ways I can configure my pop-up. I can click and drag to move it around, I can resize it and I can close it. If I click the Button, you can see that the Popup window opens. Once I'm done here, I'll click ok and I can test my new window by saving and launching a client. Want the pop-up to open and center and I'll choose My Popup from the drop-down menu. I'll choose the actionPerformed Event Handler and on the Navigation tab, I'll click the Open/Swap radial button. Now that I have a button on my main window I can double click it to open the component scripting window. I want to place a button on this window that opens my new pop-up. I have a main window in my project that automatically opens on startup. I'll give it the text: This is a pop-up window!! Now that I have a pop-up window, let's go over opening it. I'm gonna call it My Popup and click Create Window. The new window prompt will open and I can name my new window. Within the vision section of my designer I can right click Windows and click pop-up window. To get started, I'll create a pop-up window. In this lesson, I'll go over pop-up Windows including their properties and how to open them.
0 Comments
Leave a Reply. |