Print Page | Close Window

Unwanted gripper

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=1054
Printed Date: 11 May 2024 at 6:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Unwanted gripper
Posted By: Maui
Subject: Unwanted gripper
Date 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




Replies:
Posted By: SuperMario
Date Posted: 11 August 2004 at 2:57pm
Commandbars.ActiveMenuBar.Visible = False


Posted By: Maui
Date Posted: 12 August 2004 at 4:07am
Thank you



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net