GadgetPrint Help

BlitzMax Forums/MaxGUI Module/GadgetPrint Help

William Drescher(Posted 2010) [#1]
In the code docs, it says the you can use the GadgetPrint function on HTML views, but when I try to use it, the print window never appears. Is there a problem with this specific feature?


skidracer(Posted 2010) [#2]
this test works fine for me in windows, bringing up a print requester once page is loaded

' createhtmlview.bmx

Import MaxGui.Drivers

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 

HtmlViewGo htmlview,"www.blitzmax.com"

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