HMG 3.4.4

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

User avatar
serge_girard
Posts: 1803
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 261 times
Been thanked: 60 times
Contact:

Re: HMG 3.4.4

Post by serge_girard » Sat May 20, 2017 10:29 am

You're welcome, Marek.

I don't use IDE anymore since it crashes to often. And FMG is not my thing.... I'd rather keep it in my PRG!

Serge

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

Post by mol » Sat May 20, 2017 12:15 pm

Hi Serge!
You keep everything in PRG and such a situation happens to you, so, it's HMG error, I think.

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

Post by mol » Sat May 20, 2017 12:23 pm

This solution works ok in above sample, but in my application not. What's going on?

User avatar
serge_girard
Posts: 1803
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 261 times
Been thanked: 60 times
Contact:

Post by serge_girard » Sat May 20, 2017 3:06 pm

Check main form?

Serge

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

Post by mol » Sat May 20, 2017 3:16 pm

I've checked. It's strange - there was no MAIN declaration - forn created by IDE.
I've added, but without positive results.

User avatar
serge_girard
Posts: 1803
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 261 times
Been thanked: 60 times
Contact:

Post by serge_girard » Sat May 20, 2017 4:02 pm

Marek,

If IDE changes FMG then close IDE, check FMG and try to compile with bat-file.

Serge

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

Post by mol » Sat May 20, 2017 5:11 pm

Ide changes fmg file during save operation

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

Post by mol » Sun May 21, 2017 11:25 am

I've tested this wrong behaviour with HMG341 and works bad, too :-(
I must install new version today and only one solution is to move window definitions to prg file. Stupid work...
It's strange but moving code to prg does not give solution to problem.
I've added timer to main form, which call function WhereAmI() which puts active form name in status bar

Code: Select all

function WhereAmI()
	local hWin := GetActiveWindow()
	local i
	local cFormName := ""
	
	i:= ascan( _HMG_SYSDATA[67], hWin)
	if i>0
		cFormName := _HMG_SYSDATA[66][i]
	endif
	MainForm.StatusBar.Item(1) := cFormName + " "+str(hWin)+ " " + time()
	
return .t.
After closing my modal form, GetActiveWindow() returns 0 - it should be MainForm handle in my opinion. So, what causes such a strange behaviour?

User avatar
serge_girard
Posts: 1803
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 261 times
Been thanked: 60 times
Contact:

Post by serge_girard » Sun May 21, 2017 12:03 pm

Marek,

if you want to share complete source in order to debug, please use Private Message!

Serge

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

Post by mol » Sun May 21, 2017 12:16 pm

Thank you Serge, it's huge application and it will be hard to you to debug thi because of language barrier

Post Reply