Hi All,
How do I switch from viewing a form in the source editor to viewing in the design GUI interface?
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
Peter

Mailing lists / lazarus / 2010-06
6 messages · 4 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi All,
How do I switch from viewing a form in the source editor to viewing in the design GUI interface?
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
Peter
Zitat von Peter E Williams :
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".
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?
Mattias
if you are viewing the .lfm code, usually right-click the tab and click view form iirc.
- V
2010/6/1 Mattias G?rtner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100601/53006828/attachment.html>
Hi Mattias,
Mattias G?rtner
Tue Jun 1 16:19:10 CEST 2010
Zitat von Peter E Williams :
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.
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
endend
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
just a thought, some of the early objects seems to be missing end;s... also, ModalResFile?
that xml file can probably be deleted (Trash/Bin it so you can bring it back if I'm wrong)
start a new blank project, add a button, label & edit and compile it. then compare what the .lfm .lpr .lpi files are like.
- V
ps. Label3.Caption probably should either not have the opening bracket or is missing a closing bracket :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100602/a9658350/attachment.html>
Mattias G?rtner Tue Jun 1 16:19:10 CEST 2010 Zitat von Peter E Williams : Nup. Doesn't…
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.
Here is something missing.
and here too.
A repetition.
This has nothing to do with Lazarus.
Mattias