/// <summary>
        /// #0 Called when the screen is constructed
        /// </summary>
        /// <param name="platform"></param>
        public override void init(IPlatform platform)
        {
            menu           = new aceMenu();
            menu.menuTitle = "Welcome menu";
            menu.setItems(this);

            messageSection                 = new smartMessageSection(messageTitle, message, platform.height, platform.width, 2, 2);
            messageSection.height          = 17;
            messageSection.margin.top      = 3;
            messageSection.margin.bottom   = 1;
            messageSection.padding.bottom  = 1;
            messageSection.doInverseColors = false;
            messageSection.backColor       = platformColorName.Black;
            messageSection.foreColor       = platformColorName.Gray;

            menuSection                 = new smartMenuSection(menu, platform.height, platform.width, 2, 1);
            menuSection.renderView      = textInputMenuRenderView.inlineKeyListGroup;
            menuSection.doShowTitle     = false;
            menuSection.doInverseColors = false;
            menuSection.padding.top     = 1;
            menuSection.padding.bottom  = 1;
            menuSection.backColor       = platformColorName.White;
            menuSection.foreColor       = platformColorName.Blue;

            menuSection.setStyle(textSectionLineStyleName.itemlinst);


            messageSection.setAttachment(menuSection);


            layout.addLayer(messageSection, layerBlending.transparent, 50);
        }
Esempio n. 2
0
        /// <summary>
        /// Dijalog kojim se edituju propertiji nekog objekta. Podrzava paginaciju
        /// </summary>
        /// <param name="platform">Platforma na kojoj se prikazuje dijalog</param>
        /// <param name="targetObject">Objekat koi se edituje</param>
        public dialogMessageBoxWithOptions(IPlatform platform, String title, String description, IEnumerable <T> options)
            : base(platform)
        {
            layoutTitleMessage  = title;
            layoutStatusMessage = description;

            init(platform);
            // Definicija izgleda ovog dijaloga
            dialogFormatSettings format = new dialogFormatSettings(dialogStyle.redDialog, dialogSize.messageBox);

            // Primenjuje pravila formatiranja
            format.apply(this, platform);
            backgroundDecoration = "=";
            writeBackground(null, true);

            //var titleDiv = new smartMessageSection(title, description, height, width, 2, 2);

            //titleDiv.setStyle(textSectionLineStyleName.heading);

            var menu = new aceMenu();

            menu.setItems(options);

            var menuDiv = new smartMenuSection(menu, this, textInputMenuRenderView.inlineKeyListGroup);

            menuDiv.doShowValueRemarks = false;
            menuDiv.doShowTitle        = false;
            menuDiv.doShowRemarks      = false;
            header.setAttachment(menuDiv);

            //   titleDiv.setAttachment(menuDiv);

            // addLayer(titleDiv, layerBlending.transparent, 100);
        }
Esempio n. 3
0
        protected virtual void init(IAceComponent component)
        {
            commands = new aceMenu();
            commands.setItems(this, component);

            Type consoleType = this.GetType();

            output           = new builderForLog(consoleType.Name + "_output", false);
            response         = new builderForLog(consoleType.Name + "_response", false);
            consoleIsRunning = true;
        }