RE: [harbourminigui] Digest for minigui-forum@googlegroups.com - 2 updates in 1 topic

313 views
Skip to first unread message

Ronaldo B Lima

unread,
Mar 30, 2022, 4:49:27 PM3/30/22
to minigu...@googlegroups.com
Pete


in a way I even managed to isolate the problem,
as I said I use Roberto formigone's ide,
there are two ways to compile it (two buttons)
being a "traditional bath processing"
and another "Harbours official make program (hbmk2)".
When I compile in the first mode, it gives libs errors, even though I'm referencing the libs
When I compile in the second mode, there are no errors, and everything works fine.

The problem is that the compilation with the second mode is very slow, it takes a long time,
in the first mode that I always used before this new version there were no compilation errors.
​​​​​​​Maybe something is missing to update in the traditional way compilation bath.

de certa forma eu até consegui isolar o problema,
como eu disse eu uso a ide do Roberto formigone,
nela ha duas formas de compilar (dois botoes)
sendo um "traditional bath processing" 
e outro "Harbours official make program (hbmk2)".
Quando compilo no primeiro modo, da erros de libs, mesmo eu referenciando as libs
Quando compilo no segundo modo, não ha erros, e tudo funciona bem.

O problema é que a compilacao com o segundo modo é muito lenta, demora muito,
no primeiro modo que sempre usei antes dessa nova versao nao ocorria erros de compilacao.
Talvez esteja faltando atualizar alguma coisa no bath de compilacao do modo tradicional.

 

Geniais Soluções em Informatica
      Ronaldo Batista Lima 
      011-99154-9291 

      email : gen...@uol.com.br

 

 

De: minigu...@googlegroups.com
Enviada: 2022/03/30 10:13:41
Para: minigu...@googlegroups.com
Assunto: [harbourminigui] Digest for minigu...@googlegroups.com - 2 updates in 1 topic
 
Ronaldo B Lima <ronald...@uol.com.br>: Mar 29 03:34PM -0300

Ola colega
 
eu uso a ide do Walter Formigoni para compilar meus projetos,
 
eu acho que deve estar havendo algum conflito de LIBs.
 
Eu costumo complicar com a opcao "tradicional" e assim tenho que
 
incluir as libs em preferences.
 
Eu testei compilando com a opcao hbmk2, eo problema nao ocorreu,
 
porem a compilacao na IDE com a opcao hbmk2 é muito demorada,
 
impraticavel, uma compilacao demorou 3 horas.
 
compilando em modo "tradicional" demora de 1 a 3 minutos.
 
observando o codigo de savepdf.prg
 
ha uma linha :
 
cImageFile := hb_FnameExtSet( hb_FNameName( cPage ), "png" ),
 
sendo que a funcao hb_FNameName, remove o path, devolvendo o nome do arquivo puro,
 
e ai é que esta o problema, pois ao testar If file(cimageFile), nao contem o caminho
 
de cimagefile, e entao ocorre o problema.
 
Nao adianta eu alterar esse codigo pois faz parte da lib.
 
Obrigado pela ajuda
 
Hello Friend
 
I use Walter Formigoni's ide to compile my projects,
 
I think there must be some conflict of LIBs.
 
I tend to complicate it with the "traditional" option and so I have to
 
include the libs in preferences.
 
I tested compiling with the hbmk2 option, and the problem did not occur,
 
however the compilation in the IDE with the hbmk2 option is very time consuming,
 
impractical, a compilation took 3 hours.
 
compiling in "traditional" mode takes 1 to 3 minutes.
 
looking at the code of savepdf.prg
 
there is a line:
 
cImageFile := hb_FnameExtSet( hb_FNameName( cPage ), "png" ),
 
and the function hb_FNameName, removes the path, returning the name of the pure file,
 
and that's where the problem is, because when testing If file(cimageFile), it doesn't contain the path
 
from cimagefile, and then the problem occurs.
 
It's no use me changing this code because it's part of the lib.
 
Thank you for your help
 
Geniais Soluções em Informatica
 
Ronaldo Batista Lima
 
011-99154-9291
 
email : gen...@uol.com.br
 
De: "Pierpaolo Martinello" <pier.ma...@gmail.com>
 
Enviada: 2022/03/27 16:14:44
 
Para: ronald...@uol.com.br
 
