From: Bert L. <b....@op...> - 2006-01-27 17:23:41
|
I have a Win32::GUI::Grid in my app, in List Mode. I want to implement = drag and drop to reorder the rows. The _BeginDrag event works fine, but = it seems like I can't trap any of the other events such as _MouseMove, = _MouseUp...=20 I've tried using standard NEM (Grid_MouseMove), and also specifying = option -onMouseMove =3D> \&GridMouseUp, but the handler function is = never called. Any hints greatly appreciated. /Bert |
From: Jeremy W. <jez...@ho...> - 2006-01-28 19:18:34
|
Hi, >I have a Win32::GUI::Grid in my app, in List Mode. I want to implement drag >and drop to reorder the rows. The _BeginDrag event works fine, but it seems >like I can't trap any of the other events such as _MouseMove, _MouseUp... >I've tried using standard NEM (Grid_MouseMove), and also specifying option >-onMouseMove => \&GridMouseUp, but the handler function is never called. > Unfortunately, NEM isn't available for the Grid control. I've created a tracker for this item: http://sourceforge.net/tracker/index.php?func=detail&aid=1417290&group_id=16572&atid=366572 Cheers, jez. |
From: Bert L. <b....@op...> - 2006-01-30 15:40:36
|
Thanks for the reply. I see, no NEM. But even with OEM I can't trap any useful dragging event besides _BeginDrag. I would expect _MouseMove to work, or _MouseUp, but nope. _DblClick, _Changed etc work, but aren't useful for a drag operation. I wonder what the use is for _BeginDrag if you cannot handle the rest of the drag? I must be missing something... Any hints appreciated.... Bert ----- Original Message ----- From: "Jeremy White" <jez...@ho...> To: <b....@op...>; <per...@li...> Sent: Saturday, January 28, 2006 8:17 PM Subject: RE: [perl-win32-gui-users] Win32-GUI-Grid mouse events > Hi, > >>I have a Win32::GUI::Grid in my app, in List Mode. I want to implement >>drag and drop to reorder the rows. The _BeginDrag event works fine, but it >>seems like I can't trap any of the other events such as _MouseMove, >>_MouseUp... >>I've tried using standard NEM (Grid_MouseMove), and also specifying >>option -onMouseMove => \&GridMouseUp, but the handler function is never >>called. >> > > Unfortunately, NEM isn't available for the Grid control. I've created a > tracker for this item: > > http://sourceforge.net/tracker/index.php?func=detail&aid=1417290&group_id=16572&atid=366572 > > Cheers, > > jez. > |
From: Jeremy W. <jez...@ho...> - 2006-01-30 17:26:23
|
>Thanks for the reply. I see, no NEM. But even with OEM I can't trap any >useful dragging event besides _BeginDrag. I would expect _MouseMove to >work, or _MouseUp, but nope. _DblClick, _Changed etc work, but aren't >useful for a drag operation. I wonder what the use is for _BeginDrag if you >cannot handle the rest of the drag? I must be missing something... Any >hints appreciated.... I just had a quick look through the code, and I can't see anything that could be used with _BeginDrag, in which case it's not a very useful event:) It might be the case that some events are missing. The Grid control is actually based upon MFC Grid control (C++) By Chris Maunder: http://www.codeproject.com/miscctrl/gridctrl.asp There might be more information on that web link. I noticed there is a new version of MFC Grid, and it could be a nice project for someone to update and enhance Win32::GUI::Grid to use this version (any takers?) Sorry I couldn't be of more help, Cheers, jez. |