FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Mouse button-up
Posts: 811
Joined: Tue May 06, 2008 04:28 AM

Mouse button-up

Posted: Sat Apr 02, 2011 03:38 AM

Dear All,

How to detect if mouse button was release after resizing window/dialog??

Kind regards,
Frances

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Mouse button-up

Posted: Sat Apr 02, 2011 11:01 AM

Try using bLButtonUp codeblock.

EMG

Posts: 811
Joined: Tue May 06, 2008 04:28 AM

Re: Mouse button-up

Posted: Mon Apr 04, 2011 08:03 AM
Enrico Maria Giordano wrote:Try using bLButtonUp codeblock.

EMG



Hello Mr. Enrico,

I tried that already but it doesn't work.. after you release the mouse button after resizing window it wont fire-up..


Kind regards,
Frances
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Mouse button-up

Posted: Mon Apr 04, 2011 09:28 AM

Frances,

oWnd:bResized := { | nSizeType, nWidth, nHeight | ... }

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM

Re: Mouse button-up

Posted: Tue Apr 05, 2011 12:22 AM
Antonio Linares wrote:Frances,

oWnd:bResized := { | nSizeType, nWidth, nHeight | ... }



Dear Mr. Antonio,

If I use bResized, a frequent resized of Crystal Reports ActiveX Viewer causes the app to hang..

I dont know how to avoid this in CRW.. but If I can execute a resize to CRW, It can prevent the hangup.

So I just need to detect when a mouse button was released after a window resized so I can resize Crystal Reports ActiveX viewer once after the window was resized.

Any other way?

Kind Regards,
Frances
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Mouse button-up

Posted: Tue Apr 05, 2011 07:40 AM

Try with aMinMaxInfo, please check FWH\samples\TestSize.prg

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM

Re: Mouse button-up

Posted: Tue Apr 05, 2011 08:18 AM
Antonio Linares wrote:Try with aMinMaxInfo, please check FWH\samples\TestSize.prg



Dear Mr. Antonio,

I used aMinMaxInfo to limit window size. there's no problem there...

What I need is to detect mouse button-up after user resized the window.


Kind Regards,
Frances
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Mouse button-up

Posted: Tue Apr 05, 2011 08:28 AM
Frances,

You could capture the mouse, using SetCapture( hWnd ):
http://msdn.microsoft.com/en-us/library/ms646262(v=vs.85).aspx

To trap such event you may need to use: WM_NCLBUTTONUP
http://msdn.microsoft.com/en-us/library/ms645621(v=vs.85).aspx
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion