Recent

Author Topic: wince form window style  (Read 11838 times)

roeug

  • Jr. Member
  • **
  • Posts: 67
    • http://roeug.50megs.com/
wince form window style
« 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?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: wince form window style
« Reply #1 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?

Legolas

  • Full Member
  • ***
  • Posts: 117
    • http://itaprogaming.free.fr
RE: Re: wince form window style
« Reply #2 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. On my PocketPC seems that the close bug is not resolved at all.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: RE: Re: wince form window style
« Reply #3 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?

Legolas

  • Full Member
  • ***
  • Posts: 117
    • http://itaprogaming.free.fr
RE: Re: RE: Re: wince form window style
« Reply #4 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
  • 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
  • button.

roeug

  • Jr. Member
  • **
  • Posts: 67
    • http://roeug.50megs.com/
wince form window style
« Reply #5 on: November 16, 2006, 08:03:11 am »
> 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"

Christian

  • New Member
  • *
  • Posts: 37
wince form window style
« Reply #6 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).

Legolas

  • Full Member
  • ***
  • Posts: 117
    • http://itaprogaming.free.fr
wince form window style
« Reply #7 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
  • should be fine.

 

TinyPortal © 2005-2018