Print Page | Close Window

Component 1 Flexgrid and Panes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=13626
Printed Date: 28 September 2024 at 5:51pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Component 1 Flexgrid and Panes
Posted By: nick.brandwood
Subject: Component 1 Flexgrid and Panes
Date Posted: 09 March 2009 at 1:22pm
...today isn't my day with the panes control.
 
I see from the forum that I'm not the only one who uses the Component One flexgrid,  a bug and a workaround for you all:
 
If a flexgrid is attached to a pane (.handle = vsflexgrid.hwnd) :
When the grid is drawn it fills pane size correctly, however when the pane gets focus, the dimensions of the grid get messed up.
Resizing the pane "fixes" the problem (till it gets focus again).
 
As a workaround, stick the flexgrid in a picturebox and manage the resize event of the picturebox resolves the problem.
flexgrid1.move 0, 0, picture1.width, picture1.height
 
http://forum.codejock.com/uploads/20090309_131614_panes_test.zip - uploads/20090309_131614_panes_test.zip
 
Is there a way to avoid having to put them in pictureboxes?



Replies:
Posted By: Oleg
Date Posted: 10 March 2009 at 2:21am
No. All MFC controls have same problem :(

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Baldur
Date Posted: 15 May 2009 at 8:58am
Most controls reflects to extended properties (ambient) of the parent control.
A picturebox has ambient properties, docking panes have not.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net