Can't resize form in WinCE

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't resize form in WinCE

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

thanks,

Paul

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Can't resize form in WinCE

Felipe Monteiro de Carvalho
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  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Can't resize form in WinCE

Paul-370

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


----- Original Message -----
From: "Felipe Monteiro de Carvalho" <[hidden email]>
To: "FPC-Pascal users discussions" <[hidden email]>
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  -  [hidden email]
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Can't resize form in WinCE

Felipe Monteiro de Carvalho
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  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Can't resize form in WinCE

Paul-370
version 0.9.24


----- Original Message -----
From: "Felipe Monteiro de Carvalho" <[hidden email]>
To: "FPC-Pascal users discussions" <[hidden email]>
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  -  [hidden email]
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Can't resize form in WinCE

Felipe Monteiro de Carvalho
On Tue, Sep 16, 2008 at 2:38 PM, Paul <[hidden email]> 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  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Can't resize form in WinCE

Paul-370
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


----- Original Message -----
From: "Felipe Monteiro de Carvalho" <[hidden email]>
To: "FPC-Pascal users discussions" <[hidden email]>
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 <[hidden email]> 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  -  [hidden email]
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Can't resize form in WinCE

Vincent Snijders
Paul schreef:

> 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
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Can't resize form in WinCE

Paul-370
----- Original Message -----
From: "Vincent Snijders" <[hidden email]>
To: "FPC-Pascal users discussions" <[hidden email]>
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


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Can't resize form in WinCE

Mattias Gaertner
In reply to this post by Paul-370
On Wed, 17 Sep 2008 09:30:16 +0200
"Paul" <[hidden email]> 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
>
> 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'.

 
> 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
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Can't resize form in WinCE

Vincent Snijders
Mattias Gaertner schreef:

> On Wed, 17 Sep 2008 09:30:16 +0200
> "Paul" <[hidden email]> 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
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Can't resize form in WinCE

Mattias Gaertner
On Wed, 17 Sep 2008 20:24:27 +0200
Vincent Snijders <[hidden email]> wrote:

> Mattias Gaertner schreef:
> > On Wed, 17 Sep 2008 09:30:16 +0200
> > "Paul" <[hidden email]> 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

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Can't resize form in WinCE

Vincent Snijders
In reply to this post by Vincent Snijders
Vincent Snijders schreef:

> Mattias Gaertner schreef:
>> On Wed, 17 Sep 2008 09:30:16 +0200
>> "Paul" <[hidden email]> 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
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal