Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Unwanted gripper
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Unwanted gripper

 Post Reply Post Reply
Author
Message
Maui View Drop Down
Groupie
Groupie


Joined: 10 June 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maui Quote  Post ReplyReply Direct Link To This Post Topic: Unwanted gripper
    Posted: 11 August 2004 at 2:55pm

Hi,

I've got a form and on that form I have put a report control and a command bars control.

I dont want a menu on the form but I do want to have a popup menu when the user right clicks on one of the rows in the report control.

I added the code below and the popup menu appears and works fine.

My problem is that having the commandbars control on the form causes a gripper to appear in the top left of the screen where you would expect the menu to normally be. The gripper can be moved around and floated but doesnt contain anything.

Am I creating my popup menu wrong?
Any idea how I can remove the gripper?

Thanks.

Private Sub Grid1_RowRClick(ByVal row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem)
        Dim Popup As CommandBar
       
        Set Popup = CommandBars.Add("Popup", xtpBarPopup)
        With Popup.Controls
             .Add xtpControlButton, ID_POPUP_ADD, "&Add"
             .Add xtpControlButton, ID_POPUP_EDIT, "&Edit"
             .Add xtpControlButton, ID_POPUP_DELETE, "&Delete"
        End With
   
        Popup.ShowPopup
End Sub

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 August 2004 at 2:57pm
Commandbars.ActiveMenuBar.Visible = False
Back to Top
Maui View Drop Down
Groupie
Groupie


Joined: 10 June 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maui Quote  Post ReplyReply Direct Link To This Post Posted: 12 August 2004 at 4:07am
Thank you
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.172 seconds.