Print Page | Close Window

Addin Events to the Buttons in the XCB file

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=18505
Printed Date: 23 November 2024 at 12:07pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Addin Events to the Buttons in the XCB file
Posted By: srikanthg
Subject: Addin Events to the Buttons in the XCB file
Date Posted: 07 June 2011 at 1:58am
Hi Everyone,
        Actually i am very new to Code-jock.So with all your support i hope i can do wonders.
Here is my first question.I have created a XCB File and i am able to load that into my MDI form.
But i want to add the events to that buttons which were created in XCB File.



Thanks ...
Srikanth G
Keep smilingSmile



Replies:
Posted By: Oleg
Date Posted: 07 June 2011 at 3:11am
Please start from our samples, they show everything you need to work with CommandBars.

you need implement CommandBars_Execute event:

Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)

    On Error Resume Next
    
    Select Case Control.Id
        Case ID_APP_ABOUT:             CommandBars.AboutBox
 ...



See CommandBars\VB\DesignerSample sample.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: srikanthg
Date Posted: 07 June 2011 at 3:34am
Hi Oleg,
Thanks for your quick reply.

keep Smiling...
Srikanth G


Posted By: srikanthg
Date Posted: 07 June 2011 at 5:41am
Hi,
 I have another doubt.
I did as you suggested me and able to run the events.
But if i have a combobox in the xcb file(Ribbon bar)
and how to get the selected item text in the application.

Thanks...
Srikanth G



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