HTMLViewRun (Again)

BlitzMax Forums/MaxGUI Module/HTMLViewRun (Again)

SebHoll(Posted 2007) [#1]
Hi,

Why doesn't this give me a message box?

Update: Seems like this is a bug.

Strict 

Local window:TGadget
Local htmlview:TGadget

window=CreateWindow("My Window",30,20,600,440,,15|WINDOW_ACCEPTFILES)

htmlview=CreateHTMLView(0,0,ClientWidth(window),ClientHeight(window),window)
SetGadgetLayout htmlview,1,1,1,1 

HtmlViewRun htmlview,"alert('Hello');"

While WaitEvent()
	Print CurrentEvent.ToString()
	Select EventID()
		Case EVENT_WINDOWCLOSE
			End
	End Select
Wend


Thanks


Seb


jsp(Posted 2007) [#2]
Hi Seb,
works just fine here, no problem (winXP).


SebHoll(Posted 2007) [#3]
That's strange. I have the latest syncmods, running on Windows Vista Ultimate (x86) and I can't get HtmlViewRun() to work in any way!

Also I just tried on my old Windows XP desktop that had an old version of MaxGUI sync'd and it worked fine. I backed up the mods, and sync'd to the latest version and it stopped working. Therefore I assume it is a problem with one of the recent fixes.

Are you running BRL.Win32MaxGUI version 1.34?


jsp(Posted 2007) [#4]
It's exactly as you wrote.
When i send the first post i was working on a system with the old version 1.22 and it was all working fine.
I just tried it again with the new version and sync'd right before at another system and it stopped working!
There is for sure a problem with the new version.
You should open a bug report;)