Help! I need input! :)

Help! I need input! :)

How can I make a TForm "interface-able"? :)
It'll only released when the Application terminates.

Test/Sample project:
http://data.hu/get/8452169/Test003.zip
http://data.hu/get/8452169/Test003.zip

Comments

  1. Bob Devine 
    Thx, I'll check right now.

    ReplyDelete
  2. Checked, modified, Thank You Bob Devine ! :)

    What do You think? :)

    Modified source:
    http://data.hu/get/8452251/Test003Final.zip

    ReplyDelete
  3. I modified the TForm2._Release:


    function TForm2._Release: Integer;
    begin
     Result := InterlockedDecrement(FRefCount);
     if (Result = 0) then
     begin
      if FOwnerIsComponent then
       Owner.RemoveComponent(Self);
      Destroy;
     end;
    end;


    ...so if FOwnerIsComponent is True:


     FOwnerIsComponent := Assigned(Owner) and (Owner is TComponent);


    ...then I'll call

     Owner.RemoveComponent(Self);

    too.

    ReplyDelete

  4.   Google+ need some code formatting routines :)

    ReplyDelete
  5. I've only been asking since launch.

    ReplyDelete
  6. Nándor Kiss The zip file won't extract.

    ReplyDelete
  7. Jeroen Wiert Pluimers No problem - was a very nice post.

    ReplyDelete
  8. Bob Devine 
    With win7 and WinRAR too I can extract.

    ReplyDelete
  9. Nándor Kiss Strange - I use 7-zip and zipgenius and neither of them can open it.

    ReplyDelete
  10. Bob Devine 
    Yes, really strange.
    Now I downloaded at work and uncompressed win WinRAR 4.00 (64-bit)

    What version of 7-zip/zipgenius are You using?

    edit:
    Tried with 7-Zip [64] 4.65 - Works fine.

    ReplyDelete
  11. Nándor Kiss I downloaded it on my other PC and it extracted fine this time.

    ReplyDelete
  12. Post code as a Gist so people can view it online and don't need to download it. https://gist.github.com/

    ReplyDelete
  13. Jeroen Wiert Pluimers nice, never knew that, thx! :)

    ReplyDelete
  14. For me there are two cool things about gist: it can have multiple files per entry, and it is version controlled.

    ReplyDelete

Post a Comment