Re: [Mono-list] popup a menu again
EventBox eventBox = new EventBox(); Label labelPopup = new Label("Click here to show a popup menu"); eventBox.ButtonPressEvent += new ButtonPressEventHandler(OnLabelPopupClick); eventBox.Add(labelPopup); popupMenu = new Menu(); MenuItem menuPopup1 = new MenuItem("Popup item 1"); MenuItem menuPopup2 = new MenuItem("Popup item 2"); MenuItem menuPopup3 = new MenuItem("Popup item 3"); popupMenu.Add(menuPopup1); popupMenu.Add(menuPopup2); popupMenu.Add(menuPopup3); -- private void OnLabelPopupClick (object sender, ButtonPressEventArgs args) { //TODO: check if the pressed button == right mouse button, you probably need to check args.Button popupMenu.Popup(null, null, null, IntPtr.Zero, args.Event.Button, args.Event.Time); popupMenu.ShowAll(); } -- something like this should do the trick On Mon, 17 Jan 2005 11:46:50 +1100, roy <[EMAIL PROTECTED]> wrote: > > I really want to popup a menu when right click the label using mono on > lunix, can you help me, give me a example. thanks > roy ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] popup a menu again
I really want to popup a menu when right click the label using mono on lunix, can you help me, give me a example. thanks roy
[Mono-list] Re: mono/amd64 and nemerle
On Thu, 13 Jan 2005 11:45:43 +0100, Zoltan Varga <[EMAIL PROTECTED]> wrote: > Hi, > >The amd64 port should be on the same level as the x86 port. Any > difference is a > bug which can be reported. Thanks for fixing all the three bugs. Nemerle compiler boots now on amd64! There is some other issue with checked/unchecked in the testsuite, that I'm going to investigate tomorrow. If somebody's interested in performance numbers, then compiling Nemerle.Compiler.dll using 64 bit version of mono takes around 16s while compiling it on the same machine using 32 bit mono -- it takes 13s. I think that the one of the reasons 64bit version is slower could be cache cluttering -- there are lots of pointers in objects we use in the compiler, so some of the objects get twice as big. The top RSS size in 32 bit mode is 89M, while in 64 bit mode 117M. > On Thu, 13 Jan 2005 00:39:25 +0100, Michal Moskal > <[EMAIL PROTECTED]> wrote: [...] > > I would just report this to bugzilla, but while it seems simple to fix > > (just some left over) there are probably many more such issues, so I > > would like to ask first -- how far is the amd64 port? [...] -- : Michal Moskal :: http://nemerle.org/~malekith/ :: GCS !tv h e>+++ b++ : No, I will *not* fix your computer :: UL$ C++ E--- a? ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Configure with ICU?
Hello, > I've installed ICU as recommended by the README, but when I do a > /configure for Mono (1.0.5) it still tells me that it can't find ICU. > I notice that the prefix in which I installed ICU doesn't have a > lib/pkgconfig like all the other dependencies I've installed so far. > What directory would have what mono needs? And what argument should I > pass to the configure script (or what environment variable should I > change) to reflect that? We are actively looking for an ICU replacement for Mono. Our attempts to use ICU for string collation are far from perfect: the semantics of the .NET framework differ from the ICU ones, and to make things worse, we get a few things wrong anyways, so in Mono 1.1.xx we have disabled ICU as the default. In short, I would not worry too much about it. Miguel. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] mono gc logging
Hey everyone, is there a way for mono to give me a log of the gc, just like java, with the timestamp of when it woke up and how much it collected? I know of the MONO_LOG_LEVEL="debug" but that is not the kind of output I'm looking for. - Rafael ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] ANN: Cuyahoga web site framework works with Mono
Hi all I'm very pleased to announce that from today, the Cuyahoga web site framework runs on Mono. Cuyahoga is a framework that consists of a core that enables you to manage the site structure, authorization and templates. The actual content is managed by separate modules, more or less comparable with DotNetNuke, Rainbow Portal and the IBuySpy Portal. The main goal of the project is to show .NET developers that there is a different way of building web applications than the well known sample applications. For example, all persistance is handled by NHibernate which reduced the amount of code drastically. You can go and check it out at http://www.martijnboland.com/cuyahoga. To build it on Mono you need a recent working 0.85 version of NAnt and follow the installation instructions for building with NAnt. The current version is tested with Mono 1.1.3 on Fedora Core 2 and PostgreSQL 7.4.1 as database but I think it will also run on Mono 1.0.x (that is, if you manage to get NAnt 0.85 working on it, which I didn't). Martijn ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list