FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour METROPNL need some more work
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
METROPNL need some more work
Posted: Fri Jul 27, 2012 06:40 PM

operating metropnl through touch tiles are moving in the wrong direction.
Also drag & drop of tiles should only work like in Windows 8. You must drag first vertical than drag and drop is working.
Best regards,
Otto

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: METROPNL need some more work
Posted: Sat Jul 28, 2012 08:11 PM

Is someone working with this class and can confirm this behavior?
Best regards,
Otto

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: METROPNL need some more work
Posted: Sun Jul 29, 2012 05:09 AM
Otto wrote:operating metropnl through touch tiles are moving in the wrong direction.
Also drag & drop of tiles should only work like in Windows 8. You must drag first vertical than drag and drop is working.
Best regards,
Otto

When mouse or finger is pressed on the panel and dragged left or right, the panel scrolls in the same direction of finger or mouse and exactly follows the finger or mouse.

When the thumb of the scrollbar is dragged, naturally, the panel moves in the opposite direction proportionate to the relative position of the thumb inside the scrollbar.

May we know if you propose a different behavior?
Regards



G. N. Rao.

Hyderabad, India
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: METROPNL need some more work
Posted: Sun Jul 29, 2012 06:50 AM

Dear Mr. Rao,
in Windows 8 if you operate with the touchscreen it is like if you would operate on a real paper.
You drag the panel.
Best regards,
Otto

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: METROPNL need some more work
Posted: Sun Jul 29, 2012 06:56 AM
Otto wrote:Dear Mr. Rao,
in Windows 8 if you operate with the touchscreen it is like if you would operate on a real paper.
You drag the panel.
Best regards,
Otto

Thats what I understood.
Even here if we drag the panel, the panel moves exactly as we move the mouse / finger. I checked with mouse but you may check with finger.
I tested with fwh\samples\metrptst.prg
Regards



G. N. Rao.

Hyderabad, India
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: METROPNL need some more work
Posted: Sun Jul 29, 2012 07:02 AM

Dear Mr. Rao,
In Windows 8 UI mouse is only working on scrollbar not on the panel.
You can only drag the panel with a touchscreen and the finger.
Best regards,
Otto

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: METROPNL need some more work
Posted: Sun Jul 29, 2012 07:04 AM

Dear Mr. Rao,
It is important to think on this too:
Also drag & drop of tiles should only work like in Windows 8. You must drag first vertical than drag and drop is working.
Best regards,
Otto

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: METROPNL need some more work
Posted: Sun Jul 29, 2012 07:25 AM
In Windows 8 UI mouse is only working on scrollbar not on the panel.

Thanks for the information. In FWH mouse is working both on scrollbar and also panel. This is good for those like me who can not afford touch panels.
You can only drag the panel with a touchscreen and the finger.

I think dragging the panel with finger should be working fine. Please let us know if there is any problem.
We may consider dragging with mouse is an additional feature for those who do not have touch panels.
It is important to think on this too:
Also drag & drop of tiles should only work like in Windows 8. You must drag first vertical than drag and drop is working.

Thanks for pointing out. We shall modify this behavior soon.
Regards



G. N. Rao.

Hyderabad, India
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: METROPNL need some more work
Posted: Tue Sep 04, 2012 08:44 AM

Any news?
Best regards,
Otto

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: METROPNL need some more work
Posted: Thu Sep 20, 2012 11:12 PM

Dear Mr. Rao,
is this resolved in version 12.8.
Thanks in advance
Otto

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: METROPNL need some more work
Posted: Thu Sep 27, 2012 12:37 PM
Hello Antonio,

If I insert
nPixels := nPixels*-1
in the slide method the panel moves in the right direction.
But then the scrollbar is no longer working.
Could you please resolve the silde method.
Best regards,
Otto


Code (fw): Select all Collapse
METHOD Slide( nPixels ) CLASS TMetroPanel

   local aRect
    nPixels := nPixels*-1
   if ::nScrollRange > 0
      if nPixels > 0
         nPixels  := Min( nPixels, -::nOffSet )
      endif

      if ::nOffSet + nPixels < -::nScrollRange
         nPixels  := -::nScrollRange- ::nOffSet
      endif

      if nPixels != 0
         aRect       = GetClientRect( ::hWnd )
         aRect[ 1 ]  = IfNil( ::nSliderTop, ::nMetroTop )
         aRect[ 3 ] -= 22
         ScrollWindow( ::hWnd, nPixels, 0, 0, aRect )
         ::nOffSet    += nPixels
         if ::nScrollRange > 0
            ::Refresh()
         endif
      endif
   endif

return Self
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: METROPNL need some more work
Posted: Thu Sep 27, 2012 02:05 PM

Otto,

Could you please provide a screenshot or video (that would be great) to reproduce it here ? thanks :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: METROPNL need some more work
Posted: Thu Sep 27, 2012 04:54 PM
http://www.atzwanger-software.com/fw/slide/slide.html

Hello Antonio,
please see the video.
I move the tiles with scrollbar. Then the behaviour is like original WINDOWS 8.
but if I slide to the right side with finger the tiles move to the left side and this is not so in original Windows 8.
There you drag the Panel with sliding.


Best regards,
Otto
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: METROPNL need some more work
Posted: Thu Sep 27, 2012 06:09 PM

Otto,

Do you mean that the second time that the icons are mov ed to the left, the scrollbar goes to a different position ?

Can't see it very clearly as the camstasia scrollbar is over your screen scrollbar...

thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: METROPNL need some more work
Posted: Thu Sep 27, 2012 06:37 PM

Hello Antonio,
if you operate through scrollbar all is fine.
But if you slide from the panel area in original windows the behavior is different:
You drag the “paper” where the tiles are on with your finger or mouse like in real world.
The “paper” is always following the movement of your finger.
In fivewin the tiles go to the opposite site.
Best regards,
Otto