Hello Alain, i am very busy at this , so i will look for this ticket as soon as possible, SRI. If you have any ideas, i will check it prompt. Here i appended a file with some reports of analyising the problem on Windows, because there no contents appeared. With regards MNI TNX, 73 es 55 de Wilfried, DF7BE
Document for HPRINTER class updated
For easier bugfixing Ticket 207: Reduce differences (with WinMerge)
Hi Wilfried, oPrinter:LoadScript(cScript+".out") The internal HWGUI print preview apears, but all pages are not in landscape. That's exactly the problem I have. The first page is in portrait, which is not ok, but the others are in landscape as desired. But I say that printing just when creating the script, all the pages are in landscape. The problem occurs only when printing (or creating a pdf) using the out file. For the pdf creation, I think it's a problem Windows. Under Linux, no problem. A+
Hi Wilfried, oPrinter:LoadScript(cScript+".out") The internal HWGUI print preview apears, but all pages are not in landscape. That's exactly the problem I have. The first page is in portrait, which is not ok, but the others are in landscape as desired. But I say that printing just when creating the script, all the pages are in landscape. For the pdf creation, I think it's a problem Windows. Under Linux, no problem. A+
Hello Alain, for experiment i added (Ubuntu) oPrinter:Preview() after oPrinter:LoadScript(cScript+".out") The internal HWGUI print preview apears, but all pages are not in landscape. So i must understand, how the script feature works. For next step i will check differences in hprinter.prg for GTK and Windows, before continuing bugfixing. On Windows, i added temporary an new method: METHOD StartDoc2() CLASS HPrinter LOCAL nRes ::hDC := ::hDCPrn nRes := Hwg_StartDoc( ::hDC, "HwGUIPrint" ) RETURN nRes...
For experiment i added (Ubuntu) oPrinter:Preview()
Hello Alain, now continue the discussing: Have you tried under linux ? I tried both, Windows (with Microsoft Print2Pdf) and Ubuntu, but the EndDoc() method does not start the printout on Windows, LINUX starts, but with your reported format bug on the first page. Why are you trying to use WINPRN class ? The WINPRN class works also correct on Windows, see sample program WINPRN.PRG, so i want to check. See hwinprn.prg: METHOD New() ... ::oPrinter := HPrinter():New( cPrinter, .F., nFormType ) ==> So...
Hi Wilfried, alpha.out has been created using hwgui, so I don't understand why you are not able to use it. For me, there is no problem, except the problem with script landscape, where the first page is in portrait. The problem is not a pdf problem, but an hwgui problem, as it occurs when printing in a pdf, or on the printer. Have you tried under linux ? Why are you trying to use WINPRN class ? INIT PRINTER oPrinter" Does this use WINPRN Class ? I think, the information of "alpha.out" is processed...
Hello Alain, i need some info about the format of the scipt file "alpha.out". First i thought, it is Post Script, i installed the GhostWriter and try to open the file. but only the pure text is displayed. Can you send more info (or some links in the Internet) ? Or another idea ? On Windows, i had no success to display the printout with Print2PDF. With the WinPRN sample the printout appears OK, but the WINPRN class has no method "LoadScript". By calling the method "StartDoc(), file dialog for the...
New function hwg_xvalLog2(), need to help for debugging of ticket207
New function hwg_xvalLog2(), need to help for debugging of ticket207
hwg_WChoice display problem
Hello Alain, ticket closed by your request. I will use this function now in my program CLLOG as well. With regards MNI TNX, 73 es 55 de DF7BE, Wilfried
Nice ... you can close Thanks A+
Hello Alain, i have now problem, on my Ubuntu system, the bug is fixed. (see commit r3790, r3792 and screenshot) Please check again. This parameter represents the size of one line in the BROWSE window. This fact is also described in the comment lines of test program. The default value of nwline is 21, i get this value by running experimental modifications. Also the function docu is updated. On Windows, this parameter is ignored. hwg_Gettextmetric( hDC ) runs not correct, With regards MNI TNX, 73...
Added french test text
Hi Wilfried, I don't understand your workaround. It doesn't change anything. I had a look to gtkmain.prg, and I saw you have added a parameter (nwline), but I don't understand how it works. FUNCTION hwg_WChoice( arr, cTitle, nLeft, nTop, oFont, clrT, clrB, clrTSel, clrBSel, cOk, cCancel,nwline ) ... IF nwline == NIL ; nwline := 21 ; ENDIF && Ticket 90 ... * New formula, because of bug in GTK (Ticket 90) height := ( nwline + 5 ) * aLen + 4 + addY As nwline seems to be an integer, I tried to set it...
Hi Wilfried, I don't understand your workaround. It doesn't change anything. I had a look to gtkmain.prg, and I saw you have added a parameter (nwline), but I don't understand how it works. FUNCTION hwg_WChoice( arr, cTitle, nLeft, nTop, oFont, clrT, clrB, clrTSel, clrBSel, cOk, cCancel,nwline ) ... IF nwline == NIL ; nwline := 21 ; ENDIF && Ticket 90 As nwline seems to be an interge, I tried to set it as an interge, but it crashed : Daté du 24/08/25 21:02:43 ---------------------------------------------...
Ticket207: The bug can be reproduced with this test program
Same problem ... If I change the size it's ok See hardcopies A+
Hi, Wilfried, I try your ticket, but it doesn't open the printer. If I comment the line : oPrinter:lpreview := .T., it opens the printer, and I can print on the laser, or print in a pdf. But, obviously, the bug concerning the first page in portrait mode instead of landscape is always here. There is a long time I haven't used Windows, and I don't know if it's possible, as under Linux, to print in a pdf. But the bug is always present when printing on a real printer, and I suppose and hope that with...
Hello Alain, added a workaround for this bug in GTK with commit r3790. I will wait a few days for your response, then (i think), the ticket is ready to close. With regards MNI TNX, 73 es 55 de DF7BE, Wilfried
Ticket #90: Bugfix in hwg_WChoice() on GTK
Hello Alain, TNX for request to close this ticket. But i think, the function hwg_WChoice() must be run correct. I started the bugfix for LINUX some time ago, but on WinAPI the function works correct. I will close this ticket, if bug is fixed. With regards MNI TNX, 73 es 55 de DF7BE, Wilfried
Hello Alain, my fault, here the sample for this ticket. With regards MNI TNX, 73 es 55 de Wilfried, DF7BE
Hi Wilfried, Thanks, but I don't understand why you're sending this ticket which is about column size in a browse. I will try to create a sample which demonstrate the bug. A+
Hello Alain, i have no success to print into a PDF. Please check the attached sample and complete, so that i can reproduce the Bug. With regards MNI TNX, 73 es 55 de WIlfried,DF7BE
Bus with printing using a printer script.
Hi, As there were only two result with hwg_choice (ok or cancel), I choose to create a dialog and use @ x,y browse. So no need to search why the display isn't correct. You can close Thanks A+
hwg_WChoice display problem
Instructions for Raspberry Pi 5 added
New Function hwg_UNIX2DOS() added, for common purposes
Bugfix samples demo by Jose Quintas on MacOS
Bugfix hwg_MemoEdit() and demoall samples
Autodetect Raspberry Pi for calling "zbarcam"
Now ZBar for Raspberry Pi running
wrong name on button
forgot to add sources on #pragma
calendar with check for dates
Stop instruction for non Windows OS inserted and hbmk.hbm
Little correction Raspbery Pi
Raspberry Pi installation, troubleshooting missing include file sys/io.h
format source code
information on button
alternative progressbar using say
Dialog GTK critical msg while use of get valid with hwg_EndDialog()
notes
demolisttwosub
variable
demobrwtwosub
htrack from tutorial
update references
update allhbp.hbp
browse array with append
demobrowseclr.prg, demoonother
demobrowseclr.prg
demomenumod
demomemocomp
demomemocomp.prg
not needed function
position
demostrrev, demodateselect
THREAD STATIC
demolenta2, adjusts
single format source code
sampleinc.ch
use sampleinc.ch
use sampleinc.ch
samplesinc.ch define image folder windows/linux
parameter oDlg, demolenta2.prg using another samples
remove test, format source code
edit multi array
difference on browse
browse multi, demonight, size status panel, demo_ReadFile(), demo_BrowseArray, testbrowsearr
dialog maximized
demonight to dialog
demodialog
__CALLED_FROM_DEMOALL
demoall.hbp
hwg_MemoEdit()
functions from fileselect.prg to demodlgbox.prg
Bugfix compile error LINUX
references to GetWinVers
GetWinVers moved to demofunc.prg
check for errors
hwg_DlgShowHelp(), temporary files, demobrowsebmp
value to static reinitialized
individual button code
demoowner
only a remark
separated ownerbutton
demofunc on buttons, demotabtool from tabs_toolt
dialog close, removed commented code
only changelog
Sample demo, cannot scroll in demo code display