Lazarus

Installation => PDAs and Smartphones => Topic started by: roeug on November 15, 2006, 06:04:42 am

Title: wince form window style
Post by: roeug on November 15, 2006, 06:04:42 am
How can I use the real maximized window on winCE ?
wsMaximized doesn't work (the window disappears)
I have:
.._____________
.|_____________| <- "Task bar"
.||____________|| <- My Form caption
.||........................||
.||........................||
.||........................||
.||...My Form........|| <- The screen
.||........................||
.||........................||
.||____________||
.|_____________|

All "good" applications have:
.._____________
.|_____________| <- "Task bar" + Form caption
.|..........................|
.|..........................|
.|..........................|
.|..........................|
.|..........................| <- The screen = Form.ClientRectangular
.|..........................|
.|..........................|
.|..........................|
.|_____________|

  How can I do it ?
  And if I can not, how can I catch screen rotation event?
Title: Re: wince form window style
Post by: felipemdc on November 15, 2006, 02:12:39 pm
Quote from: "roeug"
How can I use the real maximized window on winCE ?
wsMaximized doesn't work (the window disappears)


There is a patch for Lazarus, waiting to be applied that fixes this. It also fixes other bugs such as X button close.

So I would suggest you wait a few days until it´s applied, update your Lazarus, recompile it and test again.

Quote
 And if I can not, how can I catch screen rotation event?


What is a screen rotation event?
Title: RE: Re: wince form window style
Post by: Legolas on November 15, 2006, 03:03:46 pm
Any chance to get this patch? :)
However, on PocketPC you can rotate the screen in landscape or portrait mode. This rotation should generate an event to adapt the window, eg. replacing controls.

Edit: Ok, I have found it on the lazarus mailing list (http://www.mail-archive.com/lazarus@miraclec.com/msg11904.html). On my PocketPC seems that the close bug is not resolved at all.
Title: Re: RE: Re: wince form window style
Post by: felipemdc on November 15, 2006, 09:05:42 pm
Quote
However, on PocketPC you can rotate the screen in landscape or portrait mode. This rotation should generate an event to adapt the window, eg. replacing controls.


You can use {$ifdef wince} code here {$endif}

on "code here" you can put any Windows API code, even to get this event. I think you would need to use SetWindowLong, and some other APIs.

Quote
On my PocketPC seems that the close bug is not resolved at all.


Can you join the mailling list and report that so Christian can see it?

And what about the original problem on the thread? Is this solved?
Title: RE: Re: RE: Re: wince form window style
Post by: Legolas on November 15, 2006, 11:46:02 pm
The problem about maximized forms seems solved. I'm not sure about the close bug: clicking the
Title: wince form window style
Post by: roeug on November 16, 2006, 08:03:11 am
> clicking the

On my Pocket (WM 5.0 HP rx1950) after clicking the
As on Pocket buttons are not easily touched (U have to click them again and again to get the action) it's not a problem just "the feature"
Title: wince form window style
Post by: Christian on November 17, 2006, 03:43:22 pm
This is correct, try this with other applications in wince no application is real closed except the application closes itself.
So try
Close;
in your mainform and the app will exit real.

What do you think schould we follow this behavour or close the app on clicken the x ?
I think this can be implemented (not shure at all).
Title: wince form window style
Post by: Legolas on November 17, 2006, 06:34:01 pm
IMHO the behavior of the widget should follow as strictly as possible the standard, so minimizing the app by clicking on
TinyPortal © 2005-2018