Home Coding, Scripting, Shaders

[maxscript] resizing rollout floater

scgstudio
polycounter lvl 5
Offline / Send Message
scgstudio polycounter lvl 5
Hi.
In every version before 2019.3 this line of script is working:
on _rollout resized size do
(	
print ( size as string)
)
when I resize vertically rollout floater window I got point2 value with current height.
In Max 2019.3 this event is not triggering at all.
I have read the docs and this event is present in very first rollout so it is correctly placed ( works in max 2018 and earlier )
Am I missing something here ?
Any help is much appreciated.
Adam

Replies

  • scgstudio
    Options
    Offline / Send Message
    scgstudio polycounter lvl 5
    It turns out it is a bug. Already reported.
    And to make it work you have to add 
    autoLayoutOnResize:true 

    for each rollout for embedded in subrollouts or to rollout floater when your rollouts are not embedded.

    This additional option will cause compilation errors in every previous Max version. YAY !

  • scgstudio
    Options
    Offline / Send Message
    scgstudio polycounter lvl 5
    As a 100% remedy for this lack of functionality you have to use 
    createDialog test_dialog style:#(#style_resizing,#style_titlebar, #style_border, #style_sysmenu)
    with some subrollouts in it.
  • monster
    Options
    Offline / Send Message
    monster polycounter
    Maybe on rollout open you can do:

    if (MaxVersion())[1] >= 21000 do _rollout.autoLayoutOnResize = true 
  • scgstudio
    Options
    Offline / Send Message
    scgstudio polycounter lvl 5
    I did. But I have more complex setup than just few rollouts here and there.
    When it comes to nesting rollouts inside of subrollouts, and those nested also hold another 4 rollouts each.... it is not that easy to set it up.
    So I just switched from rollout floater to dialog with subrollouts. Works perfectly and looks the same.
    And is 100% compatible with every Max version to this date ( for as long as Atdsk will not 'improve' anything else )
    Thanks for an idea anyway :)
Sign In or Register to comment.