Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Need Help to handling Custom Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Need Help to handling Custom Control

 Post Reply Post Reply
Author
Message
RedPsyrus View Drop Down
Groupie
Groupie
Avatar

Joined: 17 November 2008
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote RedPsyrus Quote  Post ReplyReply Direct Link To This Post Topic: Need Help to handling Custom Control
    Posted: 11 May 2009 at 1:50pm
Hi,
I have create a right click menu with a custom Control but I have a problem with it
here is a sample code I use


uploads/20090511_134850_VBHandleMenu.zip



thanks


I'm using visual studio 2008 pro and codejock 12.1.1
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 11 May 2009 at 2:33pm
Hi,
 
Maybe you need to put DataGrid in PictureBox or Form and attach PictureBox.hwnd / Form.hwnd?
 
 
 
 
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
RedPsyrus View Drop Down
Groupie
Groupie
Avatar

Joined: 17 November 2008
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote RedPsyrus Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2009 at 7:09am
Hi,
Thanks to reply Aaron..
I do it with Conteneurs, form and usercontrol,, the same problem
is there another way to bypass it

thanks
I'm using visual studio 2008 pro and codejock 12.1.1
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2009 at 1:50pm
Hi,
 
The only thing I can offer is a working sample in VB code.
 
    Dim Popup As CommandBar
    Dim settingsProperties As CommandBarPopup
    Dim settingsPropertiesHandle As CommandBarControlCustom
       
    If Button = 2 Then
        Set Popup = CommandBars.Add("Popup", xtpBarPopup)
        With Popup.Controls
            Set settingsProperties = .Add(xtpControlButtonPopup, 1, "Settings")
            Set settingsPropertiesHandle = settingsProperties.CommandBar.Controls.Add(xtpControlCustom, 2, "Settings")
                  settingsPropertiesHandle.Handle = picPropertyGridControl.hWnd
        End With
        Popup.ShowPopup
    End If
 
 
Remark:
picPropertyGridControl = Picturebox (with PropertyGrid control on it)
 
 
This produces:
 
 
 
 
Hope this helps you a little
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
RedPsyrus View Drop Down
Groupie
Groupie
Avatar

Joined: 17 November 2008
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote RedPsyrus Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 2009 at 12:05pm
hi..
dont work with vb 9 Aaron
thanks for the help

I'm using visual studio 2008 pro and codejock 12.1.1
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.063 seconds.