HMG 3.4.3

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

Post Reply
jorge.posadas
Posts: 89
Joined: Mon May 19, 2014 7:43 pm
DBs Used: DBF, SQLite, MS-SQL, ACCESS, MariaDB (en proceso)
Location: Tizayuca, Hgo. México
Been thanked: 6 times
Contact:

Re: HMG 3.4.3

Post by jorge.posadas » Thu May 12, 2016 6:15 pm

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

Muchas gracias de corazon
Cordialmente

Jorge Posadas Ch
Tizayuca, Hgo.
M é x i c o .
Movil +52 55 1427 2013
SKYPE: jorge.posadasch
Email: jorge.posadas@gmail.com

User avatar
andyglezl
Posts: 1176
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 36 times
Been thanked: 81 times
Contact:

Post by andyglezl » Fri May 13, 2016 3:19 am

Hola

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

Proving another example .... Runtime error.

WordScribe.jpg
WordScribe.jpg (128.1 KiB) Viewed 3995 times
Andrés González López
Desde Guadalajara, Jalisco. México.

User avatar
kcarmody
Posts: 122
Joined: Tue Oct 07, 2014 11:13 am
Has thanked: 6 times
Been thanked: 16 times
Contact:

Post by kcarmody » Sat May 14, 2016 4:52 pm

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: 168
Joined: Wed Jan 06, 2010 5:39 pm
Been thanked: 2 times

Post by chrisjx2002 » Sat May 14, 2016 5:27 pm

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 3904 times
After clicking three times the result is :
Second.jpg
Second.jpg (8 KiB) Viewed 3904 times

User avatar
mustafa
Posts: 849
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Been thanked: 129 times
Contact:

Post by mustafa » Sun May 15, 2016 12:05 pm

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 160 times

User avatar
Rathinagiri
Posts: 5264
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Wed May 18, 2016 8:28 am

This is a patch file for those using HMGSQL bridge. Please update and build the lib files again.
HMGSQLPatch.zip
(18.72 KiB) Downloaded 288 times
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
andyglezl
Posts: 1176
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 36 times
Been thanked: 81 times
Contact:

Post by andyglezl » Wed May 18, 2016 2:12 pm

Gracias Rathi !
----------------------
Rathi thanks!
Andrés González López
Desde Guadalajara, Jalisco. México.

User avatar
mol
Posts: 3247
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 230 times
Been thanked: 132 times
Contact:

Post by mol » Thu May 19, 2016 8:02 am

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: 2044
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 35 times
Been thanked: 146 times
Contact:

Post by srvet_claudio » Thu May 19, 2016 2:42 pm

I will check.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com

User avatar
srvet_claudio
Posts: 2044
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 35 times
Been thanked: 146 times
Contact:

Post by srvet_claudio » Fri May 20, 2016 11:41 pm

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