Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Using CommandBarEdit in a popup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Using CommandBarEdit in a popup

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


Joined: 22 April 2006
Location: Austria
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmaxmedia Quote  Post ReplyReply Direct Link To This Post Topic: Using CommandBarEdit in a popup
    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?


Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 21 December 2006 at 12:52am
Try
popup.FindControl.
 
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.047 seconds.