Forum > PDAs and Smartphones
wince form window style
roeug:
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?
felipemdc:
--- Quote from: "roeug" ---How can I use the real maximized window on winCE ?
wsMaximized doesn't work (the window disappears)
--- End quote ---
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?
--- End quote ---
What is a screen rotation event?
Legolas:
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. On my PocketPC seems that the close bug is not resolved at all.
felipemdc:
--- 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.
--- End quote ---
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.
--- End quote ---
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?
Legolas:
The problem about maximized forms seems solved. I'm not sure about the close bug: clicking the [x] 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 from CCRDude the application is closed by clicking on [x] button.
Navigation
[0] Message Index
[#] Next page