childpanel with filmstrip crash

m0ma5
m0ma5 Member Posts: 7 Member

Hey there, Kontakt (6.1.1) crashes when stacking a panel that contains an ui element with attached filmstrip into another panel. So nesting panels does not work.

is this fixed with last update or am I doing something wrong?

✌️

on init
    make_perfview
    message( "" )
    declare ui_label $demolabel( 1, 1 )
    set_control_par_str( get_ui_id( $demolabel ), $CONTROL_PAR_PICTURE, "picture" )
    declare ui_panel $panel_A
    set_control_par( get_ui_id( $demolabel ) ,$CONTROL_PAR_PARENT_PANEL, get_ui_id( $panel_A ))
    declare ui_panel $panel_B
    set_control_par( get_ui_id( $panel_A ) ,$CONTROL_PAR_PARENT_PANEL, get_ui_id( $panel_B ))
end on

Best Answer

  • EvilDragon
    EvilDragon Moderator Posts: 1,021 mod
    Answer ✓

    Parent panel can only be the one declared before the child. So you cannot make $panel_A a child of $panel_B, but you can do it the other way around.


    Either way, Kontakt shouldn't crash here (this still happens in latest version), but just keep this in mind for now.

Answers

  • EvilDragon
    EvilDragon Moderator Posts: 1,021 mod
    Answer ✓

    Parent panel can only be the one declared before the child. So you cannot make $panel_A a child of $panel_B, but you can do it the other way around.


    Either way, Kontakt shouldn't crash here (this still happens in latest version), but just keep this in mind for now.

  • m0ma5
    m0ma5 Member Posts: 7 Member

    Ah Ok, kinda confusing 😅 but now it works, thanks a lot !

Back To Top