Re: query about adding menu items

  • From: "The Elf" <inthaneelf@xxxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Wed, 8 Jul 2009 14:35:52 -0700

ok, now this is all a surmise, based on VB 6, which is what I am trained in, but I believe if you are in the forms window, and hit control and shift and f2, it will put you in a list of items on the form. if so, you will wish to page up or down in this list to the particular item you wish to write code for, such as "open" or the program "Close" item. after finding the item you want to write code for, tab and you should be in another list of functions that can be associated with that object, such as mouse up, mouse down, key press etc. if all is going well to this point you move up and/or down until you find the event you wish, such as key press, and enter on it you can even add two events, like keypress and left mouse click so you can code for both types of uses.


hit enter on your selected function and this should bring you back to your form, with the new function starting line and "endSub" lines in which you can write the code.

I hope this is close enough to get you there in .net!
you can try searching for menu events and see if that gives you better instructions.

good luck
inthane
proprietor, The Grab Bag,
for blind computer users and programmers
http://grabbag.alacorncomputer.com
Owner: Alacorn Computer Enterprises
"own the might and majesty of a Alacorn!"
www.alacorncomputer.com
Owner: Agemtree
"merchants in fine facetted and cabochon gemstones"
www.agemtree.com
----- Original Message ----- From: "sameer manohtra" <sameermanohtra@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Wednesday, July 08, 2009 5:44 AM
Subject: Re: query about adding menu items


greetings everyone.
well, i'm keeping the thread alive, as i've searched the same from my
sent folder.
last time, before i went for vacations, i've asked that   how  to code
for menu items.
unfortunately, the confusion still persists.
elfe bro, nice, nice post that is, and it has definetly given me a
nice idea how to add menuStrip items, and other items under that
particular menu.
now,  i'm able to create menus in my program like file, edit, view,
insert, tools, etc.
i can even add items under these menus  like new, open, save, or, cut,
copy, paste, etc.
but, the problem is, that i don't understand how to code for these items.
for example, i want that some code should be written inside the item
call new which is situated under file menu which can open a new file.
i know the code, or i can even confirm the same with my instructor, or
you nice intelectuals as well,
but i could never, never understand, that where to write that code?
there is nothing between the private sub MenuStrip1
and
end sub.
means, how to defined, that i want some coding for a menu item called
new, as it is not visible to me in form of any special line.
i know, that why nothing happens when i enter on my menu items while
running the program, but i am sure, that there is only way to make it
activated, and  that's to code something for it.
for sure a program is nothing without coding, but look this pathetic
person, i even don't know where to write that code.
so, please friends, (i think i can call you friends now?)
please help me, my cited counterparts are going forward, but i am not
able to move due to this problem i'm facing.
i know there are many many knoledgable people on this list, as your
intelegent posts always indicates, but please spare a few of your
valuable moments for this guy, so he can also learn  a bit about your
world as you people are already master of this paradise.
hope to see some responses now, i've seen people not replying to my
posts, is there any mistake that i've done?
i said many a times, i'm not that mannered while comes the matter of
these mailing list, as i'm subscribed only and only to one mailing
list that is the same nice family of we all.
appologies for anything unfruitful if you have found in my posts.
ok, not much irritation for you now, signing off.
quriously waiting for your responses,
please, come up,
please?
sameer manohtra.

On 6/27/09, The Elf <inthaneelf@xxxxxxxxxxxxxx> wrote:
ok, I work mainly in VB 6, and know only a little about vb.net, so keep this in mind, I have collected some hints as to using Visual studios with screen
readers

so here is a post that I picked up on visual studios and working with menu
strips:


" 1. Enter the form where you wish the menu strip to be placed. You can do

this by arrowing down in the "Solution Explorer" until your chosen form is

highlighted.  Once it is highlighted press enter.

2. Go to the toolbox and add a menu strip to your form. You can enter the

toolbox in one of two ways.

1.  Press ctrl+alt+x.

2.  Press ctrl+w and then after releasing this key combination press x.

The menu strip control can be found under the group labeled "Menus and

Toolbars".  It may be necessary for you to open this group, if so, after

highlighting the group press the right arrow. When the group is open "Menu

Strip" is the third item down under this group.  Press enter to place the

control on the form.

3.  Highlight the menu strip.  If you just added the menu strip to your

form, and have done nothing else, the menu strip should automatically be

highlighted. If it is not highlighted press tab until you here "Menu Strip

1".

4.  Press your applications key.  This is akin to right clicking the menu

strip.

5.  Arrow down to "Edit Items...", and press enter.

6.  Tab to the combo box where it says:  "Select Item and Add to List

Below".

7. Select the type of item you want to add. The option labeled "Menu Item"

adds a menu item to your menu strip that will become the different menus

such as "File", "Edit", etc.  Then tab once to the "Add" button and press

enter.  The newly added control is now listed in the listbox located just

after the "Add" button and just before the "Remove" button. The newly added

control should be labeled "Tool Strip Menu Item #".  The "#" representing

how many items you've added that have this name.  The last added control

should be automatically selected. You can arrow up and down to be sure of

this.

8. To set the options for the selected control tab three times. You should

find yourself in a list of attributes associated with the selected control.

Set these attributes as best suits your application by selecting the

attribute you wish to change, tab once and select or type the value you

desire for the selected attribute.

*NOTE*

When you first load Visual Studio the list of attributes is grouped by

"Category". However, you may change this organization by tabbing only twice

from your list of controls to "Categorize Button" and left/right arrowing to

"Alphabetical Button".  Your screen reader should inform you which of the

two buttons is currently checked. To check the other one simply press the

spacebar once the appropriate button is highlighted.

9.  (Optional)

If you wish to add menu items beneath the menu you just constructed then

arrow through the list of attributes to "Drop Down Items", and then tab

twice to "Brows..." and press enter.  This will take you into the area to

add and edit items within the menu you've recently added.

10.  Repeat 6-9 until you have things satisfactory for the menu you are

working on. Then tab to "ok" and press enter. This will return you to the

form in stages depending on how many menu levels deep you went

*NOTE*

Every level of a menu works the same as described above. Steps 6-9 can be

followed no

matter the depth of your menus.

HTH,

Eunice "



i Hope this Helps,

inthane

proprietor, The Grab Bag,
for blind computer users and programmers
http://grabbag.alacorncomputer.com
Owner: Alacorn Computer Enterprises
"own the might and majesty of a Alacorn!"
www.alacorncomputer.com
Owner: Agemtree
"merchants in fine facetted and cabochon gemstones"
www.agemtree.com


__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind



__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: