Exemplo n.º 1
0
        public UIClass()
        {
            int       ww = 700, wh = 500;
            Rectangle rect = Lib.CenterWindow(ww, wh);

            ltf = new LTFrameNetClass("LTFrame-Canvas", "Localstorage", IntPtr.Zero, Win32DataType.WS_POPUP | Win32DataType.WS_VISIBLE, rect.Left, rect.Top, ww, wh, IntPtr.Zero);
            ltf.BindUserFunction("DragWindow", DragWindowFun, 1);
            ltf.BindUserFunction("QuitApp", QuitAppFun, 0);
            ltf.BindUserFunction("MinWindow", MinWindowFun, 0);
            ltf.SetLocalStoragePath(null);
            ltf.SetWebSqlPath(null);
            ltf.loadFile(Lib.GetAppPath + @"./template/localstorage.html");
            ltf.EnableDragFrameChangeSize(false);
            ltf.MessageLoop();
        }