Page 5 of 30

Re: HMG 3.4.3

Posted: Thu May 12, 2016 6:15 pm
by jorge.posadas
A todos los que estan mejorando HMG les doy mi agradecimiento por esto,

Muchas gracias de corazon

Re: HMG 3.4.3

Posted: Fri May 13, 2016 3:19 am
by andyglezl
Hola

Probando otro ejemplo.... Error de ejecucion.
------------------------------
Hello

Proving another example .... Runtime error.

WordScribe.jpg
WordScribe.jpg (128.1 KiB) Viewed 9023 times

Re: HMG 3.4.3

Posted: Sat May 14, 2016 4:52 pm
by kcarmody
andyglezl wrote:Hello

Proving another example .... Runtime error.
Thank you, Andrés, for reporting this bug. It was caused by a minor miscopy from my previous proposal (http://hmgforum.com/viewtopic.php?f=43&t=4711) to 3.4.3. The fix is to insert the following line after line 4 in hfcl\RichEditBoxEx_H.prg:

Code: Select all

#include "hfcl.ch"
Then rebuild the HFCL library and recompile WordScribe.

I have posted all these changes on my website, including the recompiled library and WordScribe executable, as a proposed patch to 3.4.3.

Zip for my current proposal http://kevincarmody.com/hmg/HmgChangeProposal.zip
List of changes for this proposal http://kevincarmody.com/hmg/Changes.txt
Compiled WordScribe executable http://kevincarmody.com/hmg/SAMPLES/HFC ... Scribe.exe

Thank you, Claudio, for 3.4.3!

Re: HMG 3.4.3

Posted: Sat May 14, 2016 5:27 pm
by chrisjx2002
Hello,

There is a bug when changing image in a button : Form_1.Button_1.Picture := ....

I think that the problem is at line 2547 in h_controlmisc.prg.I change .and. by .or. :

Code: Select all

if  .Not. Empty (_HMG_SYSDATA [ 25 ] [i] ) ;
        .Or. ;
        .Not. Empty (_HMG_SYSDATA [ 33 ] [i] ) ;
        .Or.;
        (_HMG_SYSDATA [ 22 ] [i] == 'I' .And. IsAppThemed())
Another problem exists when using right or left option:

I use the Claudio's program for toolbar and change it for button :

Code: Select all

#include <hmg.ch>

Function Main()

   DEFINE WINDOW Form_1 ;
      AT 0,0  ;
      WIDTH 240 HEIGHT 200 ;
      MAIN
      
        @10,10	BUTTON Button_1 CAPTION "Test 1 (No Img)" PICTURE "" left ACTION ButtonClick() width 100 height 60
     
   END WINDOW
   CENTER WINDOW Form_1
   ACTIVATE WINDOW Form_1
   
Return Nil

Function ButtonClick
STATIC i := 1

   i++
   IF i > 3
      i := 1
   ENDIF
 
   DO CASE
      CASE i == 1
         Form_1.Button_1.Caption := "Test 1 (No Img)"
         Form_1.Button_1.Picture := ""
      CASE i == 2
         Form_1.Button_1.Caption := "Test 2"
         Form_1.Button_1.Picture := "button5.bmp"
      CASE i == 3
         Form_1.Button_1.Caption := "Test 3"
         Form_1.Button_1.Picture := "button6.bmp"
   ENDCASE
 
Return Nil
At the beginning the result is
First.jpg
First.jpg (7.87 KiB) Viewed 8932 times
After clicking three times the result is :
Second.jpg
Second.jpg (8 KiB) Viewed 8932 times

Re: HMG 3.4.3

Posted: Sun May 15, 2016 12:05 pm
by mustafa
1.- Anomalía en Documentos PDF, caida de la posición de las letras
solución del amigo " tonton2" ver :
http://hmgforum.com/viewtopic.php?f=43& ... &start=140

SOURCE\h_HMG_HPDF.Prg

Línea--> 312 Anular --> // nyPos -= nFontSize
*----------------------------------------------------------------------------------*
1.- Documents PDF anomaly, falling position letters
Friend solution "tonton2" see:

http://hmgforum.com/viewtopic.php?f=43& ... &start=140

SOURCE\h_HMG_HPDF.Prg

Line--> 312 Removed --> // nyPos -= nFontSize
*----------------------------------------------------------------------------------*


2.- Faltan Libs copiado de versión hmg.3.4.0
Parece que funciona

libeay32.a 2.273.502 17/08/2009
libhmgmysql.a 4.952 23/05/2014
libhmgpgsql.a 5.898 23/05/2014
libhmgsqlite.a 5.688 23/05/2014

*--------------------------------------------------------------------------*
2.-Libs missing copied version hmg.3.4.0
It seems to work

libeay32.a 2.273.502 17/08/2009
libhmgmysql.a 4.952 23/05/2014
libhmgpgsql.a 5.898 23/05/2014
libhmgsqlite.a 5.688 23/05/2014

Gracias a todos los que estais colaborando en este magnifico proyecto

Thanks to all you who collaborate in this magnificent project
Mustafa

Re: HMG 3.4.3

Posted: Wed May 18, 2016 8:28 am
by Rathinagiri
This is a patch file for those using HMGSQL bridge. Please update and build the lib files again.
HMGSQLPatch.zip
(18.72 KiB) Downloaded 494 times

Re: HMG 3.4.3

Posted: Wed May 18, 2016 2:12 pm
by andyglezl
Gracias Rathi !
----------------------
Rathi thanks!

Re: HMG 3.4.3

Posted: Thu May 19, 2016 8:02 am
by mol
I want to report that HMG Debugger crashes when your application is built from few modules, incremental compilation and ane main module is compiled without debugger, depending module compiled with debugger.
When calling debugger, error occurs:

Code: Select all

Error: HMG 3.4.2 Stable Patch 4 (32 bits)
Non Modal WIndows can't be activated when a modal window is active. _HMG_FormDebugger Program Terminated
Called from _ACTIVATEWINDOW(5686) 
Called from PROCINITGUIDEBUGGER(462) 
Called from (b)HMGDEBUGGER(245) 
Called from (b)HMGDEBUGGER(253) 
Called from HMGDEBUGGER:GUICREATEFORMDEBUGGER(0) 
Called from HMGDEBUGGER:ACTIVATE(276) 
Called from __DBGENTRY(114) 
Called from DRUKUJFAKTUREWGWZORCA(27) 
Called from DRUKUJFAKTURE(3255) 
Called from DRUKUJPONOWNIEFAKTURE(1578) 
Called from (b)REJESTRFAKTUR(373) 
Called from _DOCONTROLEVENTPROCEDURE(6044) 
Called from EVENTS(1717) 
Called from DOMESSAGELOOP(0) 
Called from _ACTIVATEWINDOW(5707) 
Called from REJESTRFAKTUR(447) 
Called from AKCJATESTPRZYCISKOW(1647) 
Called from (b)ZDEFINIUJOKNOGLOWNE(1590) 
Called from _DOCONTROLEVENTPROCEDURE(6044) 
Called from EVENTS(1762) 
Called from DOMESSAGELOOP(0) 
Called from _ACTIVATEWINDOW(5707) 
Called from MAIN(595) 


Re: HMG 3.4.3

Posted: Thu May 19, 2016 2:42 pm
by srvet_claudio
I will check.

Re: HMG 3.4.3

Posted: Fri May 20, 2016 11:41 pm
by srvet_claudio
mol wrote:I want to report that HMG Debugger crashes when your application is built from few modules, incremental compilation and ane main module is compiled without debugger, depending module compiled with debugger.
When calling debugger, error occurs:

Code: Select all

Error: HMG 3.4.2 Stable Patch 4 (32 bits)
Non Modal WIndows can't be activated when a modal window is active. _HMG_FormDebugger Program Terminated
Called from _ACTIVATEWINDOW(5686) 
Called from PROCINITGUIDEBUGGER(462) 
Called from (b)HMGDEBUGGER(245) 
Called from (b)HMGDEBUGGER(253) 
Called from HMGDEBUGGER:GUICREATEFORMDEBUGGER(0) 
Called from HMGDEBUGGER:ACTIVATE(276) 
Called from __DBGENTRY(114) 
Called from DRUKUJFAKTUREWGWZORCA(27) 
Called from DRUKUJFAKTURE(3255) 
Called from DRUKUJPONOWNIEFAKTURE(1578) 
Called from (b)REJESTRFAKTUR(373) 
Called from _DOCONTROLEVENTPROCEDURE(6044) 
Called from EVENTS(1717) 
Called from DOMESSAGELOOP(0) 
Called from _ACTIVATEWINDOW(5707) 
Called from REJESTRFAKTUR(447) 
Called from AKCJATESTPRZYCISKOW(1647) 
Called from (b)ZDEFINIUJOKNOGLOWNE(1590) 
Called from _DOCONTROLEVENTPROCEDURE(6044) 
Called from EVENTS(1762) 
Called from DOMESSAGELOOP(0) 
Called from _ACTIVATEWINDOW(5707) 
Called from MAIN(595) 

Hi Marek,
change in function _ActivateWindow (file h_windows.prg) the original line 5647:

Code: Select all

			If _HMG_SYSDATA [ 271 ]
				MsgHMGError("Non Modal WIndows can't be activated when a modal window is active. " + Formname +" Program Terminated" )
			endif
for this

Code: Select all

			If _HMG_SYSDATA [ 271 ] .AND.  lActivateMsgLoop == .T.
				MsgHMGError("Non Modal Windows can't be activated when a modal window is active. " + Formname +" Program Terminated" )
			endif
and rebuild.