[Lazarus] Introduce programming competitions

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Jun 2 11:24:01 CEST 2010


On Wed, 02 Jun 2010 08:47:10 +1000
Peter E Williams <foss.game.pascal.developer at iinet.net.au> wrote:

> Hi Mattias,
> 
> Mattias Gärtner nc-gaertnma at netcologne.de 
> Tue Jun 1 16:19:10 CEST 2010 
> 
> Zitat von Peter E Williams <foss.game.pascal.developer at iinet.net.au>:
> 
> > > Hi All,
> > >
> > > How do I switch from viewing a form in the source editor to viewing
> > in
> > > the design GUI interface?
> > 
> > Short cut F12 or the speedbutton: "Toggle Form/Unit".
> 
> Nup. Doesn't work. Also the Speedbutton "Toggle Form/Unit" is greyed out.

Sorry. I misunderstood you.
When you have the lfm/dfm you can do as the other replier wrote
(right click ...) to switch to the unit. Then you can use the
speedbutton.
Note: You can not edit the form and the lfm at the same time. Before
editing the lfm you must close the form.

 
>[...]
> Unable to convert text form data of file
> "/home/peterthepoet/Public/My-programming/Lazarus_source_coe/dtm_maker/lazarus_code/set_max_unit.lfm"
> into binary stream. (Wrong token type: Symbol expected but / found (at 2,2, stream offset 00000001A))

There is a slash / at line 2, column 2 in file set_max_unit.lfm.

 
> file: set_max.lfm
>   object OK_button: TButton
>     Left = 112
>     Height = 25
>     Top = 96
>     Width = 75
>     Caption = '&OK'
>     Font.Height = -11
>     Font.Name = 'MS Sans Serif'
>     Font.Style = [fsBold]

Here is something missing.


>     ModalResfile: set_max.lfm
> object set_max: Tset_max
>   Left = 212
>   Height = 167
>   Top = 214
>   Width = 406
>   Caption = 'Please enter the maximum values for X & Y'
>   ClientHeight = 167
>   ClientWidth = 406
>   Font.Height = -11
>   Font.Name = 'MS Sans Serif'
>   ParentFont = False
>   LCLVersion = '0.9.26'
>   object Label1: TLabel
>     Left = 16
>     Height = 11
>     Top = 24
>     Widtame = 'MS Sans Serif'

and here too.


>   ParentFont = False
>   LCLVersion = '0.9.26'
>   object Label1: TLabel
>     Left = 16
>     Height = 11
>     Top = 24
>     Width = 168
>     Caption = 'Maximum Horizontal Value (X):'
>     Font.Height = -11
>     Font.Name = 'MS Sans Serif'
>     Font.Style = [fsBold]
>     ParentColor = False
>     ParentFont = False
>   end
>   object Label2: TLabel
>     Left = 16
>     Height = 11
>     Top = 56
>     Width = 155
>     Caption = 'Maximum Vertical Value (Y):'
>     Font.Height = -11
>     Font.Name = 'MS Sans Serif'
>     Font.Style = [fsBold]
>     ParentColor = False
>     ParentFont = False
>   end
>   object Label3: TLabel
>     Left = 288
>     Height = 11
>     Top = 24
>     Width = 95
>     Caption = '(Absolute maximum'
>     ParentColor = False
>   end
>   object Label4: TLabel
>     Left = 320
>     Height = 11
>     Top = 40
>     Width = 40
>     Caption = 'is 1000)'
>     ParentColor = False
>   end
>   object max_x_param: TEdit
>     Left = 192
>     Height = 21
>     Top = 16
>     Width = 73
>     TabOrder = 0
>     Text = '0'
>   end
>   object max_y_param: TEdit
>     Left = 192
>     Height = 21
>     Top = 48
>     Width = 73
>     TabOrder = 1
>     Text = '0'
>   end
>   object Cancel_button: TButton
>     Left = 224
>     Height = 25
>     Top = 96
>     Width = 75
>     Caption = '&Cancel'
>     Font.Height = -11
>     Font.Name = 'MS Sans Serif'
>     Font.Style = [fsBold]
>     ModalResult = 2
>     ParentFont = False
>     TabOrder = 2
>   end
>   object OK_button: TButton
>     Left = 112
>     Height = 25
>     Top = 96
>     Width = 75
>     Caption = '&OK'
>     Font.Height = -11
>     Font.Name = 'MS Sans Serif'
>     Font.Style = [fsBold]
>     ModalResult = 1
>     ParentFont = False
>     TabOrder = 3
>   end
> end
> 
> Unable to convert text form data of file
> "/home/peterthepoet/Public/My-programming/Lazarus_source_coe/dtm_maker/lazarus_code/set_max_unit.lfm"
> into binary stream. (Wrong token type: Symbol expected but / found (at 2,2, stream offset 00000001A))

A repetition.

 
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <assembly xmlns="urn:schemas-microsoft-com:asm.v1"
> manifestVersion="1.0">
>  <assemblyIdentity version="1.0.0.0" processorArchitecture="*"
> name="CompanyName.ProductName.YourApp" type="win32"/>

This has nothing to do with Lazarus.

 
> // i need to change this
> 
>  <description>Your application description here.</description>
> 
> // i need to change this
> 
>  <dependency>
>   <dependentAssembly>
>    <assemblyIdentity type="win32"
> 
> // shouldn't this be "linux" ???
> 
>  name="Microsoft.Windows.Common-Controls" version="6.0.0.0"
> processorArchitecture="*" publicKeyToken="6595b64144ccf1df"
> language="*"/>
>   </dependentAssembly>
>  </dependency>
>  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
>   <security>
>    <requestedPrivileges>
>     <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
>    </requestedPrivileges>
>   </security>
>  </trustInfo>
> </assembly>


Mattias




More information about the Lazarus mailing list