[Lazarus] Delphi .res file missing however the forms are created in code, hence no .dfm/.res file exists

Peter Williams pewtas at gmail.com
Tue Aug 5 01:26:03 CEST 2008


Hi Mattias and All,

I'm sending you a lot of small Lazarus files related to this problem
I'm having. ;-)))

I hope I'm not sending too many files to you. They're only small ;-)

2008/8/5 Mattias Gaertner <nc-gaertnma at netcologne.de>:
> On Tue, 5 Aug 2008 06:35:53 +1000
> "Peter Williams" <pewtas at gmail.com> wrote:
>
>>[...]
>> Here is the problem. This code was actually written by one of the
>> Borland Delphi 'Teams' at the Borland Delphi programming newsgroups --
>> many years ago. { I don't recall whether it was 'Team A' or 'Team B' }
>> I mention this in explanation that I don't really understand fully how
>> the code works. It worked fine under Borland Delphi 7 Select Edition.
>>
>> The TTabFrame form does *NOT* exist in the folder... it is created
>> /programmatically/ !!! So... I don''t have a dfm/res unit for it.
>>
>> I have attached "PageDlgUnit1.pas" -- which is the Delphi 7 Select
>> Edition pascal file which defines the TTabFrame forms and creates and
>> frees them. (It's a 4KB file!)
>
> I guess the TTabFrame is defined in the unit FrameUnit?
> Can you send me the code of this unit?

------------------ file "FrameUnit.pas -------------------------
unit FrameUnit;

{$MODE Delphi}

interface

uses
  Forms, Controls, Classes, StdCtrls, LResources;

type
  TTabFrame = class(TFrame)
    Memo1: TMemo;
  private
    { Private declarations }
  public
    { Public declarations }
  end;

implementation


initialization
  {$i FrameUnit.lrs}

end.
-------------------------------------------------

>
> Notes:
> - Each TFrame descendant must have a resource stream, otherwise a
> EResNotFound exception is raised. This is Delphi compatible.
>
> - Frames are an experimental feature in lazarus. They will be enabled
> in 0.9.27. See here for more details:
> http://wiki.lazarus.freepascal.org/IDE_Development#Frames
>
>
>>[...]
>
>
> Mattias
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>

Thanks again for your help

Best Wishes,
           PEW

-- 
Fond Regards,
Peter Eric (aka 'pew') WILLIAMS

My free website is:
http://pewtas.googlepages.com (or) http://tinyurl.com/yuyejs

(please visit my free website and let me know what you think about it.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: helpdialogunit.pas
Type: text/x-pascal
Size: 3281 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20080805/e3f67c9b/attachment-0006.pas>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: helpdialogunit.lfm
Type: application/octet-stream
Size: 1731 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20080805/e3f67c9b/attachment-0042.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: helpdialogform.lfm
Type: application/octet-stream
Size: 1719 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20080805/e3f67c9b/attachment-0043.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PagesDlgUnit1.pas
Type: text/x-pascal
Size: 3249 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20080805/e3f67c9b/attachment-0007.pas>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PagesDlgUnit1.lfm
Type: application/octet-stream
Size: 1719 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20080805/e3f67c9b/attachment-0044.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PagesDlgUnit1.lfm
Type: application/octet-stream
Size: 1719 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20080805/e3f67c9b/attachment-0045.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FrameUnit.pas
Type: text/x-pascal
Size: 316 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20080805/e3f67c9b/attachment-0008.pas>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FrameUnit.lfm
Type: application/octet-stream
Size: 426 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20080805/e3f67c9b/attachment-0046.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestHelpproject1.lpr
Type: application/octet-stream
Size: 380 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20080805/e3f67c9b/attachment-0047.obj>


More information about the Lazarus mailing list