public long SetLayerWindowFun(IntPtr es) { bool t = ltf.JsValue2Boolean(es, ltf.GetJsParameter(es, 0)); ltf.SetViewTransparent(t); return(ltf.JsUndefined()); }
public UIClass() { int ww = 864, wh = 662; Rectangle rect = Lib.CenterWindow(ww, wh); ltf = new LTFrameNetClass("LTFrame-Ipad", "Ipad", IntPtr.Zero, Win32DataType.WS_POPUP | Win32DataType.WS_VISIBLE, rect.Left, rect.Top, ww, wh, IntPtr.Zero); ltf.SetViewTransparent(true); ltf.SetAllowKeyDownAutoScroll(false); ltf.loadFile(Lib.GetAppPath + @"./template/ipad/ipad.html"); ltf.EnableDragFrameChangeSize(false); ltf.MessageLoop(); }
public UIClass(string path) { int ww = 864, wh = 662; if (path == "doraemon") { wh = 600; } Rectangle rect = Lib.CenterWindow(ww, wh); ltf = new LTFrameNetClass("LTFrame-transparent", "Transparent", IntPtr.Zero, Win32DataType.WS_POPUP | Win32DataType.WS_VISIBLE, rect.Left, rect.Top, ww, wh, IntPtr.Zero); fn1 = new LTNativeFunction(DragWindowFun); fn2 = new LTNativeFunction(QuitAppFun); fn3 = new LTNativeFunction(MinWindowFun); fn4 = new LTNativeFunction(SetLayerWindowFun); ltf.BindUserFunction("DragWindow", fn1, 1); ltf.BindUserFunction("QuitApp", fn2, 0); ltf.BindUserFunction("MinWindow", fn3, 0); ltf.BindUserFunction("SetLayerWindow", fn4, 1); ltf.loadFile(Lib.GetAppPath + @"./template/" + path + ".html"); ltf.EnableDragFrameChangeSize(false); ltf.SetViewTransparent(true); ltf.MessageLoop(); }