HMG 3.4.3

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

Post Reply
jorge.posadas
Posts: 172
Joined: Mon May 19, 2014 7:43 pm
DBs Used: DBF, SQLite, MS-SQL, ACCESS, MariaDB (en proceso)
Location: Morelia, Mich. México
Contact:

Re: HMG 3.4.3

Post by jorge.posadas »

A todos los que estan mejorando HMG les doy mi agradecimiento por esto,

Muchas gracias de corazon
Cordialmente

POSADAS SOFTWARE
Jorge Posadas Ch.
Programador independiente
Morelia, Mich.
M é x i c o .
Movil +52 44 3734 1858
SKYPE: jorge.posadasch
Email: posoft@gmx.com
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: HMG 3.4.3

Post by andyglezl »

Hola

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

Proving another example .... Runtime error.

WordScribe.jpg
WordScribe.jpg (128.1 KiB) Viewed 8605 times
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
kcarmody
Posts: 152
Joined: Tue Oct 07, 2014 11:13 am
Contact:

Re: HMG 3.4.3

Post 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!
chrisjx2002
Posts: 190
Joined: Wed Jan 06, 2010 5:39 pm

Re: HMG 3.4.3

Post 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 8514 times
After clicking three times the result is :
Second.jpg
Second.jpg (8 KiB) Viewed 8514 times
User avatar
mustafa
Posts: 1158
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: HMG 3.4.3

Post 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
Attachments
Lib.zip
(131.4 KiB) Downloaded 348 times
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG 3.4.3

Post 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 476 times
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: HMG 3.4.3

Post by andyglezl »

Gracias Rathi !
----------------------
Rathi thanks!
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: HMG 3.4.3

Post 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) 

User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG 3.4.3

Post by srvet_claudio »

I will check.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG 3.4.3

Post 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.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
Post Reply