Up

_gtkWindowConvertToObjWin

create a win32 window from a gtk window inside this gtk window. Any 2d classical Scol objects can be added in this "new" ObjWin. Its usage should be restricted. Don't forget : the ObjWin object depends always to the GTK window. You should not destroy the GTK window if you use ObjWin yet.
At this time, this function is not supported under GNU/Linux : it returns nil always.

Prototype :

fun [ObjGtkWidget ObjWin] ObjWin

Return : ObjWin : a new ObjWin window or nil if an error occurs

See also

Example

typeof gtkWin = ObjGtkWidget;;
typeof win = ObjWin;;
	
fun main ()=
	_showconsole;
	set gtkWin = _gtkWindowNew _channel nil "Test" [50 50] [400 350];
	_gtkWidgetShow gtkWin;
	set win = _gtkWindowConvertToObjWin gtkWin nil;
	_SHOWwindow win WINDOW_UNHIDDEN;
	_MVwindow win 700 250;
	_CRtext _channel win 5 5 300 200 ET_DOWN "This is a test !";
	_PAINTwindow win;
	_gtkWindowMove gtkWin 20 500;
	_gtkMain;
	0;;