Home Forums WinForms controls Other WinForms controls DockLayoutManager.LoadLayout() malfunction

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #18402 |

    I’ve noticed that another strange thing happens when loading layout from XML file.
    In spite of previously saved width and height values for any docked window, it is always restored with some default width/height value = 200 (top/bottom docked window ignores previous height, left/right docked window – width)

    Imported from legacy forums. Posted by Serge (had 3193 views)

    User (Old forums)
    Member
    Post count: 23064

    Do you use the SaveLayout() and LoadLayout() methods to do this? With these methods, the tests we have made work fine here.

    Imported from legacy forums. Posted by André (had 395 views)

    User (Old forums)
    Member
    Post count: 23064

    Beg your pardon, it was my mistake – I’ve blindly tried to invoke LoadLayout() method just after InitializeComponent(), not in Form.Load event handler. Now, it’s all right)

    Imported from legacy forums. Posted by Serge (had 4508 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.