Why Emgu UI imageBox cann't response the click event

Ask questions on using Emgu CV with C++
seven
Posts: 6
Joined: Thu Oct 30, 2008 8:18 am

Why Emgu UI imageBox cann't response the click event

Post by seven » Thu Oct 30, 2008 8:22 am

When i use the imageBox of emgu, why can not response the click event ?
thank you

canming
Site Admin
Posts: 1038
Joined: Thu Feb 28, 2008 4:16 pm

Re: Why Emgu UI imageBox cann't response the click event

Post by canming » Thu Oct 30, 2008 8:34 am

Are you referring to the right-click menu?

I just ran the CPlusPlus example in Emgu.CV.Example folder, and I can right-click on the ImageBox to bring up the menu.

Can you elaborate a little bit about the OS you are using, the version of Emgu CV you are using and make sure the control is not a PictureBox?

Canming

seven
Posts: 6
Joined: Thu Oct 30, 2008 8:18 am

Re: Why Emgu UI imageBox cann't response the click event

Post by seven » Thu Oct 30, 2008 8:49 am

the left click even i mean ,waiting for your help thanks
seven

canming
Site Admin
Posts: 1038
Joined: Thu Feb 28, 2008 4:16 pm

Re: Why Emgu UI imageBox cann't response the click event

Post by canming » Thu Oct 30, 2008 9:00 am

If you need to implement custom logic, using Visual Studio, select the ImageBox from your form designer, view the property, click on the little flash sign, you will see many available events. For example, if you need to bind some function to the MouseClick, double click the "MouseClick" row and it will generate a function for you, where you can fill up the logic.

seven
Posts: 6
Joined: Thu Oct 30, 2008 8:18 am

Re: Why Emgu UI imageBox cann't response the click event

Post by seven » Thu Oct 30, 2008 9:07 am

thanks for your answer, i konw what you say and already do like your say, the click event , double click event ,MouseClick event , mousedoubleclick event and load event, only load event can execute, other events cann't respons when click the imageBox control

canming
Site Admin
Posts: 1038
Joined: Thu Feb 28, 2008 4:16 pm

Re: Why Emgu UI imageBox cann't response the click event

Post by canming » Thu Oct 30, 2008 9:15 am

Umm...

You are right, it is a bug. I will be working on it.

Thanks for letting me know.

seven
Posts: 6
Joined: Thu Oct 30, 2008 8:18 am

Re: Why Emgu UI imageBox cann't response the click event

Post by seven » Thu Oct 30, 2008 9:25 am

waiting for your new version and when your fix it please notice me, hope it will be soon, i want to use it recently^^.
thanks a lot .
seven

canming
Site Admin
Posts: 1038
Joined: Thu Feb 28, 2008 4:16 pm

Re: Why Emgu UI imageBox cann't response the click event

Post by canming » Thu Oct 30, 2008 4:22 pm

It has been fixed in the latest SVN checkin.

seven
Posts: 6
Joined: Thu Oct 30, 2008 8:18 am

Re: Why Emgu UI imageBox cann't response the click event

Post by seven » Thu Oct 30, 2008 10:50 pm

if i saw your latest code version on svn and the imageBox change like what you say. but i cann't run all the example and if i use this imageBox contrl it also got an error , my opencv version is v1.0

seven
Posts: 6
Joined: Thu Oct 30, 2008 8:18 am

Re: Why Emgu UI imageBox cann't response the click event

Post by seven » Thu Oct 30, 2008 11:04 pm

just see your code i found you use opencv1.1 instead of 1.0, if i have no opencv1.1 or i still want to use 1.0 but use imageBox control event how can i do? i see your code in CvInvoke.cs include " private const string CXCORE_LIBRARY = "cxcore110.dll";
private const string CV_LIBRARY = "cv110.dll";
private const string HIGHGUI_LIBRARY = "highgui110.dll";
private const string CVAUX_LIBRARY = "cvaux110.dll";"
can i change then into 100 and copy 100.dll into lib ? is that safe?
thanks
seven

Post Reply