[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] Menu works incorrectly when form window is maximized
From: |
David Logan |
Subject: |
[Pnet-developers] Menu works incorrectly when form window is maximized |
Date: |
Fri, 14 May 2004 06:44:40 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040316 |
Here is another one. When you have a form window, and you select a menu
item, you get a dropdown menu underneath the menu item you selected. If
you maximize the window, the dropdown menus appear where the menu (and
its items) used to be before the window was maximized. Below is just the
test program I used. Test it by firing up the program, move the window
somewhere to the middle or lower part of your desktop, select the menu
item. Then maximize the window, and select the menu item again.
David Logan
using System;address@hidden temp]$ cscc -winforms -o t2.exe t2.cs
address@hidden temp]$ ilrun t2.exe
using System.Drawing;
using System.Windows.Forms;
class BannerForm:Form {
private MainMenu mainMenu;
public BannerForm() {
mainMenu = new MainMenu();
MenuItem File = mainMenu.MenuItems.Add("&File");
File.MenuItems.Add(new MenuItem("&New",new
EventHandler(FileNew_clicked),Shortcut.CtrlN));
File.MenuItems.Add(new MenuItem("-"));
File.MenuItems.Add(new MenuItem("&Exit",new
EventHandler(FileExit_clicked),Shortcut.CtrlX));
Menu=mainMenu;
}
private void FileExit_clicked(object sender, EventArgs e)
{
Close();
}
private void FileNew_clicked(object sender, EventArgs e)
{
}
}
class BannerHello {
public static void Main(String[] args) {
BannerForm bf = new BannerForm();
Application.Run(bf);
}
}
- [Pnet-developers] Menu works incorrectly when form window is maximized,
David Logan <=