Cc: minigu...@googlegroups.com
 
Assunto: Re: [harbourminigui] Re: Miniprint2 enhancements
 
Hi Ronaldo,
 
i have just tried with success a pdf export with a my important job.
 
It would take a piece of your program to uncover the problem.
 
Oi Ronaldo,
 
acabei de tentar com sucesso uma exportação de pdf com um meu importante trabalho.
 
Seria preciso um pedaço do seu programa para descobrir o problema.
 
BR
 
--
 
Pierpaolo Martinello
 
IW1CUY Ham Radio From Biella Italy
 
Linux User 177880
 
Il giorno dom 27 mar 2022 alle ore 17:44 Ronaldo Geniais <ronald...@uol.com.br> ha scritto:
 
I keep getting the PAGE NOT FOUND warning when trying to save to PDF in HBPRINTER and MINIPRINT2.
 
analyzing the code in savepdf.prg that is located
 
in minigui\souce\hbprinter and minigui\source\miniprint2
 
line 108/113
 
cIMAGEFILE doesn't seem to contain the path of the generated file "IMG"
 
I managed to locate the generated file in the executable folder of my program,
 
but the code above doesn't seem to find the way,
 
I don't know where I'm going wrong, because in the examples in the samples folder when I compile, they work normally.
 
IF ! File( cImageFile )
 
MsgExclamation( "Source " + cImageFile + " not found!" + hb_eol() + "Can't continue...", "Page not found!" )
 
lRet := .F.
 
EXIT
 
ENDIF
 
the xxx.png file is created in the application's executable folder, but the function that converts to pdf seems to look for it in another folder
 
Sem título.png
 
Em segunda-feira, 7 de fevereiro de 2022 às 11:30:11 UTC-3, pete....@gmail.com escreveu:
 
Hello team,
 
Miniprint2 is a nice small and cute print library.
 
Like everything, it would be even better if we could:
 
- export/save to pdf (currently only .emf format is supported)
 
- handle better the container window (maximize/resize)
 
- granually zoom stepping (on preview)
 
thanks for any opinions?
 
regards,
 
Pete
 
--
 
Visit our website on http://www.hmgextended.com/ or https://www.hmgextended.org/
 
---
 
You received this message because you are subscribed to a topic in the Google Groups "Harbour Minigui" group.
 
To unsubscribe from this topic, visit https://groups.google.com/d/topic/minigui-forum/BApC5myyr84/unsubscribe.
 
To unsubscribe from this group and all its topics, send an email to minigui-foru...@googlegroups.com.
 
To view this discussion on the web, visit https://groups.google.com/d/msgid/minigui-forum/a37ebbb2-1a81-485a-a109-1be1acf7d992n%40googlegroups.com.
Pete <pete....@gmail.com>: Mar 29 01:41PM -0700

Hi Ronaldo,
 
On Tuesday, 29 March 2022 at 21:34:52 UTC+3 Ronaldo Geniais wrote:
 
> cImageFile := hb_FnameExtSet( hb_FNameName( cPage ), "png" ),
> and the function hb_FNameName, removes the path, returning the name of
> the pure file,
 
Yes, it's so "by design", and that's exactly what the function is made to
do there...

 
> and that's where the problem is,
 
No, there is no problem there...

 
> because when testing If file(cimageFile), it doesn't contain the path
 
We do not want it to contain any path!
`cImageFile` is a temporary filename to be used by `BT_BitmapSaveFile()` to
save the original .emf as .png
That file, for shake of simplicity, is created in the curent working
directory (normally the directory of the executable)
Now, if you keep getting the "... not found" message, then either the file
fails to be created by `BT_BitmapSaveFile()`
(could it be due to limited write access of the folder?) or some kind of
path change/redirection is happening
somewhere in the code, but that's only "a shot in the dark".

 
> It's no use me changing this code because it's part of the lib.
 
I will try to add some error handling in that point of _CreatePdf()
function
Something like:
If ! lRet := BT_BitmapSaveFile( hBitmap, cImageFile, BT_FILEFORMAT_PNG )
MsgExclamation( "Image file: " + cImageFile + " cannot be saved!",
"Warning" )
exit
endif
 
Meanwhile, you could try it yourself and see if it helps to locate the
cause of problem.
 
regards,
Pete
You have received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to minigui-foru...@googlegroups.com.

