HMG 3.4.4

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

Post Reply
User avatar
serge_girard
Posts: 2511
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 804 times
Been thanked: 154 times
Contact:

Re: HMG 3.4.4

Post by serge_girard »

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: 3361
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 256 times
Been thanked: 163 times
Contact:

Post by mol »

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: 3361
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 256 times
Been thanked: 163 times
Contact:

Post by mol »

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

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

Post by serge_girard »

Check main form?

Serge

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

Post by mol »

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: 2511
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 804 times
Been thanked: 154 times
Contact:

Post by serge_girard »

Marek,

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

Serge

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

Post by mol »

Ide changes fmg file during save operation

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

Post by mol »

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: 2511
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 804 times
Been thanked: 154 times
Contact:

Post by serge_girard »

Marek,

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

Serge

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

Post by mol »

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

Post Reply