Pane resize with an ocx on |
Post Reply |
Author | |
castleJoe
Newbie Joined: 16 August 2004 Status: Offline Points: 30 |
Post Options
Thanks(0)
Posted: 11 October 2004 at 4:31pm |
I just started looking at the docking pane and I managed to attach my ocx to it. The ocx holds some other controls that are resized on the resize event of the ocx, but that is not called although the ocx apparently is resized by the pane. How do I trap the resize event so I can adjust the controls inside the ocx? Thanks, Joe |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
if you are using commandbars, then only the commandbars_resize even will be called.
|
|
castleJoe
Newbie Joined: 16 August 2004 Status: Offline Points: 30 |
Post Options
Thanks(0)
|
I'm not using commandbars, I'm talking about docking pane.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Locate it to picture box without borders and Private Sub DockingPaneManager_AttachPane(ByVal Item As XtremeDockingPane.IPane) Private Sub Picture1_Resize()
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
castleJoe
Newbie Joined: 16 August 2004 Status: Offline Points: 30 |
Post Options
Thanks(0)
|
Thanks Oleg, it almost works. It's working only if the pane is docked, but not when the pane floats (dblclk on the header). I found out that this is a MS bug (http://support.microsoft.com/kb/q187740/) but that doesn't help too much because I doubt that they will ever fix it... |
|
castleJoe
Newbie Joined: 16 August 2004 Status: Offline Points: 30 |
Post Options
Thanks(0)
|
I see that nobody from CJ is commenting more on this case - is considered solved from CJ point of view?
|
|
Geraint P
Newbie Joined: 13 September 2004 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
I'm having a very similar issue as well. I've followed the code in here, so my panes all have a picture box attached to them. The picture boxes contain the individual OCXs which are then resized in the picture box resize event. Trouble is the contents of the OCX don't seem to be drawn completely. Works fine when panes are getting resized by the splitter, but if a pane is floated and docked somewhere else (causing a resize of the pane with the OCX) then the OCX isn't drawn fully during the resize event. Tab in-and-out of the app and it's drawn fully again. Works fine if I substitute a text box for the OCX. Any ideas? I'm going to try forcing the OCX to redraw itself in this situation (although I'd have expected the Move method to have done that).
|
|
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 |