Forum  Community Devel...  Community Frame...  Mouse Capture
Previous Previous
 
Next Next
New Post 9/23/2011 6:22 AM
  radoso
13 posts
No Ranking


Mouse Capture 

 Hello, one question:

what about Mouse Capture in VWGUI? It is possible? I'm not able to find anything about it and really need it in my Form... Do you have some links or examples or something to share?

thx

 
New Post 9/23/2011 12:55 PM
  palli
14323 posts
1st Level Poster




Re: Mouse Capture 

Hi,

It depends what you mean by Mouse Capture. I think it would be interesting for you to read this KB article here on the differences between Visual WebGui and Windows Forms programming.

As you can see inside that article then by design, there are some of the Mouse events and Mouse related features that are not implemented in Visual WebGui.

If you have any specific questions after reading this article, please explain in more detail what you are trying to accomplis and we may be able to help you out, or even suggest an alternative approach, if what you are trying to do is not implemented in Visual WebGui.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 9/27/2011 1:03 AM
  radoso
13 posts
No Ranking


Re: Mouse Capture 

 Hi palli, thank for your reply.

I read the article, but it does not cover my the problem. I will specify it:

I need to capture a controller to handle mouse events within or outside of a controller. I suppose the mouse capture event handler will envelop the controller. The purpose of this could be, for example closing some window (the controller) after mouse clicking outside the window. It is not able to it by handlers supported by the controller. 

 
New Post 9/27/2011 4:35 AM
  JamesC
850 posts
www.redcastle.co.uk
1st Level Poster




Re: Mouse Capture 

 radoso wrote
 

 The purpose of this could be, for example closing some window (the controller) after mouse clicking outside the window.

Hi there, so is your "cotroller" a sub-form opened by the main form?

if you open the sub-form .ShowPopUp() rather than .Show() then it will close automatically if you do click outside of it (IE clicking the main form will dismiss the sub-form)

 
New Post 9/27/2011 5:11 AM
  radoso
13 posts
No Ranking


Re: Mouse Capture 

 OK, the closing the window was only an example. As far the Form, ShowPopUp() could the way, how to close it and it seems to be useful trick. Thanks. I will consider it in my next design.

But actually, the capturing tool I need for my user DateTimePicker controller (the currently supported in the VWGui I dont like because of some properties which I cannot modify), which has a textbox, click-able picture / button, that opens a calendar by expanding the controller (User DateTimePicker) borders by calendar height after user mouse click at the button (picture). The controller borders are collapsed by callendar height after again user click at the button (hiding the calendar). The calendar is positioned below to the textbox and the button. 

Everything is fine expect that that collapsing (hiding) the calendar must be evoked by mouse clicking outside the controller. But the controller is not a window.  This is my main problem :)

 
Previous Previous
 
Next Next
  Forum  Community Devel...  Community Frame...  Mouse Capture
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS