It is currently Mon May 20, 2019 6:01 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Packages for PureBasic on UbuntuMate
PostPosted: Sun Mar 10, 2019 4:44 pm 
Offline
New User
New User

Joined: Mon Dec 17, 2018 3:45 pm
Posts: 4
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Packages for PureBasic on UbuntuMate
PostPosted: Mon Mar 11, 2019 11:23 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1709
Location: Germany
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)

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / Event-Designer
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: Packages for PureBasic on UbuntuMate
PostPosted: Sun Apr 07, 2019 7:05 pm 
Offline
New User
New User

Joined: Mon Dec 17, 2018 3:45 pm
Posts: 4
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Packages for PureBasic on UbuntuMate
PostPosted: Sun Apr 07, 2019 7:43 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1709
Location: Germany
./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

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / Event-Designer
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye