Search found 26 matches

by Hexagon
Thu Dec 29, 2022 4:10 pm
Forum: Linux
Topic: Printing does not work under Linux
Replies: 13
Views: 2417

Re: Printing does not work under Linux

I updated the code to make it work with PureBasic versions older than 5.10, since they do not support autocasting.

If PrintRequester()

If StartPrinting("PureBasic Test")

LoadFont(0, "Arial", 30)
LoadFont(1, "Arial", 100)
If StartDrawing(PrinterOutput())
OutputHeight$ = "OutputHeight ...
by Hexagon
Thu Dec 29, 2022 2:11 pm
Forum: Linux
Topic: Printing does not work under Linux
Replies: 13
Views: 2417

Re: Printing does not work under Linux


This example is not entirely correct, the last MessageRequester says "Printing completed." when it actually isn't, printing is completed after StopPrinting() call, thus if you are like me and missed that MessageRequester becuase it wasn't focused and then checked the PDF output it will be empty ...
by Hexagon
Thu Dec 29, 2022 12:55 pm
Forum: Linux
Topic: Printing does not work under Linux
Replies: 13
Views: 2417

Re: Printing does not work under Linux

Thanks for all your feedback. PureBasic forums indeed seem to have many helpful users :)
Since it seems to be a PureBasic bug, I will do some testing on old software and old Linux distributions, to see where it all went wrong.

As a side-note, I tried the "new" vector drawing feature ...
by Hexagon
Wed Dec 28, 2022 10:46 am
Forum: Linux
Topic: Printing does not work under Linux
Replies: 13
Views: 2417

Re: Printing does not work under Linux


Try using the qt subsystem. That 'fixed it' for me.

There will be other layout issues to fix if you change subsystems...

Jim

OK, I will look into this, thanks Jim.
Since others had this problem, I have a feeling this really can be a PureBasic bug, not only a major mistake by myself. Did anyone ...
by Hexagon
Tue Dec 27, 2022 8:57 pm
Forum: Linux
Topic: Printing does not work under Linux
Replies: 13
Views: 2417

Re: Printing does not work under Linux

mk-soft wrote: Tue Dec 27, 2022 7:41 pm On macOS the same as Windows ... No clip output
Thanks for checking. Then we know it only applies to Linux. And to other people than just me.

Thanks for kind testing and prompt feedback everyone!
Any ideas how to solve this issue?
by Hexagon
Tue Dec 27, 2022 8:53 pm
Forum: Linux
Topic: Printing does not work under Linux
Replies: 13
Views: 2417

Re: Printing does not work under Linux


Windows:
http://vbpunktnet.de/PureBasic/WindowsPBTest.pdf
Linux:
http://vbpunktnet.de/PureBasic/PBTest.pdf

Thanks for testing and sharing!
Exact same results as me, for both Linux and Windows. I do get the same even for very old Ubuntu versions and PureBasic 4.10/4.20 dating 15 years back in ...
by Hexagon
Tue Dec 27, 2022 8:49 pm
Forum: Linux
Topic: Printing does not work under Linux
Replies: 13
Views: 2417

Re: Printing does not work under Linux

Janni wrote: Tue Dec 27, 2022 5:10 pm I can't help much besides I was tempted to try using Linux Mint 20.3 and PB6.

On the output I got this:
https://ibb.co/0YW3mtT
You did help, since you proved that you got the exact same results as me. Only the 595*842pixel image.
by Hexagon
Tue Dec 27, 2022 3:26 pm
Forum: Linux
Topic: Printing does not work under Linux
Replies: 13
Views: 2417

Printing does not work under Linux

I made a small invoicing application for Linux in a long time ago, where printing the invoices are one of the major functions.
The latest version was compiled with PureBasic 4.10, about 15 years ago already :o

This program worked for several years under Ubuntu, then the printing failed to work ...
by Hexagon
Wed Sep 24, 2008 9:55 pm
Forum: Linux
Topic: Can't select new date with Dategadget()
Replies: 4
Views: 3008

Your example dosen't work on my system either. The bug is already posted over one month ago. Stange I didn't find it when I searched for information...
by Hexagon
Mon Sep 22, 2008 6:59 pm
Forum: Linux
Topic: Can't select new date with Dategadget()
Replies: 4
Views: 3008

If OpenWindow(0, 0, 0, 250, 200, "DateGadget Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If CreateGadgetList(WindowID(0))
DateGadget(0, 10, 70, 230, 25,"Date %dd.%mm.%yyyy",0, #PB_Date_CheckBox)
TextGadget(1,10,10,230,25,"xx",#PB_Text_Border)
TextGadget(2,10,40,230,25,"xx",#PB ...
by Hexagon
Thu Sep 18, 2008 9:51 pm
Forum: Linux
Topic: Can't select new date with Dategadget()
Replies: 4
Views: 3008

Can't select new date with Dategadget()

I can open the date selection window, but I can't change the date, or even close the selection window. This also happens with the example file for dategadget.

I tried this on two different computers, Ubuntu 7.10 Gutsy/PB 4.20 and ubuntu 8.04 Hardy/PB 4.30beta1, both with the same results. The same ...
by Hexagon
Fri Jun 13, 2008 9:30 pm
Forum: Linux
Topic: Can't print from Ubuntu 7.10
Replies: 2
Views: 1713

I installed all gomeprint packages, and then it worked fine. Compiled code made in windows and it ran in Linux without modifications. The font types and sizes changed/messed up the GUI and printing a bit, but it seemed to work ok.

Thanks for your help lexvictory!
by Hexagon
Fri Jun 13, 2008 12:21 pm
Forum: Linux
Topic: Can't print from Ubuntu 7.10
Replies: 2
Views: 1713

Can't print from Ubuntu 7.10

Even the single line:

Code: Select all

PrintRequester()
gives PureBasic linker error:
Printer.a(PrintRequester.o): in funtion `PB_PrintRequester`:
PrintRequester.c:(.text+0x5c): undefined reference to `gnome_print_job_new`

What does this mean?
I should be able to print from PureBasic 4.20 within Linux ?
by Hexagon
Fri Jun 13, 2008 12:02 pm
Forum: Linux
Topic: 2 OS functions
Replies: 5
Views: 2919

Removal of /usr/share/purebasic and a reinstall of PB and libraries did the trick.
by Hexagon
Fri Jun 13, 2008 7:44 am
Forum: Linux
Topic: 2 OS functions
Replies: 5
Views: 2919

Did you find a solution MrTATaod?
I have exactly the same problem with Ubuntu 7.10 and a fresh install of PB 4.20.