I'm trying to show a small form, but it always shows full screen in WinCE. Isn't this possible at all?
thanks,
Paul

Mailing lists / fpc-pascal / 2008-09
13 messages · 4 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
I'm trying to show a small form, but it always shows full screen in WinCE. Isn't this possible at all?
thanks,
Paul
Hello,
The behavior is documented here:
http://wiki.freepascal.org/Windows_CE_Development_Notes#Positioning_and_size_of_Dialogs_and_Forms
In short, set the BorderStyle to bsDialog, but you really should read this wiki page to better understand Windows CE development.
Hi Felipe,
I have a printed copy of this document and already have used all available borderstyles without success.
(I'm using an emulator)
Paul
Which version of Lazarus are you using? You should use a snapshot, or the upcoming 0.9.26
version 0.9.24
Paul wroteversion 0.9.24
Try updating then.
Which means at the moment using a snapshot (you need to install both lazarus for win32 and then the wince addon on top of. You can have multiple versions of Lazarus installed in your system).
Or very soon using 0.9.26
Usually the latest stable is a very good choice, but with Lazarus 0.9.24 it was the first release with Windows CE support, so many things weren't finished yet. The current support in 0.9.25 is much better, and *a lot* has been improved, and the documentation has been updated for those changes.
Installed these packages
Lazarus-0.9.25-16602-fpc-2.2.2-20080916-win32.exe
Lazarus-0.9.25-16602-fpc-2.2.2-20080916-cross-arm-wince-win32.exe
If I try to compile the project, this error pops up: FATAL: Can't find unit interfaces used by project 1
in project file at line:
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}what went wrong here ?
thanks,
Paul
No idea. Please paste the compiler options in an email: Project -> Compiler Options -> Show Options.
Vincent
----- Original Message -----
Installed these packages Lazarus-0.9.25-16602-fpc-2.2.2-20080916-win32.exe…
FPC seldom reports correct line numbers and/or filenames when 'unit not found'.
My guess: you forgot to cross compile the LCL.
Tools / Configure Build lazarus
Mattias
A cross compiled LCL is supposed to supplied by
Lazarus-0.9.25-16602-fpc-2.2.2-20080916-cross-arm-wince-win32.exe
Assuming that you install lazarus in c:\lazarus, do you have c:\lazarus\fpc\2.2.2\units\arm-wince\wince\interfaces.ppu ?
If you compile your project with all messages enabled (-va in the compiler options), copy all and hidden messages to the clipboard, paste them in a textfile and send that in zipped format to me (probably too big for the list).
Vincent
... please run Project / Compiler options / Test and see what it finds. If we find out, what went wrong a check should be added to this test suite.
Mattias
A cross compiled LCL is supposed to supplied by…
Thanks for reporting (although I don't understand why you did that in a separate thread) that you don't even have that directory. Your conclusion was wrong though. The fact that it is missing, doesn't mean the installer is broken, it means I was too eager to help you and didn't accurately type the path. It should have been:
c:\lazarus\lcl\units\arm-wince\wince\interfaces.ppu.
If you compile your project with all messages enabled (-va in the compiler options), copy all and hidden messages to the clipboard, paste them in a textfile and send that in zipped format to me (probably too big for the list).
This request is still valid.
Vincent