implementing right click event |
Post Reply |
Author | |
BoboP
Groupie Joined: 21 March 2008 Status: Offline Points: 25 |
Post Options
Thanks(0)
Posted: 07 June 2008 at 4:16am |
Hi !
I need to give options to user for deletion or modification when he right clicks an item of propertygrid. Now on right click I am getting item name and its value..I can remove it as well. But I wanted user to know about this by giving option same way we get whenever we right click anywhere . presenting context menus to user. can anyone help in this ,. its is pretty urgent Thanks Bobo |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
Do you mean a popupmenu for a PropertyGridItem? Like this:
|
|
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.... |
|
BoboP
Groupie Joined: 21 March 2008 Status: Offline Points: 25 |
Post Options
Thanks(0)
|
Yes ! Exactly !
But I am using code jock 11.2.2 ocx property grid in c# Is it possible . and if yes could you suggest some way for doing it Thanks , |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
Here's a VB6.0 sample:
Private Sub wndPropertyGridFiles_RClick(ByVal Item As XtremePropertyGrid.IPropertyGridItem)
Dim Popup As CommandBar Dim ControlsView As CommandBarPopup
Set Popup = CommandBars.Add("Popup", xtpBarPopup) With Popup.Controls .Add xtpControlButton, ID_1, Item.Caption, -1, True .Add xtpControlButton, ID_2, Item.Value, -1, True Set ControlsView = .Add(xtpControlButtonPopup, ID_3, "View") ControlsView.BeginGroup = True ControlsView.CommandBar.Controls.Add xtpControlButton, ID_4, "Remove" ControlsView.CommandBar.Controls.Add xtpControlButton, ID_5, "Edit" ControlsView.CommandBar.Controls.Add xtpControlButton, ID_6, "...." End With Popup.ShowPopup End Sub This is the PopupMenu in code like in the image, but with VB6.0
|
|
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.... |
|
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 |