Hello!
Using current VSC and Webcore, when opening and compiling an older test project, I get this error:
The compiler sees a TPanel type, but in fact there is no TPanel. A GREP in all project files does not find TPanel, but only TWebPanel.
So where does this come from?
Greetings, Meik Stoll
What does the DFM contain?
The following is complete contents of Unit2.dfm (test project, entries in captions make no sense at all)
object Form2: TForm2
Color = clWhite
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
FormContainer = 'body'
FormStyle = fsNormal
Height = 624
Left = 0
TabOrder = 0
Top = 0
Width = 824
object WebPanel1: TWebPanel
Anchors = [akLeft,akTop,akRight]
Caption = 'WebPanel1'
Color = clBtnFace
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 192
Left = 24
Role = 'null'
Top = 69
Width = 800
object WebLabel1: TWebLabel
Caption = 'WebLabel1'
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 25
Left = 51
Top = 26
Width = 183
end
object WebButton2: TWebButton
Caption = 'WebButton2'
Color = clNone
Default = False
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 25
Left = 252
Role = 'button'
TabOrder = 0
Top = 32
Width = 100
end
object WebButton3: TWebButton
Caption = 'WebButton3'
Color = clNone
Default = False
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 25
Left = 301
Role = 'button'
TabOrder = 0
Top = 118
Width = 100
end
end
object WebLabel2: TWebLabel
Caption = 'WebLabel1'
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 25
Left = 51
Top = 26
Width = 183
end
object WebButton1: TWebButton
Caption = 'WebButton2'
Color = clNone
Default = False
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 25
Left = 252
Role = 'button'
TabOrder = 0
Top = 32
Width = 100
end
object WebButton4: TWebButton
Caption = 'WebButton3'
Color = clNone
Default = False
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 25
Left = 301
Role = 'button'
TabOrder = 0
Top = 118
Width = 100
end
object WebPaintBox1: TWebPaintBox
Height = 152
Left = 63
Top = 280
Width = 536
end
object WebButton5: TWebButton
Caption = 'WebButton4'
Color = clNone
Default = False
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 25
Left = 540
Role = 'button'
TabOrder = 0
Top = 328
Width = 100
end
object WebPageControl1: TWebPageControl
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 300
Left = 65
TabIndex = 0
TabOrder = 0
TabStop = False
Top = 180
Width = 545
object sheet1: TWebTabSheet
AlignWithMargins = True
Caption = 'Page1'
Color = clWhite
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 283
Left = 0
Margins.Bottom = 0
Margins.Left = 0
Margins.Right = 0
Margins.Top = 17
Top = 17
Width = 545
end
object sheet2: TWebTabSheet
AlignWithMargins = True
Caption = 'Page2'
Color = clWhite
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = -17
Left = 0
Margins.Bottom = 0
Margins.Left = 0
Margins.Right = 0
Margins.Top = 17
Top = 17
Visible = False
Width = 0
end
object WebTabSheet1: TWebTabSheet
AlignWithMargins = True
Caption = 'Seite 1'
Color = clWhite
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = -17
Left = 0
Margins.Bottom = 0
Margins.Left = 0
Margins.Right = 0
Margins.Top = 17
Top = 17
Visible = False
Width = 0
object WebMemo1: TWebMemo
AutoSize = False
Color = clWindow
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 104
Left = 0
ReadOnly = False
ShowFocus = True
TabOrder = 0
Top = 179
Width = 536
end
object WebButton6: TWebButton
Anchors = [akLeft,akTop,akRight]
Caption = 'Klick mich'
Color = clNone
Default = False
Font.Charset = ANSI_CHARSET
Font.Color = clMaroon
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 24
Left = 0
ParentFont = False
Role = 'button'
TabOrder = 0
Top = 65
Width = 64
end
object WebDateTimePicker1: TWebDateTimePicker
Color = clWindow
Date = 0
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 25
Kind = dtkDate
Left = 31
ShowFocus = True
TabOrder = 0
Time = 0
Top = 112
Width = 170
end
end
object WebTabSheet2: TWebTabSheet
AlignWithMargins = True
Caption = 'Page2'
Color = clWhite
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = -17
Left = 0
Margins.Bottom = 0
Margins.Left = 0
Margins.Right = 0
Margins.Top = 17
Top = 17
Visible = False
Width = 0
object WebEdit1: TWebEdit
Alignment = taCenter
Anchors = [akLeft,akTop,akRight]
Color = clNavy
Font.Charset = ANSI_CHARSET
Font.Color = clSilver
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 32
HideSelection = False
Left = -616
ParentFont = False
ShowFocus = True
TabOrder = 0
Text = 'Das ist das Edit'
Top = -49
Width = 616
end
end
end
object WebTabSheet3: TWebTabSheet
AlignWithMargins = True
Caption = 'Seite 1'
Color = clWhite
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 283
Left = 54
Margins.Bottom = 0
Margins.Left = 0
Margins.Right = 0
Margins.Top = 17
Top = 137
Width = 545
object WebMemo2: TWebMemo
AutoSize = False
Color = clWindow
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 104
Left = 0
ReadOnly = False
ShowFocus = True
TabOrder = 0
Top = 179
Width = 536
end
object WebButton7: TWebButton
Anchors = [akLeft,akTop,akRight]
Caption = 'Klick mich'
Color = clNone
Default = False
Font.Charset = ANSI_CHARSET
Font.Color = clMaroon
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 24
Left = 0
ParentFont = False
Role = 'button'
TabOrder = 0
Top = 65
Width = 544
end
object WebDateTimePicker2: TWebDateTimePicker
Color = clWindow
Date = 0
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 25
Kind = dtkDate
Left = 31
ShowFocus = True
TabOrder = 0
Time = 0
Top = 112
Width = 170
end
end
object WebMemo3: TWebMemo
AutoSize = False
Color = clWindow
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 104
Left = 0
ReadOnly = False
ShowFocus = True
TabOrder = 0
Top = 179
Width = 536
end
object WebButton8: TWebButton
Anchors = [akLeft,akTop,akRight]
Caption = 'Klick mich'
Color = clNone
Default = False
Font.Charset = ANSI_CHARSET
Font.Color = clMaroon
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 24
Left = 32
OnClick = WebButton8Click
ParentFont = False
Role = 'button'
TabOrder = 0
Top = 149
Width = 728
end
object WebDateTimePicker3: TWebDateTimePicker
Color = clWindow
Date = 0
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 25
Kind = dtkDate
Left = 31
ShowFocus = True
TabOrder = 0
Time = 0
Top = 112
Width = 170
end
object WebTabSheet4: TWebTabSheet
AlignWithMargins = True
Caption = 'Page2'
Color = clWhite
Font.Charset = ANSI_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = -17
Left = 8
Margins.Bottom = 0
Margins.Left = 0
Margins.Right = 0
Margins.Top = 17
Top = 25
Visible = False
Width = 0
object WebEdit2: TWebEdit
Alignment = taCenter
Anchors = [akLeft,akTop,akRight]
Color = clNavy
Font.Charset = ANSI_CHARSET
Font.Color = clSilver
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 32
HideSelection = False
Left = -616
ParentFont = False
ShowFocus = True
TabOrder = 0
Text = 'Das ist das Edit'
Top = -49
Width = 616
end
end
object WebEdit3: TWebEdit
Alignment = taCenter
Anchors = [akLeft,akTop,akRight]
Color = clNavy
Font.Charset = ANSI_CHARSET
Font.Color = clSilver
Font.Height = -11
Font.Name = 'Arial'
Font.Size = 8
Font.Style = []
Height = 32
HideSelection = False
Left = 0
ParentFont = False
ShowFocus = True
TabOrder = 0
Text = 'Das ist das Edit'
Top = 0
Width = 800
end
end
When removing the panel and the including controls and adding back a TWebPanel object, the compiler does not give this error again.
So it's ok now, but it was a bit strange...