RobotStudio event

Bitmap not shown on menu item/cmdbutton

Options

Hi,

who can give me an advise concerning pictures on commandbar/menuitems ?

i have written a menu to navigate through a list by means of a command bar, using a menutiem "forward", "backward" and one for "home". Putting a picture onto them results in not showing them, except when i use a very small bitmap (e.g. 10 by 24 pixels). Also it is not possible to create the pictures using MS Paint.Net (or i do not know how). For example i used an arrow icon, which was displayed correctly on an item, edited and saved it with a new name and then put it on another menuitem. Now it is not displayed anymore (even if it has the same properties as the original bitmap).

Here is the code:

        private ABB.Robotics.Tps.Windows.Forms.MainMenu mnuMainMenu;
        private ABB.Robotics.Tps.Windows.Forms.MenuItem mniForward;
        private ABB.Robotics.Tps.Windows.Forms.MenuItem mniBackward;
        private ABB.Robotics.Tps.Windows.Forms.MenuItem mniEmpty;
        private ABB.Robotics.Tps.Windows.Forms.MenuItem mniHome;
        private CommandBar cmdBar;
        :
        this.mnuMainMenu = new ABB.Robotics.Tps.Windows.Forms.MainMenu();
        this.mniBackward = new ABB.Robotics.Tps.Windows.Forms.MenuItem();
        this.mniForward = new ABB.Robotics.Tps.Windows.Forms.MenuItem();
        this.mniHome = new ABB.Robotics.Tps.Windows.Forms.MenuItem();
        this.mniEmpty = new ABB.Robotics.Tps.Windows.Forms.MenuItem();
        :
        this.mniBackward.Text = "";
        this.mniBackward.Image = (System.Drawing.Image)this.rsmResourceManager.GetImage("Left Arrow.bmp");
        this.mniBackward.Enabled = true;
        this.mniBackward.Click += new EventHandler(mniBackward_Click);
        this.mniHome.Text = "";
        this.mniHome.Image = (System.Drawing.Image)this.rsmResourceManager.GetImage("Home .bmp");
        this.mniHome.Enabled = true;
        this.mniHome.Click += new EventHandler(mniHome_Click);
        :
        this.mnuMainMenu.MenuItems.Add(this.mniBackward);
        this.mnuMainMenu.MenuItems.Add(this.mniEmpty);
        this.mnuMainMenu.MenuItems.Add(this.mniHome);
        this.mnuMainMenu.MenuItems.Add(this.mniForward);
        this.cmdBar = new CommandBar();
        this.cmdBar.Font = TpsFont.Font12b;
        this.cmdBar.Location = new System.Drawing.Point(0, 325);
        this.cmdBar.Size = new System.Drawing.Size(640, 40);
        this.cmdBar.Menu = this.mnuMainMenu;
        this.cmdBar.Enabled = true;

This result in displaying the arrow on the backward item and nothing is displayed at the main item. The icons are given by means of a resource file.

The same happens when trying to display the bitmap as a picture on a command button (from ABB).

The bitmaps are attached to this post...

Thanks ahead.

2006-06-20_080541_Pic.zip