Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic SuspendLayout does not suspend everything... (Read 3534 times)
Achim
Junior Member
**
Offline


MindFusion rocks!

Posts: 70
Location: Bayreuth, Germany
Joined: Jun 28th, 2012
SuspendLayout does not suspend everything...
Jan 14th, 2013 at 1:10pm
Print Post  
Hi there,

i'm using the ResourceView and have about 20-30 Resources to be drawn which takes about 5-10 seconds. So I wanted to uses SuspendLayout() and ResumeLayout() but this produces weird results.

As you can see in the screenshot attached the vertical scrollbar goes to the left and shrinks continuously until the loading process is finished and ResumeLayout() is called.

Am I wrong or shouldn't the control be absolutely "quiet" as long as the layout logic is suspended? Or have I forgotten to do something other needed?

Best regards and thanks for any help
Achim

  
Back to top
WWW  
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: SuspendLayout does not suspend everything...
Reply #1 - Jan 14th, 2013 at 1:29pm
Print Post  
Hi,

SuspendLayout and ResumeLayout are not supported. Try using BeginInit/EndInit instead.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Achim
Junior Member
**
Offline


MindFusion rocks!

Posts: 70
Location: Bayreuth, Germany
Joined: Jun 28th, 2012
Re: SuspendLayout does not suspend everything...
Reply #2 - Jan 14th, 2013 at 1:47pm
Print Post  
Thank you. This works as expected.

Achim
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint