[Lazarus] How do I switch from viewing a form in the source editor to viewing in the design GUI interface?

Peter E Williams foss.game.pascal.developer at iinet.net.au
Wed Jun 2 00:47:10 CEST 2010


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.

Okay, so I admit that I had the wrong form name but I corrected it, resaved it then reopened it again still no joy.

> 
> 
> > I have a ported old lazarus to current lazarus app and I cannot view
> the
> > form in design view, only in the source editor xml view
> 
> xml? Maybe you mean dfm or lfm? How did you create the xml?
> 
> 
> 

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

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]
    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'
  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))

> 
> 
> Mattias

<?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"/>

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

Peter

-- 
Proudly developing Quality Cross Platform Open Source Games
Since 1970 with a Commodore PET 4016 with 16 KRAM
http://pews-freeware-gaems.org (<--- brand new)






More information about the Lazarus mailing list