Component 1 Flexgrid and Panes |
Post Reply |
Author | |
nick.brandwood
Groupie Joined: 17 December 2008 Location: Italy Status: Offline Points: 18 |
Post Options
Thanks(0)
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
Is there a way to avoid having to put them in pictureboxes?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
No. All MFC controls have same problem :(
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
Most controls reflects to extended properties (ambient) of the parent control.
A picturebox has ambient properties, docking panes have not.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |