Results 1 to 5 of 5

Thread: PRINTscale

  1. #1
    Senior Member
    Join Date
    Sep 2004
    Location
    BELGIE(Vilvoorde)
    Posts
    685

    Question PRINTscale

    CodeTyphon in Windows 8.1.
    Had een goed werkende applicatie in Delphi7 en heb deze omgezet in CodeTyphon(Lazarus).
    Maar LAZARUS geeft errpr:
    euroform.pas(299,8) Error: Identifier not found "Printscale"
    euroform.pas(299,20) Error: Identifier not found "poprinttofit"
    euroform.pas(300,13) Error: identifier idents no member "Print"
    In USES staat:
    Code:
    uses
      Windows, Buttons, Classes, Controls, ComCtrls, Dialogs,
      ExtDlgs, ExtCtrls, Forms, Graphics, Messages, Menus,
      Printers, SysUtils, StdCtrls, Types,
      LCLIntf, LCLType, LCLProc, LMessages;

    Code:
    procedure TFormMain.Print1Click(Sender: TObject);
    begin
      if Application.messagebox(PChar('Afdrukken'+#13+#10+
                'van dit scherm?'),
                ' MAAK UW KEUZE ...',
                MB_OKCANCEL + MB_ICONWARNING + MB_DEFBUTTON1)= ID_OK
      then begin
           Printscale:=poprinttofit;
           Self.Print;
           end;
    end;

  2. #2
    Helaas.
    TCustomForm in Lazarus heeft geen print gerelateerde functies of properties.

    Bart

  3. #3
    Senior Member
    Join Date
    Sep 2004
    Location
    BELGIE(Vilvoorde)
    Posts
    685

    Exclamation

    Bedankt.
    Heel spijtig dat Lazarus (CodeTyphon) achter loopt op een oude Delphi7.

  4. #4
    Was dit eigenlijk niet iets dat je al wist ??????

    Hier een topic van jou over exact hetzelfde maar dan onder Linux:
    http://www.nldelphi.com/showthread.p...rus-Print-form

    Je hebt daar ook de uiteindelijk werkende code gevonden:
    http://www.nldelphi.com/showthread.p...l=1#post340792

  5. #5
    Quote Originally Posted by seghele View Post
    Heel spijtig dat Lazarus (CodeTyphon) achter loopt op een oude Delphi7.
    Patches zijn welkom.
    Cross-platform uiteraard, niet alleen Windows.

    Bart

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •