The Imaging Source Community  

Go Back   The Imaging Source Community > Third Party Software Support > MontiVision Development Kit

Attention:

MontiVision Development Kit Support for MontiVision Development Kit.

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old March 5, 2009
FS7 FS7 is offline
Registered User
 
Join Date: Feb 2009
Posts: 21
unmeant reaction on a mouse click inside the Smart Control

Hello,

i enlarge the Smart Control to adjust it to the Framework in runtime.
Now i get a unmeant reaction on a mouse click inside the Smart Control:
The Smart Control Window get the size of initialisation->The size i drag and drop it in my dialog-resources.

For any idea i'm really glad!
Reply With Quote
  #2  
Old March 6, 2009
FS7 FS7 is offline
Registered User
 
Join Date: Feb 2009
Posts: 21
Re: unmeant reaction on a mouse click inside the Smart Control

Hi,
i solve this in OnPaint...

void CLocalCamera::OnPaint()
{
CPropertyPage::OnPaint();

if(m_SCVideo){
CRect rcCtrl,rcWnd,rcBtn;
GetWindowRect(&rcWnd);
m_SCVideo.GetWindowRect(&rcCtrl);
m_btnScreenshot.GetWindowRect(&rcBtn);
CString str;
if(rcCtrl.Width() != rcWnd.Width() ||
rcCtrl.Height() != (rcWnd.Height()-rcBtn.Height()) ){
// Set position and size of SmartControl
SetSize(rcWnd.Width(),rcWnd.Height());
}
}


If anybody know an other/better solution, please let me know!
Reply With Quote
  #3  
Old July 10, 2009
Marc Cymontkowski's Avatar
Marc Cymontkowski Marc Cymontkowski is offline
Support Engineer
MontiVision
 
Join Date: Apr 2003
Posts: 287
Re: unmeant reaction on a mouse click inside the Smart Control

Hi,

Did you try IMVSCVideoWindow::ControlToVideo, which converts video coordinates to screen coordinates?


Best Regards,

Marc Cymontkowski
Reply With Quote
  #4  
Old July 15, 2009
FS7 FS7 is offline
Registered User
 
Join Date: Feb 2009
Posts: 21
Re: unmeant reaction on a mouse click inside the Smart Control

Hi Marc,

many thanks for your reply.
I understand how this function works, but I don't understand how it could help me to solve my problem that I tried to explain in my first message.


Best Regards


Ps: When callling this function without the graph being started, I get an exception.

Last edited by FS7; July 15, 2009 at 15:48:14.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ICControl crashes RPaulsen IC Imaging Control C++ Class Library 2 October 11, 2004 13:52:02


All times are GMT +1. The time now is 06:09:52.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 1991 - 2010 The Imaging Source Europe GmbH