Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Component 1 Flexgrid and Panes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Component 1 Flexgrid and Panes

 Post Reply Post Reply
Author
Message
nick.brandwood View Drop Down
Groupie
Groupie


Joined: 17 December 2008
Location: Italy
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote nick.brandwood Quote  Post ReplyReply Direct Link To This Post Topic: Component 1 Flexgrid and Panes
    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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 March 2009 at 2:21am
No. All MFC controls have same problem :(
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.