Results 1 to 6 of 6

Thread: Need GUI help WM5

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2007
    Posts
    31

    Need GUI help WM5

    I am not a very experienced programmer. I only wrote this program to work with our demo car. It works fine for "demo" world, but is far from production quality. Some of the people in the office want to see it dressed up a bit (viually), but I am clueless as to how to program "neat" graphics. How can I make the buttons more aesthetically pleasing? Do they use flash or something? Are there any examples availble? This is a pic of the program in current form. The black box covers our company logo for privacy reasons.


  2. #2
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614

    Re: Need GUI help WM5

    There are programmers and there are designers. Often these are not the same person because they have different talent focuses. I suggest getting input from a designer.

    Having said that - as a developer, you can do a bit such as make your buttens a bit more rounded, add hover-over affects, add some color, etc. Based on what it appears you are doing, I'd suggest creating a form and buttons that look like a car remote.... but then, I'm not a designer

    Brad!

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Sep 2007
    Posts
    31

    Re: Need GUI help WM5

    Quote Originally Posted by brad jones
    There are programmers and there are designers. Often these are not the same person because they have different talent focuses. I suggest getting input from a designer.

    Having said that - as a developer, you can do a bit such as make your buttens a bit more rounded, add hover-over affects, add some color, etc. Based on what it appears you are doing, I'd suggest creating a form and buttons that look like a car remote.... but then, I'm not a designer

    Brad!
    I'm not bad at designing either and that is basically what I would do, but I dont even know how to make a button that isnt a square or can I make an image a button?

  4. #4
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614

    Re: Need GUI help WM5

    Quote Originally Posted by aberk
    I'm not bad at designing either and that is basically what I would do, but I dont even know how to make a button that isnt a square or can I make an image a button?

    I'm not sure of the functionality available with the mobile framework. Some buttons will allow you to put an image on them. Alternatively, if you capture the "on click" event on an image, then you can treat an image like a button.... Again, however, I don't know what is available on mobile. This is true for web/desktop apps.

  5. #5
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614

    Re: Need GUI help WM5

    I took 10 minutes during a phone meeting and messed with a mobile device app. You can create an image and capture the click event easily in a mobile applicaton. I did the following in that 10 minutes (Note I don't design, but only hack in Paint ). The two lower items are images that could be anything you can have drawn.



    Form1.designer.cs
    vb.net Code:
    1. namespace TestForSiteMobile
    2. {
    3.     partial class Form1
    4.     {
    5.         /// <summary>
    6.         /// Required designer variable.
    7.         /// </summary>
    8.         private System.ComponentModel.IContainer components = null;
    9.         private System.Windows.Forms.MainMenu mainMenu1;
    10.  
    11.         /// <summary>
    12.         /// Clean up any resources being used.
    13.         /// </summary>
    14.         /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
    15.         protected override void Dispose(bool disposing)
    16.         {
    17.             if (disposing && (components != null))
    18.             {
    19.                 components.Dispose();
    20.             }
    21.             base.Dispose(disposing);
    22.         }
    23.  
    24.         #region Windows Form Designer generated code
    25.  
    26.         /// <summary>
    27.         /// Required method for Designer support - do not modify
    28.         /// the contents of this method with the code editor.
    29.         /// </summary>
    30.         private void InitializeComponent()
    31.         {
    32.             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
    33.             this.mainMenu1 = new System.Windows.Forms.MainMenu();
    34.             this.btnConnect = new System.Windows.Forms.Button();
    35.             this.btnUnlock = new System.Windows.Forms.Button();
    36.             this.pboxlock = new System.Windows.Forms.PictureBox();
    37.             this.label1 = new System.Windows.Forms.Label();
    38.             this.pboxUnlock = new System.Windows.Forms.PictureBox();
    39.             this.SuspendLayout();
    40.             //
    41.             // btnConnect
    42.             //
    43.             this.btnConnect.Location = new System.Drawing.Point(59, 17);
    44.             this.btnConnect.Name = "btnConnect";
    45.             this.btnConnect.Size = new System.Drawing.Size(117, 37);
    46.             this.btnConnect.TabIndex = 0;
    47.             this.btnConnect.Text = "Connect";
    48.             //
    49.             // btnUnlock
    50.             //
    51.             this.btnUnlock.Location = new System.Drawing.Point(59, 60);
    52.             this.btnUnlock.Name = "btnUnlock";
    53.             this.btnUnlock.Size = new System.Drawing.Size(117, 37);
    54.             this.btnUnlock.TabIndex = 1;
    55.             this.btnUnlock.Text = "Unlock";
    56.             //
    57.             // pboxlock
    58.             //
    59.             this.pboxlock.Image = ((System.Drawing.Image)(resources.GetObject("pboxlock.Image")));
    60.             this.pboxlock.Location = new System.Drawing.Point(37, 103);
    61.             this.pboxlock.Name = "pboxlock";
    62.             this.pboxlock.Size = new System.Drawing.Size(173, 63);
    63.             this.pboxlock.Click += new System.EventHandler(this.pboxlock_Click);
    64.             //
    65.             // label1
    66.             //
    67.             this.label1.Location = new System.Drawing.Point(37, 248);
    68.             this.label1.Name = "label1";
    69.             this.label1.Size = new System.Drawing.Size(187, 20);
    70.             this.label1.Text = "label1";
    71.             //
    72.             // pboxUnlock
    73.             //
    74.             this.pboxUnlock.Image = ((System.Drawing.Image)(resources.GetObject("pboxUnlock.Image")));
    75.             this.pboxUnlock.Location = new System.Drawing.Point(37, 172);
    76.             this.pboxUnlock.Name = "pboxUnlock";
    77.             this.pboxUnlock.Size = new System.Drawing.Size(173, 68);
    78.             this.pboxUnlock.Click += new System.EventHandler(this.pboxUnlock_Click_1);
    79.             //
    80.             // Form1
    81.             //
    82.             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
    83.             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
    84.             this.AutoScroll = true;
    85.             this.ClientSize = new System.Drawing.Size(240, 268);
    86.             this.Controls.Add(this.pboxUnlock);
    87.             this.Controls.Add(this.label1);
    88.             this.Controls.Add(this.pboxlock);
    89.             this.Controls.Add(this.btnUnlock);
    90.             this.Controls.Add(this.btnConnect);
    91.             this.Menu = this.mainMenu1;
    92.             this.Name = "Form1";
    93.             this.Text = "Form1";
    94.             this.ResumeLayout(false);
    95.  
    96.         }
    97.  
    98.         #endregion
    99.  
    100.         private System.Windows.Forms.Button btnConnect;
    101.         private System.Windows.Forms.Button btnUnlock;
    102.         private System.Windows.Forms.PictureBox pboxlock;
    103.         private System.Windows.Forms.Label label1;
    104.         private System.Windows.Forms.PictureBox pboxUnlock;
    105.     }
    106. }

    Form1.cs
    vb.net Code:
    1. using System;
    2. using System.Linq;
    3. using System.Collections.Generic;
    4. using System.ComponentModel;
    5. using System.Data;
    6. using System.Drawing;
    7. using System.Text;
    8. using System.Windows.Forms;
    9.  
    10. namespace TestForSiteMobile
    11. {
    12.     public partial class Form1 : Form
    13.     {
    14.         public Form1()
    15.         {
    16.             InitializeComponent();
    17.         }
    18.  
    19.         private void pboxlock_Click(object sender, EventArgs e)
    20.         {
    21.             label1.Text = "locked";
    22.         }
    23.  
    24.         private void pboxUnlock_Click_1(object sender, EventArgs e)
    25.         {
    26.             label1.Text = "unlocked";
    27.         }
    28.     }
    29. }
    Attached Images Attached Images  

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Sep 2007
    Posts
    31

    Re: Need GUI help WM5

    Thanks!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width