Print Page | Close Window

Popup Control does not fire click event

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7844
Printed Date: 30 May 2024 at 6:39am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Popup Control does not fire click event
Posted By: sanddevil
Subject: Popup Control does not fire click event
Date Posted: 21 August 2007 at 11:19am

Hi!

I am developing a Managed C++ solution using .Net 2003, so using the CodeJock ActiveX product. I have a problem with the Popup Control.

I have developed a popup to display status type messages such as "New user added to database". This works ok in the main code of my application. So, having got it working just fine as "inline" code I moved it out to its own class, and I created the class using the .Net Control Library wizard.

Now the popup still displays ok, but the click event does not fire. The generated code looks like

this->axPopupControl1->ItemClick += new AxInterop::XtremeSuiteControls::_DPopupControlEvents_ItemClickEventHandler(this, axPopupControl1_ItemClick);

and the event handler function looks like

private: System::Void axPopupControl1_ItemClick(System::Object *  sender, AxInterop::XtremeSuiteControls::_DPopupControlEvents_ItemClickEvent *  e)
    {
     System::Windows::Forms::MessageBox::Show("Got Here");
    }


Suffice to say, the Message Box is never displayed when I click over the control.

Any help gratefully received! Thanks in advance.




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