Esempio n. 1
0
        private void Init()
        {
            HBox locbar = new HBox();

            locbar.y = 2;
            Style.SetConstraints(locbar, Constraint.LR, 3);

            Label l = new Label();

            l.text = "URL:";
            locbar.addChild(l);

            urlInput = new TextInput();
            urlInput.percentWidth = 100;
            urlInput.keyDown     += urlInput_keyDown;
            locbar.addChild(urlInput);

            addChild(locbar);

            tabs = new TabNavigator();
            Style.SetConstraints(tabs, Constraint.Top, 28);
            Style.SetConstraints(tabs, Constraint.LRB, 3);
            addChild(tabs);
        }