Esempio n. 1
0
        private static void ViewSetup()
        {
            // append to master CSS
            string css = "::mark(omni-hilite) { background-color: lime; } ::mark(omni-hiactual) { background-color: #2c63cb; color: white; }";

            byte[] cssbytes = Encoding.UTF8.GetBytes(css);
            SciterX.API.SciterAppendMasterCSS(cssbytes, (uint)cssbytes.Length);
            //SciterX.Use3264DLLNaming

            // access elements
            g_el_root      = App.AppWindow.RootElement;
            g_el_frameroot = g_el_root.SelectFirstById("frameph");
            g_el_frameroot.AttachEvh(Host.FrameEvh);
            g_el_homeroot = g_el_root.SelectFirstById("frame-home");
            g_el_homeroot = g_el_homeroot[0];

            DOMTree.Setup();
        }