Skip to main content

Personal profile, pan issue with b86 (worked fine with b85)

2 replies [Last post]
jldominguez
Offline
Joined: 2008-01-02

Hello :

I have a problem when I use the pan tool of my GIS application. I am testing b85 and b86 for WM2003 on a pocket PC running WM2003. Interestingly, this worked fine using the WM2003 version of phoneme on a pocket PC running WM 5, but we prefer not leave out all pocket PCs with Windows Mobile 2003 :)

I use a Timer to refresh the map every second and the mouseDragged event to compute the map's accumulated offset.

These videos look OK with Microsoft Media Player. Please let me know if you have problems with them.

Here you can see the result with b85:

https://correo.prodevelop.es/descarga/mobile/pan_issue/gvsig_mobile_phon...

(it looks better in the real, but everything is ok)

Here you can see the result with b86:

https://correo.prodevelop.es/descarga/mobile/pan_issue/gvsig_mobile_phon...

In this case, the whole system gets blocked, and I need to perform a soft reset.

Here you can see the log file for b85, the one that works:

https://correo.prodevelop.es/descarga/mobile/pan_issue/gvsig_mobile_phon...

As you can see, there are a lot of mouseDragged events and from time to time, the Timer performs its task (map refresh), as expected.

Here you can see the log file for b86, the one that does not work:

https://correo.prodevelop.es/descarga/mobile/pan_issue/gvsig_mobile_phon...

As you can see, there are a lot of mouseDragged events but there is no trace of the Timer task (?).

Any ideas?
Lucas

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hello :
>
> I have a problem when I use the pan tool of my GIS application. I am testing b85 and b86 for WM2003 on a pocket PC running WM2003. Interestingly, this worked fine using the WM2003 version of phoneme on a pocket PC running WM 5, but we prefer not leave out all pocket PCs with Windows Mobile 2003 :)
>
> I use a Timer to refresh the map every second and the mouseDragged event to compute the map's accumulated offset.
>
> These videos look OK with Microsoft Media Player. Please let me know if you have problems with them.
>
> Here you can see the result with b85:
>
> https://correo.prodevelop.es/descarga/mobile/pan_issue/gvsig_mobile_phon...
>
> (it looks better in the real, but everything is ok)
>
> Here you can see the result with b86:
>
> https://correo.prodevelop.es/descarga/mobile/pan_issue/gvsig_mobile_phon...
>
> In this case, the whole system gets blocked, and I need to perform a soft reset.
>
> Here you can see the log file for b85, the one that works:
>
> https://correo.prodevelop.es/descarga/mobile/pan_issue/gvsig_mobile_phon...
>
> As you can see, there are a lot of mouseDragged events and from time to time, the Timer performs its task (map refresh), as expected.
>
> Here you can see the log file for b86, the one that does not work:
>
> https://correo.prodevelop.es/descarga/mobile/pan_issue/gvsig_mobile_phon...
>
> As you can see, there are a lot of mouseDragged events but there is no trace of the Timer task (?).
>
> Any ideas?
> Lucas
>
>

Hi Davy,

Could this be that there is a difference now with the focus (with how
you now have the AWT Frame)?

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

Davy Preuveneers

On Wednesday 17 September 2008 18:24:39 Hinkmond Wong wrote:
> phonemeadvanced@mobileandembedded.org wrote:
> > Hello :
> >
> > I have a problem when I use the pan tool of my GIS application. I am
> > testing b85 and b86 for WM2003 on a pocket PC running WM2003.
> > Interestingly, this worked fine using the WM2003 version of phoneme on a
> > pocket PC running WM 5, but we prefer not leave out all pocket PCs with
> > Windows Mobile 2003 :)
> >
> > I use a Timer to refresh the map every second and the mouseDragged event
> > to compute the map's accumulated offset.
> >
> > These videos look OK with Microsoft Media Player. Please let me know if
> > you have problems with them.
> >
> > Here you can see the result with b85:
> >
> > https://correo.prodevelop.es/descarga/mobile/pan_issue/gvsig_mobile_phone
> >me_b85.wmv
> >
> > (it looks better in the real, but everything is ok)
> >
> > Here you can see the result with b86:
> >
> > https://correo.prodevelop.es/descarga/mobile/pan_issue/gvsig_mobile_phone
> >me_b86.wmv
> >
> > In this case, the whole system gets blocked, and I need to perform a soft
> > reset.
> >
> > Here you can see the log file for b85, the one that works:
> >
> > https://correo.prodevelop.es/descarga/mobile/pan_issue/gvsig_mobile_phone
> >me_b85.txt
> >
> > As you can see, there are a lot of mouseDragged events and from time to
> > time, the Timer performs its task (map refresh), as expected.
> >
> > Here you can see the log file for b86, the one that does not work:
> >
> > https://correo.prodevelop.es/descarga/mobile/pan_issue/gvsig_mobile_phone
> >me_b86.txt
> >
> > As you can see, there are a lot of mouseDragged events but there is no
> > trace of the Timer task (?).
> >
> > Any ideas?
> > Lucas
>
> Hi Davy,
>
> Could this be that there is a difference now with the focus (with how
> you now have the AWT Frame)?
>
> Hinkmond

For build b86 I changed PPCFramePeer.cpp to always set the native window full
screen (see code below). If the map in the application relies on a native
frame peer, then this can explain why it does not move when dragged.

Davy

-------------
// Maximize the size of the frame
SIPINFO sipinfo;
RECT rect;

memset(&sipinfo, 0, sizeof(sipinfo));
sipinfo.cbSize = sizeof(SIPINFO);
SHSipInfo(SPI_GETSIPINFO, 0, &sipinfo, 0);

int x = sipinfo.rcVisibleDesktop.left;
int y = sipinfo.rcVisibleDesktop.top;
int w = sipinfo.rcVisibleDesktop.right - sipinfo.rcVisibleDesktop.left;
int h = sipinfo.rcVisibleDesktop.bottom - sipinfo.rcVisibleDesktop.top;

HWND hWin = ::FindWindow(TEXT("HHTaskBar"), NULL);
if (hWin > 0) {
GetWindowRect(hWin, &rect);
if (rect.bottom > y) {
y = rect.bottom;
}
}

hWin = ::FindWindow(TEXT("MS_SIPBUTTON"), NULL);
if (hWin > 0) {
GetWindowRect(hWin, &rect);
if (rect.top < y + h) {
h = rect.top - y;
}
}

::SetRect( &rect, x, y, x + w, y + h );
::PostMessage( GetHWnd(), WM_AWT_RESHAPE_COMPONENT, 0, (LPARAM)(&rect));
-------------

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net