From: Alain A. <ala...@wa...> - 2015-07-23 12:23:56
|
Le 23/07/2015 13:12, Alexander S.Kresin a écrit : > Alain Aupeix пишет: >> Sent again due to SourceForge problems ... >> ___________________________________________________________________________ >> >> If I understand the avalaible commands box, line, say, I have some >> trouble to understand what and how to use some parameters likeDT_RIGHT, >> DT_CENTER, DT_LEFT, and others I found searching in hwgui sources : >> >> DT_VCENTER, DT_SINGLELINE, DT_CALCRECT, DT_WORDBREAK, BS_LEFT, BS_RIGHT, >> JUSTIFY HEAD DT_CENTER, >> PANGO_ALIGN_CENTER, PANGO_ALIGN_RIGHT, DT_BOTTOM, TOP_INDENT, LEFT_INDENT >> >> If I think of understanding what are their purposes, I not able to use >> it very well. >> >> Please, can you give a sample more complete using a lot of these >> parameters, than the one you already give,and which a little poor. >> I beg it's possible to create a script which can be printed after with a >> simple function. Am-I right ? >> > This is a big issue, I haven't time right now to write a full > description - just a few words. > > DT_RIGHT, DT_CENTER, DT_LEFT are horizontal alignment parameters for a > text, DT_VCENTER and DT_BOTTOM - vertical alignment. The other, which > you wrote, aren't used for printing. > > Have you seen gtk_samples/a.prg/PrnTest() function ? It is very short > and gives only basic information: Yes, and it was the function I used as basis. But it's static, and I thougth, trying to read hprinter.prg that there was a way to create a file when creating the print job, and there where a way to then print it. METHOD LoadScript( cScriptFile ) METHOD SaveScript( cScriptFile ) Then it needs only the structure of the scriptfile to make it usable. Exactly as source code ? Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-07-20 15:02) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2468) ------------------------------------------------------------------------ |