Print Page | Close Window

Using CommandBarEdit in a popup

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=5856
Printed Date: 20 June 2025 at 1:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Using CommandBarEdit in a popup
Posted By: cmaxmedia
Subject: Using CommandBarEdit in a popup
Date Posted: 20 December 2006 at 4:37pm
Hi guys!

How can i do this:
I want to create a popup menu, when the user clicks the right mouse into a reportcontrol. in this report control i want to have a CommandBarEdit where the user can input his search string. by pressing enter the report control should filter by the user text.

why is this post in the commandbars-active-x?

I have already created a popup menu which contains textbox. how can i get the text the user want to search for?

i am using following code to build the Popup:


        Dim popup As CommandBar
        Dim Control As CommandBarControl
       
        Set popup = CommandBars.Add("Popup", xtpBarPopup)
        With popup.Controls
            .Add xtpControlButton, 1000, "Menu1"
           
            Set Control = .Add(xtpControlEdit, 1001, "Input Your Query: ")
        End With
   
        popup.ShowPopup


the get the value, i have tried as follows:



        Dim ac As CommandBarEdit
        Set ac = Me.CommandBars.FindControl(, 1001)    'This doesnt works?





Replies:
Posted By: Oleg
Date Posted: 21 December 2006 at 12:52am
Try
popup.FindControl.
 
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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