473,396 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

UI commands, hint text in status bar when selecting menu items

I am almost longing for MFC (no, not really, but a couple of things seem to
be less powerfull in Windows.Forms).

One is updating menu item status. Having commands separated from the UI
thingies that invokes them and event handlers for updating the command's
status was very convenient. I don't see this in Windows.Forms and this seems
like a step back.

Another related issue is help text in the status bar when the user wanders
through menu items. I would go as far as implementing Select event handlers
for each item but I see no decent way to clear the help text when the item
is deselected or the menu disappears.

I found System.Web.UI.MobileControls.Command which seems to cover what I
want but this is a whole different namespace, I want something like this for
Windows.Forms.

I would like to here from people who have been struggling with these isues
too and learn how they worked around them.

Regards, Martin.
Nov 16 '05 #1
2 1928
Hi Martin,
Take a look at this article
http://msdn.microsoft.com/msdnmag/is...andManagement/

It explain how to use the Command pattern precisely for this.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Martin Maat" <du***@somewhere.nl> wrote in message
news:10*************@corp.supernews.com...
I am almost longing for MFC (no, not really, but a couple of things seem to be less powerfull in Windows.Forms).

One is updating menu item status. Having commands separated from the UI
thingies that invokes them and event handlers for updating the command's
status was very convenient. I don't see this in Windows.Forms and this seems like a step back.

Another related issue is help text in the status bar when the user wanders
through menu items. I would go as far as implementing Select event handlers for each item but I see no decent way to clear the help text when the item
is deselected or the menu disappears.

I found System.Web.UI.MobileControls.Command which seems to cover what I
want but this is a whole different namespace, I want something like this for Windows.Forms.

I would like to here from people who have been struggling with these isues
too and learn how they worked around them.

Regards, Martin.

Nov 16 '05 #2
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:Or**************@TK2MSFTNGP11.phx.gbl...

Take a look at this article
http://msdn.microsoft.com/msdnmag/is...andManagement/

It explains how to use the Command pattern precisely for this.


Indeed, just what I need. Thank you.

Martin.
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: piperzen | last post by:
Hi, I'm developing a set of language learning exercises for http://www.yale.edu/swahili , and we've run into a javascript question that the programmer doesn't know how to tackle (we mostly work...
17
by: Christopher Nelson | last post by:
I have a menu tree made up of anchors inside list items in a multi-level list that includes HTML like: <ul id='xx'> <li><a href='conf.cgi' class='menu' target='main' title='Configure stuff'...
1
by: xtra | last post by:
Hi Folk I have written a module that allows you to type a bunch of commands in the immediate window, for quick access to information when you are creating VB code. Here it is, it may be helpful...
0
by: Arnold the Aardvark | last post by:
I want to put text in the status bar corresponding to the currently highlighted menu item. This seems simple enough: implement the Select event for each menu item (a bit tedious, though). The...
0
by: Brian Henry | last post by:
I thought this was useful, its a extender i just wrote for the new .NET menu strip and status strip to extend the menu items to add a status message so when a mouse rolls over the item it displays...
12
by: tim | last post by:
I am using foldoutmenu 3 and am having problems with viewing my menus in firefox. On my sub3 menus i have more than one line of text in some places. firefox does not recognise that there is more...
7
by: joecap5 | last post by:
I have a main window from which I want to open a separate side menu window. I then want to create a list of items on that side menu by clicking on the item names in the main window. So far I am...
0
by: JosAH | last post by:
A Simple Text-Based Menu System Read this this post; there are numerous posts like that: a newbie struggling with some sort of menu implementation. They want nested menus of course and an option...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.