Page 6 of 9

Re: HMG 3.4.4

Posted: Sat May 20, 2017 10:29 am
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

Re: HMG 3.4.4

Posted: Sat May 20, 2017 12:15 pm
by mol
Hi Serge!
You keep everything in PRG and such a situation happens to you, so, it's HMG error, I think.

Re: HMG 3.4.4

Posted: Sat May 20, 2017 12:23 pm
by mol
This solution works ok in above sample, but in my application not. What's going on?

Re: HMG 3.4.4

Posted: Sat May 20, 2017 3:06 pm
by serge_girard
Check main form?

Serge

Re: HMG 3.4.4

Posted: Sat May 20, 2017 3:16 pm
by mol
I've checked. It's strange - there was no MAIN declaration - forn created by IDE.
I've added, but without positive results.

Re: HMG 3.4.4

Posted: Sat May 20, 2017 4:02 pm
by serge_girard
Marek,

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

Serge

Re: HMG 3.4.4

Posted: Sat May 20, 2017 5:11 pm
by mol
Ide changes fmg file during save operation

Re: HMG 3.4.4

Posted: Sun May 21, 2017 11:25 am
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?

Re: HMG 3.4.4

Posted: Sun May 21, 2017 12:03 pm
by serge_girard
Marek,

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

Serge

Re: HMG 3.4.4

Posted: Sun May 21, 2017 12:16 pm
by mol
Thank you Serge, it's huge application and it will be hard to you to debug thi because of language barrier