Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Pane resize with an ocx on
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Pane resize with an ocx on

 Post Reply Post Reply
Author
Message
castleJoe View Drop Down
Newbie
Newbie


Joined: 16 August 2004
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote castleJoe Quote  Post ReplyReply Direct Link To This Post Topic: Pane resize with an ocx on
    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

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 11 October 2004 at 11:46pm
if you are using commandbars, then only the commandbars_resize even will be called.
Back to Top
castleJoe View Drop Down
Newbie
Newbie


Joined: 16 August 2004
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote castleJoe Quote  Post ReplyReply Direct Link To This Post Posted: 12 October 2004 at 12:45am
I'm not using commandbars, I'm talking about docking pane.
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: 12 October 2004 at 2:56am

Locate it to picture box without borders and

Private Sub DockingPaneManager_AttachPane(ByVal Item As XtremeDockingPane.IPane)
    Item.Handle = Picture1.Hwnd
End Sub

Private Sub Picture1_Resize()
UserControl11.Move 0, 0, Picture1.Width, Picture1.Height
End Sub

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
castleJoe View Drop Down
Newbie
Newbie


Joined: 16 August 2004
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote castleJoe Quote  Post ReplyReply Direct Link To This Post Posted: 12 October 2004 at 3:12am

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...

Back to Top
castleJoe View Drop Down
Newbie
Newbie


Joined: 16 August 2004
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote castleJoe Quote  Post ReplyReply Direct Link To This Post Posted: 13 October 2004 at 7:26am
I see that nobody from CJ is commenting more on this case - is considered solved from CJ point of view?
Back to Top
Geraint P View Drop Down
Newbie
Newbie


Joined: 13 September 2004
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote Geraint P Quote  Post ReplyReply Direct Link To This Post Posted: 13 October 2004 at 9:54am

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).

 

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.219 seconds.