Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-09

Can't resize form in WinCE

13 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Paul

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

thanks,

Paul

Paul
to Felipe Monteiro de Carvalho

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

Earlier message 23 lines
----- Original Message ----- From: "Felipe Monteiro de Carvalho" To: "FPC-Pascal users discussions" Sent: Tuesday, September 16, 2008 4:56 PM Subject: Re: [fpc-pascal] Can't resize form in WinCE > 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. > > -- > Felipe Monteiro de Carvalho > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > >
Felipe Monteiro de Carvalho
to Paul

Which version of Lazarus are you using? You should use a snapshot, or the upcoming 0.9.26

Felipe Monteiro de Carvalho
Paul
to Felipe Monteiro de Carvalho

version 0.9.24

Earlier message 17 lines
----- Original Message ----- From: "Felipe Monteiro de Carvalho" To: "FPC-Pascal users discussions" Sent: Tuesday, September 16, 2008 6:55 PM Subject: Re: [fpc-pascal] Can't resize form in WinCE > Which version of Lazarus are you using? You should use a snapshot, or > the upcoming 0.9.26 > > -- > Felipe Monteiro de Carvalho > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > >
Felipe Monteiro de Carvalho
to Paul
Paul wrote
version 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.

Felipe Monteiro de Carvalho
Paul
to Felipe Monteiro de Carvalho

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

Earlier message 31 lines
----- Original Message ----- From: "Felipe Monteiro de Carvalho" To: "FPC-Pascal users discussions" Sent: Tuesday, September 16, 2008 7:50 PM Subject: Re: [fpc-pascal] Can't resize form in WinCE > On Tue, Sep 16, 2008 at 2:38 PM, Paul wrote: >> version 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. > > -- > Felipe Monteiro de Carvalho > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > >
Vincent Snijders
to Paul
Paul wrote 14 lines
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 ?

No idea. Please paste the compiler options in an email: Project -> Compiler Options -> Show Options.

Vincent

Paul
to Vincent Snijders

----- Original Message -----

Earlier message 120 lines
From: "Vincent Snijders" To: "FPC-Pascal users discussions" Sent: Wednesday, September 17, 2008 2:16 PM Subject: Re: [fpc-pascal] Can't resize form in WinCE > No idea. Please paste the compiler options in an email: > Project -> Compiler Options -> Show Options. > > Vincent > This is the config file: <?xml version="1.0"?> <CONFIG> <ProjectOptions> <PathDelim Value="\"/> <Version Value="6"/> <General> <MainUnit Value="0"/> <TargetFileExt Value=".exe"/> <ActiveEditorIndexAtStart Value="0"/> </General> <VersionInfo> <ProjectVersion Value=""/> <Language Value=""/> <CharSet Value=""/> </VersionInfo> <PublishOptions> <Version Value="2"/> <IgnoreBinaries Value="False"/> <IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/> <ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/> </PublishOptions> <RunParams> <local> <FormatVersion Value="1"/> <LaunchingApplication PathPlusParams="/usr/X11R6/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/> </local> </RunParams> <RequiredPackages Count="1"> <Item1> <PackageName Value="LCL"/> </Item1> </RequiredPackages> <Units Count="2"> <Unit0> <Filename Value="project10.lpr"/> <IsPartOfProject Value="True"/> <UnitName Value="project10"/> <UsageCount Value="20"/> </Unit0> <Unit1> <Filename Value="unit10.pas"/> <ComponentName Value="Form1"/> <IsPartOfProject Value="True"/> <ResourceBaseClass Value="Form"/> <ResourceFilename Value="unit10.lrs"/> <UnitName Value="Unit10"/> <CursorPos X="17" Y="24"/> <TopLine Value="1"/> <EditorIndex Value="0"/> <UsageCount Value="20"/> <Loaded Value="True"/> </Unit1> </Units> <JumpHistory Count="0" HistoryIndex="-1"/> </ProjectOptions> <CompilerOptions> <Version Value="8"/> <PathDelim Value="\"/> <SearchPaths> <LCLWidgetType Value="wince"/> </SearchPaths> <Parsing> <SyntaxOptions> <CStyleOperator Value="False"/> </SyntaxOptions> </Parsing> <CodeGeneration> <TargetCPU Value="arm"/> <TargetOS Value="WinCE"/> </CodeGeneration> <Linking> <Options> <Win32> <GraphicApplication Value="True"/> </Win32> </Options> </Linking> <Other> <CompilerPath Value="$(CompPath)"/> </Other> </CompilerOptions> <Debugging> <BreakPoints Count="2"> <Item1> <Source Value="unit1.pas"/> <Line Value="160"/> </Item1> <Item2> <Source Value="unit1.pas"/> <Line Value="156"/> </Item2> </BreakPoints> <Exceptions Count="2"> <Item1> <Name Value="ECodetoolError"/> </Item1> <Item2> <Name Value="EFOpenError"/> </Item2> </Exceptions> </Debugging> </CONFIG> Paul
Mattias Gaertner
to Paul: Installed these packages Lazarus-0.9.25-16602-fpc-2.2.2-20080916-win32.exe…
Show quoted text 7 lines
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

FPC seldom reports correct line numbers and/or filenames when 'unit not found'.

Show quoted text 5 lines
in project file at line: uses {$IFDEF UNIX}{$IFDEF UseCThreads} what went wrong here ?

My guess: you forgot to cross compile the LCL.

Tools / Configure Build lazarus

Mattias

Vincent Snijders
to Mattias Gaertner
Mattias Gaertner wrote 11 lines
On Wed, 17 Sep 2008 09:30:16 +0200 "Paul" wrote: > 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 > My guess: you forgot to cross compile the LCL. Tools / Configure Build lazarus

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

Mattias Gaertner
to Vincent Snijders
Show quoted text 23 lines
Mattias Gaertner schreef: > On Wed, 17 Sep 2008 09:30:16 +0200 > "Paul" wrote: > >> 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 >> > My guess: you forgot to cross compile the LCL. > > Tools / Configure Build lazarus 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).

... 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

Vincent Snijders
to Vincent Snijders: A cross compiled LCL is supposed to supplied by…
Vincent Snijders wrote 18 lines
Mattias Gaertner schreef: > On Wed, 17 Sep 2008 09:30:16 +0200 > "Paul" wrote: > >> 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 >> > My guess: you forgot to cross compile the LCL. > > Tools / Configure Build lazarus 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 ?

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