Pete

unread,
Mar 31, 2022, 3:17:31 AM3/31/22
to Harbour Minigui
Hi,

On Wednesday, 30 March 2022 at 23:49:27 UTC+3 Ronaldo Geniais wrote:
Pete


in a way I even managed to isolate the problem,
as I said I use Roberto formigone's ide,
there are two ways to compile it (two buttons)
being a "traditional bath processing"
and another "Harbours official make program (hbmk2)".
When I compile in the first mode, it gives libs errors, even though I'm referencing the libs
When I compile in the second mode, there are no errors, and everything works fine.

The problem is that the compilation with the second mode is very slow, it takes a long time,
in the first mode that I always used before this new version there were no compilation errors.
​​​​​​​Maybe something is missing to update in the traditional way compilation bath.
 
Yes I 'm aware of this "slowness", since I'm the creator of that second option to build via HBMK2.
Last time I used the IDE to compile anything but small samples it was a long-long time ago.
Nowadays I use IDE only as form designer. Very useful for this purpose!
I would not recommend it to be used as real IDE, though. There are alternatives...

regards,
Pete



Ross McKenzie

unread,
Apr 3, 2022, 2:09:48 AM4/3/22
to Harbour Minigui
Hello Pete,

" I would not recommend it to be used as real IDE, though. There are alternatives..."

What are your suggested alternatives?

Cheers,

Ross

Pete

unread,
Apr 3, 2022, 4:32:24 AM4/3/22
to Harbour Minigui
Hello Ross
On Sunday, 3 April 2022 at 09:09:48 UTC+3 ross...@gmail.com wrote:

" I would not recommend it to be used as real IDE, though. There are alternatives..."

