Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - React to input into a EditControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

React to input into a EditControl

 Post Reply Post Reply
Author
Message
finn View Drop Down
Groupie
Groupie
Avatar

Joined: 11 February 2005
Location: Germany
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote finn Quote  Post ReplyReply Direct Link To This Post Topic: React to input into a EditControl
    Posted: 04 March 2005 at 8:41am

Hello!

I've added a EditControl to my Toolbar. Now I want to read out the text of that control, if you pressed on the Return Key.

I hope someone can help me...

Yours,

Finn!

PS.: Sorry for my bad English. I'm from Germany and I can't speak and write English very well!

 

Back to Top
Devin Dazzle View Drop Down
Newbie
Newbie


Joined: 19 October 2004
Location: Denmark
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Devin Dazzle Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2005 at 6:55am

When you press the Enter key the Execut event is fired. You would then be able to get the text doing something like this in the Execute event:

Dim cBarControl As CommandBarControl
Set cBarControl = CmdBars.FindControl(, CONTROL_ID_OF_EDITCONTROL)
If Not cBarControl Is Nothing Then
   MsgBox cBarControl.Text
End If

Replace CONTROL_ID_OF_EDITCONTROL with the ID of the edit control.

A simpler way would be to just do the following:

Private Sub CmdBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)
   MsgBox Control.Text
End Sub

Best Regards
Kim



Edited by Devin Dazzle
Back to Top
finn View Drop Down
Groupie
Groupie
Avatar

Joined: 11 February 2005
Location: Germany
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote finn Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2005 at 7:21am

Thank you very much!

It works very well!

Yours,

Finn!

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