Skip to main content

Notifications

Microsoft Dynamics AX forum
Answered

Wizard form - how to change Height / enable resizable

Posted on by Microsoft Employee

I'm unable to change the size of my wizard forms. I've followed the guidance in "Creating Resizable Forms [AX 2012]": https://msdn.microsoft.com/en-us/library/aa884066.aspx?f=255&MSPPError=-2147217396

I've read about setting the width and height properties for all nodes to "column width/height" (done for the Design node, Tab, tab pages, groups, all controls) but after doing this for all controls, the height is always the default Wizard height.  The width will expand if there is a long text string but not the height. I've also tried changing the height property to a fixed pixel value, this extends the wizard frame size but the height of the contents isn't affected, the extra height is all below the Next/Back/Finish buttons.

Q: What other things can I try to change the height of the wizard? I'm using AX 2012 R2 so I don't have access to the new size properties.

I'm also unable to enable resizing, despite setting the EnableResize property on my wizards.

Q: Is there anything else I can try?

I'm also unable to maximize my wizards (probably related).

Thanks guys, my boss is stuck as well.

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,147 on at
    RE: Wizard form - how to change Height / enable resizable

    I recently have faced the same issue when wanted to make the DIXF entity creation wizard resizeable.

    If you want it to be fixed for only that form without changing the wizard class itself, you could just put this in the run() method of the form before the super call:

        element.design().windowResize(FormWindowResize::Dynamic);
        element.control(element.controlId('Tab')).heightMode(FormHeight::ColumnHeight);
    

    When columwidth/columheight is set for the tab pages and the groups/grids inside (DIXF is like that by default), resizing of the wizard becomes possible.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Wizard form - how to change Height / enable resizable

    I've found a way to change the dimensions of the wizard - by overriding the Prompt() method on the Wizard class. It is rather hacky, but you can copy and paste the source code for the prompt() method from within a debug session, copy and paste in to your overridden prompt() method and then change the following values:

            buildTabpage.height(550);   // Note: a group is added below to give the wizard a minimum size

            buildWindow.height(550);

    A few comments in the prompt() method give the sense that the Wizard isn't the greatest bit of coding in the world, as these values are hardcoded with additional fudge factors, so two can play at that game :)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Wizard form - how to change Height / enable resizable

    Bump

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Wizard form - how to change Height / enable resizable

    I originally had 'Frame' set to 'Standard' and 'WindowResize' to 'Dynamic', but just tried a combination of different settings on those properties with no success.

    Here's my properties window:

    CaptureWizardProps.PNG

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Wizard form - how to change Height / enable resizable

    Hi Crispin, sorry yes I am creating my own Wizard forms in the AOT which extend SysWizard, created using the Wizard Wizard.

Helpful resources

Quick Links

Dynamics 365 Community Update

Welcome to the inaugural Community Platform Update. As part of our commitment to…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Community Spotlight of the Month

Kudos to Mohana Yadav!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,115 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,971 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans