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
Packages for PureBasic on UbuntuMate
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)
Have a look at the example Printer from Examples of PB.
Here it goes with Ubuntu (Gnome Desktop v18.10)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
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
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
Re: Packages for PureBasic on UbuntuMate
./purebasic/examples/sources/printer.pb
Code: Select all
;
; ------------------------------------------------------------
;
; 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive