show requestfile window as modal

BlitzMax Forums/MaxGUI Module/show requestfile window as modal

hub(Posted 2007) [#1]
Hi !
How to diplay the requestfile window above all the others windows and set it as 'modal'. Thanks !

here my pb, the requestfile window is displayed below the 'other' :



note than i use the following code for the 'other' window


	Extern "win32"
		Function GetActiveWindow()
		Function SetWindowPos(hWnd:Int,after:Int,x:Int,y:Int,w:Int,h:Int,flags:Int)
	End Extern
	
	Function alwaysOnTop(hwnd:Int)
		SetWindowPos( hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE + SWP_NOMOVE )
	End Function
	
	Function notAlwaysOnTop(hwnd:Int)
		SetWindowPos( hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOSIZE + SWP_NOMOVE )
	End Function

Local hwnd2:Int = GetActiveWindow()
alwaysOnTop(hwnd2)



hub(Posted 2007) [#2]
oups... i've the solution inside my post. i use the notAlwaysOnTop function !