Print Page | Close Window

Some Questions about CommandBarEdit

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=10850
Printed Date: 07 October 2024 at 8:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Some Questions about CommandBarEdit
Posted By: AndreiKr
Subject: Some Questions about CommandBarEdit
Date Posted: 31 May 2008 at 12:11pm
I want make same find tool, my code for example
Set FindBox = GridBar.Controls.Add(xtpControlEdit, FindCmd, "Find")
It works correctly, but I have one question: how I may get FindBox.Text property after every KeyDown from user?
I finded CommandBarKeyDown Event. Its works, but this Event fired before changing Text property, and I got Text value without last character.
If exist simple and correctly decision for my problem, please write me.
Thanks.



Replies:
Posted By: Aaron
Date Posted: 31 May 2008 at 12:33pm
Hi,
 
You can use the CommandBars_Update event for this.
 
Private Sub CommandBars_Update(ByVal Control As XtremeCommandBars.ICommandBarControl)
    Select Case Control.ID
        Case ID_FILTERTEXT
            Me.Caption = Control.Text
    End Select
End Sub


-------------
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....



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