Recent

Author Topic: TFrame not available  (Read 3173 times)

alf

  • Newbie
  • Posts: 1
TFrame not available
« on: October 25, 2012, 05:47:00 pm »
Hi everybody,

My first post here so hello to everybody. I'm just discovering Lazarus and it looks great. I have just tried to convert a rather big Delphi project and it's not so bad.

So my question is : I have some TFrame descendants in my project (from Delphi) and when I want to add a TFrame component on a form, they are not listed in the available TFrame objects.

If I create a new TFrame in Lazarus into my project, it is correctly listed so that I can add it.

How can I do to have my TFrame converted Delphi project correctly listed ?

Thanks

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: TFrame not available
« Reply #1 on: October 25, 2012, 06:29:32 pm »
I think the Delphi converter in Lazarus does not fully handle frames.
If that is the case (I have not tried converting a Delphi frame project), you will have to manually create each TFrame the converted project needs (File | New | Frame), and set each frame's properties and child components manually, based on the values in the .dfm for the frame. Once you have created and saved the frames needed in your project, they will be listed when you click the TFrame Palette icon, and you can drop them on the appropriate form(s).

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4709
  • I like bugs.
Re: TFrame not available
« Reply #2 on: October 26, 2012, 01:52:08 am »
How can I do to have my TFrame converted Delphi project correctly listed ?

Please create a bug report with an example Delphi project with frames.

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

reinerr

  • New Member
  • *
  • Posts: 37
Re: TFrame not available
« Reply #3 on: October 29, 2012, 03:24:43 am »
I just created a D7 project with one frame and placed it on my form then converted it using the Lazarus converter and it worked fine - I can select that frame in Lazarus from the dialog via the toolbar button as normal.

 

TinyPortal © 2005-2018