Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Some Questions about CommandBarEdit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Some Questions about CommandBarEdit

 Post Reply Post Reply
Author
Message
AndreiKr View Drop Down
Newbie
Newbie
Avatar

Joined: 03 May 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndreiKr Quote  Post ReplyReply Direct Link To This Post Topic: Some Questions about CommandBarEdit
    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.
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
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.203 seconds.