Ticket Q445690
Visible to All Users

How to set the width, height, isMaximized, location and other underlying form template properties to control how XAF windows are shown

created 12 years ago

Hi,

Perhaps this isn't too complicated, but I can't come up with a quick answer tonight… I have a parameters object I'm using together with an Action, so it is shown in a popup window, using the new style in the 12.1 web application. One of the elements of the parameters comes up as a combo box, which pops open - and unfortunately the popup window doesn't have enough room for the combo box popup, so that suddenly a scroll bar is displayed when the combo box opens. This looks rather crazy.

What would you suggest to allow me to specify a greater height for the popup window than what is allocated automatically, in order to make room for the combo to pop open without the scrollbar issue?

Thanks
Oliver

Comments (1)
Oliver Sturm (DevExpress) 12 years ago

    Oh, I should perhaps clarify - I know I can achieve this by creating a controller and set the size and all that. I only thought there was perhaps an easier way. It also seems to me that before 12.1 I wasn't having the same problem, possibly because the windows that were used then didn't restrict the display of the combo box… or something. Anyway, something more direct than writing a special controller is what I'm looking for…

    Answers

    created 12 years ago (modified 6 years ago)

    Even though we do not provide any special Application Model options for this particular scenario at the moment,  you can use the following code-based solutions (programmatic):

    WinForms
        - Task-Based Help > How to: Adjust the Size and Style of Pop-up Dialogs (WinForms);
    OR
        - Handle the DevExpress.ExpressApp.Win > WinShowViewStrategyBase > WinWindowShowing event, which is convenient for global or View-independent customizations.

    ASP.NET
        Task-Based Help > How to: Adjust the Size and Style of Pop-up Dialogs (ASP.NET).

    Common

    1. You can accomplish certain tasks for popup windows using the platform-agnostic Size, IsSizeable, Maximized properties of the PopupWindowShowAction.CustomizePopupWindowParams event arguments.
    2. Do not miss important notes in the end of the help topics above, because these approaches have their specificities depending on the form template type.
    3. These code solutions can be further improved based on your business requirements. For instance, if you want to provide a developer or application user with the capability to specify sizes in the Model Editor, you can extend required View node types (e.g., IModelView) with the Width and Height attributes in the Application Model and then modify the aforementioned code to read these attributes respectively. Refer to the eXpressApp Framework > Concepts > Application Model > Extend and Customize the Application Model in Code article for more details.

    Search keywords
    Windows Form, form template, window, popup, dialog, lookup, System.Windows.Forms.Form, resize, size, shrink, maximize, maximum, maximized, minimize, minimized, minimum, squeeze, center, position, location, width, height, WindowState, Point, FormStartPosition, FormWindowState

      Show previous comments (7)

        i am still wondering why the default splash screen is still a static when there is now a splash screen that give real time information  about whats going on

        Dennis Garavsky (DevExpress) 11 years ago

          @Peter: You can already use the SplashScreenManager if you want a dynamic splash screen: How to: Use a Custom Splash Screen, because we have made this integration easier.

          Dennis Garavsky (DevExpress) 8 years ago

            @All:
            We have recently updated our online documentation in this regard, so you may be interested to check it out:
                Task-Based Help > How to: Adjust the Size and Style of Pop-up Dialogs (WinForms)
                Task-Based Help > How to: Adjust the Size and Style of Pop-up Dialogs (ASP.NET)
            I've updated my original answer accordingly.

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.