What are your suggested alternatives?

 
freeware
 - hbIDE (by Pritpal) (Qt-based /read: 'bloated')
   good, open-source harbour-written but...
   since it's qt-based it's a real pain (at least for me) to make any change and recompile it ;(

 - xMate (by Andy Wos)
   old-fashioned, outdated, not-supported, closed-source,
   also lacks some enhanced features found in modern IDEs.
   But it's so good and I still do use it! Here I keep a copy of it: https://github.com/Petewg/MgM/tree/master/comp/ide
   
 - vscode (by MS) powered with Antonino's extentions for harbour! Many harbour people
   do use it.   (https://github.com/APerricone/harbourCodeExtension)
   
 - Notepad++ (the well known  Editor). Quite good Syntax hilighting and code-hinting for harbour.
   With a little work can be used as IDE.
   
commercial
   - Xailer (?)
      
(I'm sure there are more alternatives out there, but right now seems like my memory
has been entered into low-energy/low-frequency mode which doesn't help so much).
Also take a look here:  https://github.com/Petewg/harbour-core/wiki/Make-tools

regards,
Pete


Ross McKenzie

unread,
Apr 3, 2022, 7:15:03 AM4/3/22
to Harbour Minigui
Thanks Pete.

I had used Andy's xMate years ago. A comment: your link to his yahoo page is dead.

Cheers,

Ross

Ivanil Marcelino

unread,
Apr 3, 2022, 9:33:04 AM4/3/22
to Harbour Minigui
The 'designer' is also an option;
It can be used to design the screens, compile and even manage the entire project; click on the form property and automatically jump to the code.

It contains that something else that IDEs don't usually have;
Anyway the link in GIT is:Designer for Minigui - Git

It is not in my interest to make it commercial; consulting work; my focus is not software development, this work is a contribution to the community; if at any time I cannot continue the update, the source that is already in the GIT will be made public;

I don't have much knowledge of other languages; but with the help of some colleagues we managed to translate it into Italian, English, Spanish and natively into Portuguese-Brazil. and in this case anyone can contribute, the "IDE" itself has the "translate" feature, just send me the generated file to incorporate the next update.

Good sunday;

at;

Ivanil

--
Visit our website on https://www.hmgextended.com/ or https://www.hmgextended.org/
---
You received this message because you are subscribed to the Google Groups "Harbour Minigui" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minigui-foru...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/minigui-forum/470e420d-a26d-44f4-9f91-1a6c8eaffccdn%40googlegroups.com.


--

Ross McKenzie

unread,
Apr 3, 2022, 9:32:31 PM4/3/22
to Harbour Minigui
Thanks Ivanil, however I do not have the language skills or frankly the patience at this late stage of life to learn your product. It is no doubt excellent. The problem is me... not you. I attempted to view your Youtube introduction but without my native language I gave up within a minute. Once again... not your fault.

Best wishes,

Ross

Aure

unread,
Apr 9, 2022, 1:41:16 AM4/9/22
to minigu...@googlegroups.com
Hola!!!

Me interesó el programa pero al hacerle un escaneo con virustotal . com encontró siete virus

Saludos.

Pete

unread,
Apr 19, 2022, 1:56:16 AM4/19/22
to Harbour Minigui
Hello Ross,
On Sunday, 3 April 2022 at 14:15:03 UTC+3 ross...@gmail.com wrote:
I had used Andy's xMate years ago.
Would you mind to disclose your current build toolset? (IDE or something..)
 
A comment: your link to his yahoo page is dead.
Yes, I suppose it was sunk along with  other "old good things" at yahoo. ;-(

regards,
Pete
 

Ross McKenzie

unread,
Apr 19, 2022, 9:55:21 AM4/19/22
to Harbour Minigui
Hi Pete.

I have not coded with miniGui for about 5 years. I am a (now retired) electronic engineer who was prototyping various items using Atmel (now Microchip) microcontrollers commercially. For miniGui, I was still using MultiEdit from my Clipper days together with Roberto Formigone's screen designer. Just now thinking of getting back into it and reviving a commercial application that ran on a Windows CE hand held and a PC for the miniGui part. That client has just recently made contact again. But my wife is not keen on the thought.

Cheers,
Ross

Ronaldo B Lima

unread,
Apr 19, 2022, 12:32:19 PM4/19/22
to minigu...@googlegroups.com
Hello friends

using the new PDF features for HBPRINTER and MINIPRINT2.
I would like to share the experience passed by the users.
In HBPRINTER,
when the PDF has several pages, the "SAVE AS" option only saves the first page.
In MINIPRINT2,
the save option suggests the name of the pdf as "HMGPRINTSYS.PDF", and the message to view the generated pdf is fixed in English.

In both libs, it would be interesting to have a preferred save folder option, the filename could be taken from "START PRINT DOC NAME" / "start doc name"
where could i
set the path and filename.

Would that be possible?

Geniais Soluções em Informatica
      Ronaldo Batista Lima 
      011-99154-9291 

      email : gen...@uol.com.br

 

 

Pete

unread,
Apr 21, 2022, 3:17:55 PM4/21/22
to Harbour Minigui
Hi Ross,

On Tuesday, 19 April 2022 at 16:55:21 UTC+3 ross...@gmail.com wrote:
 Just now thinking of getting back into it and reviving a commercial application that ran on a Windows CE hand held and a PC for the miniGui part. That client has just recently made contact again. But my wife is not keen on the thought.

Well, to stay active after retirement is one (good) thing,  wife's discontent is another
(and not so pleasant I'd say). Usually in such cases, a wife is probably right.. because you know...,
wives always are right, even when they're not! (and especially then...) ;-)

regards,
Pete

Aure

unread,
Nov 8, 2022, 6:52:49 PM11/8/22
to minigu...@googlegroups.com

Hola master!!!

¿Cómo puedo obtener una de las cadenas por ejemplo "01 - comprobante emitido con errores con relación" de la función INputWindowEx

Gracias

Este es mi código

            aadd( aLabels, 'Fecha de cancelación:' )
            aadd( aValues, date() )
            aadd( aFormats, { 150, 'DP', 100,, } )
            aadd( aLabels, 'Motivo de cancelación:' )
            aadd( aValues, '' )
            aadd( aFormats, { 150, 'TX', 300, , len(fvta->OBSER) } )
            aadd( aLabels, 'Motivo cancelación (SAT):' )
            aadd( aValues, 0 )
            aadd( AFormats, { 150, 'CB', 300,, { '01 - Comprobante emitido con errores con relación         ',;
                                                 '02 - Comprobante emitido con errores sin relación         ',;
                                                 '03 - No se llevó a cabo la operación                      ',;
                                                 '04 - Operación nominativa relacionada en la factura global' } } )
            aDevuelve := InputWindowEx( aTitle, aLabels, aValues, aFormats,,,.T. )

Reply all
Reply to author
Forward
0 new messages