FMX Form Can’t Open Tip

If you use visual inheritance, especially with frames, for some unknown reason the IDE decides to randomly update the .fmx file. It changes inherited to object. You may get the following error:

The solution is to close the project, open the affected .fmx file in a different text editor, and change object back to inherited. For example, from:

object ArticlesView: TArticlesView
  Size.Width = 209.000000000000000000
  Size.Height = 443.000000000000000000
  object Scroller: TVertScrollBox
    Align = Client
    Margins.Top = 8.000000000000000000
    Size.Width = 209.000000000000000000
    Size.Height = 435.000000000000000000
    Size.PlatformDefault = False
    TabOrder = 0
    Viewport.Width = 209.000000000000000000
    Viewport.Height = 435.000000000000000000
  end
end

to:

inherited ArticlesView: TArticlesView
  Size.Width = 209.000000000000000000
  Size.Height = 443.000000000000000000
  object Scroller: TVertScrollBox
    Align = Client
    Margins.Top = 8.000000000000000000
    Size.Width = 209.000000000000000000
    Size.Height = 435.000000000000000000
    Size.PlatformDefault = False
    TabOrder = 0
    Viewport.Width = 209.000000000000000000
    Viewport.Height = 435.000000000000000000
  end
end

I hope this tip helps.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s