PureBasic Forum
https://www.purebasic.fr/english/

Packages for PureBasic on UbuntuMate
https://www.purebasic.fr/english/viewtopic.php?f=15&t=72429
Page 1 of 1

Author:  Blades [ Sun Mar 10, 2019 4:44 pm ]
Post subject:  Packages for PureBasic on UbuntuMate

Trouble with PureBasic in Ubuntu MATE.
In an earlier post “mk-soft” gave me a set of packages to install. These solved some of my problems but they included libgnomeprintui2.2-dev and libxine-dev under a heading “Obsolete” and I cannot find them using “locate” in Terminal.

In a program using OpenScreen( )
StartDrawing(ScreenOutput())
Line(x,y, ) works
DrawText( ) Works
StartDrawing(PrinterOutput())
Line(x,y, ) does not work
DrawText( ) does not work

In a program using OpenWindowedScreen( )
StartDrawing(WindowOutput())
Line(x,y, ) works
DrawText( ) does not work
StartDrawing(PrinterOutput)
Line(x,y, ) does not work
DrawText( ) does not work


Herbert Blades

Author:  mk-soft [ Mon Mar 11, 2019 11:23 pm ]
Post subject:  Re: Packages for PureBasic on UbuntuMate

libgnomeprintui2.2-dev and libxine-dev are no longer used by PB.

Have a look at the example Printer from Examples of PB.
Here it goes with Ubuntu (Gnome Desktop v18.10)

Author:  Blades [ Sun Apr 07, 2019 7:05 pm ]
Post subject:  Re: Packages for PureBasic on UbuntuMate

From Blades
Thank you "mk-soft" for your answer to my poste " Packages for Pure Basic on UBUNTUMATE" I cannot find the PB examples you refer to and still cannot find the packages to make the printer work.

Herbert Blades

Author:  mk-soft [ Sun Apr 07, 2019 7:43 pm ]
Post subject:  Re: Packages for PureBasic on UbuntuMate

./purebasic/examples/sources/printer.pb
Code:
;

; ------------------------------------------------------------

;

;   PureBasic - Printer example file

;

;    (c) Fantaisie Software

;

; ------------------------------------------------------------

;



If PrintRequester()



  If StartPrinting("PureBasic Test")

 

    LoadFont(0, "Arial", 30)

    LoadFont(1, "Arial", 100)

 

    If StartDrawing(PrinterOutput())

     

      BackColor(RGB(255, 255, 255)) ; Uses white as back color, usuful when printing on a white sheet

      FrontColor(RGB(0, 0, 0)) ; Use black for standard text color

     

      DrawingFont(FontID(0))

      DrawText(100, 100, "PureBasic Printer Test")

     

      DrawingFont(FontID(1))

      DrawText(100, 400, "PureBasic Printer Test 2")

   

      If LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/PureBasic.bmp")

        DrawImage(ImageID(0), 200, 600)

      Else

        MessageRequester("Error","Can't load the image")

      EndIf

     

      Box(200, 1000, 100, 100, RGB(255, 0, 0)) ; Draw a red box

       

      StopDrawing()

    EndIf

   

    StopPrinting()

  EndIf

EndIf

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/