Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - ComboBox Clicked Event
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ComboBox Clicked Event

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


Joined: 23 March 2004
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote blockwood Quote  Post ReplyReply Direct Link To This Post Topic: ComboBox Clicked Event
    Posted: 01 April 2004 at 9:03am
Hi,

I have a combobox control in my command bar. How can I determine the value selected by the user, what event should I look for. Any code snippet would be appreciated.

thx - Brian
Back to Top
Bjarne View Drop Down
Newbie
Newbie
Avatar

Joined: 30 December 2003
Location: Denmark
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bjarne Quote  Post ReplyReply Direct Link To This Post Posted: 01 April 2004 at 9:14am

Hi Brian,

Lets say you have a ComboBox with the ID of ID_FONTCOMBO, and you want to set the Font of an RTF Text box to the font displayed in the ComboBox

In the Execute Event og CommandBar you could put the following:

Private Sub cmdBar_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)
Dim mCombo          As ICommandBarComboBox

        Select Case Control.ID
        Case ID_FONTCOMBO
             Set mCombo = Control.Parent.FindControl(, Control.ID, , True)
             rtfEdit.SelFontName = mCombo.Text
        End Select
   
End Sub

Hope this helps

Bjarne

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 01 April 2004 at 9:17am
Take a look at the dynamic popups sample.

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