Exemplo n.º 1
0
		public static void ApplyTemplate( HtmlPlus html, Template t )
		{
			if ( (int)t == -1 )
				return;

			ButtonTemplate template = (ButtonTemplate)s_Templates[t];

			html.X = html.X + template.TextXOffset;
			html.Y = html.Y + template.TextYOffset;
		}
Exemplo n.º 2
0
        public static void ApplyTemplate(HtmlPlus html, Template t)
        {
            if ((int)t == -1)
            {
                return;
            }

            ButtonTemplate template = (ButtonTemplate)s_Templates[t];

            html.X = html.X + template.TextXOffset;
            html.Y = html.Y + template.TextYOffset;
        }
Exemplo n.º 3
0
        public void AddTemplateButton(int x, int y, int w, Template t, string name, string text, TimerStateCallback callback, object arg, bool over)
        {
            int id = UniqueButton();

            ButtonPlus button = new ButtonPlus(x, y, 0x0, 0x0, id, name, callback, arg);

            button.Template = t;
            Add(button);
            c_Buttons[id] = button;

            HtmlPlus html = new HtmlPlus(x, y, w, 21, text, false, false, over);

            html.Template = t;
            Add(html);

            ButtonTemplate.ApplyTemplate(button, html, t);
        }
Exemplo n.º 4
0
 public static void ApplyTemplate(ButtonPlus button, HtmlPlus html, Template t)
 {
     ApplyTemplate(button, t);
     ApplyTemplate(html, t);
 }
Exemplo n.º 5
0
		public void AddHtml( int x, int y, int width, int height, string text, bool back, bool scroll, bool over )
		{
			HtmlPlus html = new HtmlPlus( x, y, width, height, text, back, scroll, over );

			Add( html );
		}
Exemplo n.º 6
0
		public void AddTemplateButton( int x, int y, int w, Template t, string name, string text, TimerStateCallback callback, object arg, bool over )
		{
			int id = UniqueButton();

			ButtonPlus button = new ButtonPlus( x, y, 0x0, 0x0, id, name, callback, arg );
			button.Template = t;
			Add( button );
			c_Buttons[id] = button;

			HtmlPlus html = new HtmlPlus( x, y, w, 21, text, false, false, over );
			html.Template = t;
			Add( html );

			ButtonTemplate.ApplyTemplate( button, html, t );
		}
Exemplo n.º 7
0
		public static void ApplyTemplate( ButtonPlus button, HtmlPlus html, Template t )
		{
			ApplyTemplate( button, t );
			ApplyTemplate( html, t );
		}
Exemplo n.º 8
0
        public void AddHtml(int x, int y, int width, int height, string text, bool back, bool scroll, bool over)
        {
            HtmlPlus html = new HtmlPlus(x, y, width, height, text, back, scroll, over);

            Add(html);
        }