Mouse button-up

Mouse button-up

Postby fraxzi » Sat Apr 02, 2011 3: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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Mouse button-up

Postby Enrico Maria Giordano » Sat Apr 02, 2011 11:01 am

Try using bLButtonUp codeblock.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8712
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Mouse button-up

Postby fraxzi » Mon Apr 04, 2011 8: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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Mouse button-up

Postby Antonio Linares » Mon Apr 04, 2011 9:28 am

Frances,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Mouse button-up

Postby fraxzi » 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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Mouse button-up

Postby Antonio Linares » Tue Apr 05, 2011 7:40 am

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Mouse button-up

Postby fraxzi » Tue Apr 05, 2011 8: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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Mouse button-up

Postby Antonio Linares » Tue Apr 05, 2011 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 108 guests