Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - PropertyGrid Control and CommandBars Bar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PropertyGrid Control and CommandBars Bar

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


Joined: 28 April 2006
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote mrlinx Quote  Post ReplyReply Direct Link To This Post Topic: PropertyGrid Control and CommandBars Bar
    Posted: 11 May 2006 at 7:11am
hi.
I'm having a problem I believe it's new in version 10 (VB6).

The problem is the dialogbar in CommandBars with a propertygrid as child. With a simple dialog bar, and the propertygrid as clield, if I mouse click on the Property grid... the grid goes away, as if wasnt a dialogbar anymore.

at form load the propertygrid is in the right place (at dialog bar) but after a click it disapears and shows in the original place (place where I left it in the vb6 form designer) with Visible = true.

You can use this simple sample to test.

2006-05-11_070618_sample.rar




Code:

Option Explicit
Dim DialogBar As DialogBar

Private Sub Form_Load()
    CommandBarsGlobalSettings.App = App
    CommandBars.DeleteAll
    Set DialogBar = CommandBars.AddDialogBar("TaskPanel", xtpBarRight)
    DialogBar.ChildHandle = PropertyGrid1.hWnd
End Sub
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: 11 May 2006 at 8:30am

Hello,

Please put PropertyGrid to PictureBox and attach PictureBox to DialogBar.

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


Joined: 28 April 2006
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote mrlinx Quote  Post ReplyReply Direct Link To This Post Posted: 11 May 2006 at 11:47am
oleg, thanks.

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