Change width/height of checkered rectangle while moving splitter

Using Syncfusion 16.2, when I move splitter on SplitContainerAdv, I get checkered rectangle that is bigger than splitter itself and it doesn't look good.

Is it possible to change its height/width?

Attachment: big_checkerboard_split_container_8a511d91.zip

3 Replies

VR Venkateshwaran Ramdoss Syncfusion Team July 23, 2018 05:41 AM UTC

Hi Marcin, 

Thank you for using Syncfusion products. 

We can change the size of the Splitter using SplitterWidth property and this property is not updated the preview width when Splitter with vertical orientation is a defect and this fix will be included in our upcoming Vol 2 Service Pack 2, 2018 release.  

Regards, 
Venkateshwaran V.R. 



MK MARCIN KUROWSKI August 2, 2018 08:02 AM UTC

Another issue I found is that when you override CreateParams property for a form with SplitContainerAdv to set flag WS_EX_COMPOSITED, splitter graphic only appears briefly while moving splitter, then disappears as soon as you stop moving mouse, even when you don't release mouse button. Without this flag, graphic stays in place until you release mouse button.

Code in form to reproduce this:

    protected override CreateParams CreateParams
    {
      get
      {
        CreateParams cp = base.CreateParams;
        cp.ExStyle |= 0x02000000;  // Turn on WS_EX_COMPOSITED
        return cp;
      }
    }


KR Kannan R Syncfusion Team August 3, 2018 09:58 AM UTC

Hi Marcin,                           
                         
Thanks for the update.   
 
We can reproduce the reported behavior at our end. We have drawn the Dragging Splitter indicator using Native function named PatBlt.   
 
 Code Example:   
   
[DllImport("gdi32", CharSet = CharSet.Auto, ExactSpelling = true)]   
   
internal static extern bool PatBlt(IntPtr hdc, int x, int y, int nWidth, int nHeight, intdwRop);   
   
Basically, using CreateParams will restrict Layout update in Form and we have ensured the same with Microsoft SplitContainer control, confirmed same problem occurred as well. So, we have raised a query in MSDN forum for the same in the below.   
   
 
Please follow up the above MSDN link for further updates.   
 
Regards,   
Kannan   
 


Loader.
Up arrow icon