Lazarus
Installation => PDAs and Smartphones => Topic started 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?
-
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.
And if I can not, how can I catch screen rotation event?
What is a screen rotation event?
-
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.
-
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.
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?
-
The problem about maximized forms seems solved. I'm not sure about the close bug: clicking the
- button on eg. compact framework apps causes the application is minimized and not closed at all, so it can be reactivated from the task list; the patched lcl follows this behavior, though I have noticed that in NoFrameworkAppDemo (http://ccrdu.de/files/fpc/NoFrameworkAppDemo.lpr) from CCRDude the application is closed by clicking on
- button.
-
> clicking the
- button on eg. compact framework apps causes the application is minimized and not closed at all
On my Pocket (WM 5.0 HP rx1950) after clicking the - button the application almost dead: it is on the screen but the only things works- the
- button, that is I have to click it twice
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"
-
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).
-
IMHO the behavior of the widget should follow as strictly as possible the standard, so minimizing the app by clicking on