Skip to main content

problem with Dialog in PhoneME

5 replies [Last post]
javiermq
Offline
Joined: 2007-06-11

Hi,
I have developed an CDC application. It works fine in PhoneME, but the dialogs size can not be changed, they are always in full size mode. I others vrituals machines like J9 or CreMe works fine, but in PhoneME the dialogs don't resize.
Is there any solution for it?
Thanks a lot¡¡

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
davyp
Offline
Joined: 2007-01-03

Hi,

I have changed this behavior in my builds a while ago because some people wanted
to have default full screen undecorated frames, and I have changed the native
WinCE window creation accordingly.

Have a look at this thread:
http://forums.java.net/jive/thread.jspa?messageID=297390

Davy

javiermq
Offline
Joined: 2007-06-11

Thanks for the reply, Davy.
I have read the thread but I don't know how can i resize the dialog. I change the size in the Dialgo constructor and not at the outside, like the thread says, but It doesn't result for my.
I´m using Windows Mobile 6.1, maybe is it the problem?
Thanks,
Javi

davyp
Offline
Joined: 2007-01-03

Hi Javi,

Sorry, perhaps I was not clear. In the current implementation, each time a window (dialog or
frame) is activated or resized, it gets set to full screen. So you cannot manipulate the size and
position from within the application. I enforce the full screen size

* when a component receives the WM_ACTIVATE event in:
cdc/src/share/personal/native/awt/pocketpc/PPCComponentPeer.cpp

* when the native frame peer is resized and when the menu bar is set in:
cdc/src/share/personal/native/awt/pocketpc/PPCFramePeer.cpp

If I would disable those changes, you can make frame sizes and dialog sizes of any kind.

Davy

javiermq
Offline
Joined: 2007-06-11

Thanks Davy!
I try to compile the CDC without full screen mode. The future downloads will include the posibility for resizing?
Congratulations on your page!
Javi

davyp
Offline
Joined: 2007-01-03

I might change the behavior again in my online builds to how it was before and have a
compile time flag to choose the default behavior

Davy