473,511 Members | 12,087 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

auto generating mnemonics

i have a problem auto-assigning mnemonics when dynamicly generating menues.

in some cases, two memorie entries get the same mnemonic key assigned
because the words begin with the same letter. this means, that they are more
or less useless

does anyone have an algorithm or some kind of code i can use to make sure
the mnemonic keys are unique when auto-assigning them

thank's!
Nov 17 '05 #1
2 2037
Lukas,

You could keep a list of the keys used, and then check the second letter
when you see that a key is used already. If it isn't used, then use that
letter, and so on, and so on.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Lukas Meusburger" <Lu**************@hotmail.com(undsoweiter)> wrote in
message news:17**********************************@microsof t.com...
i have a problem auto-assigning mnemonics when dynamicly generating menues.

in some cases, two memorie entries get the same mnemonic key assigned
because the words begin with the same letter. this means, that they are
more
or less useless

does anyone have an algorithm or some kind of code i can use to make sure
the mnemonic keys are unique when auto-assigning them

thank's!

Nov 17 '05 #2
Nicholas,
I thought of that too, but what if I insert some Menues manually between the
generating. I guess it will mess up my whole list.
Doesn't anyone of you have a working script that i could implement?

thank's!
lukas

"Nicholas Paldino [.NET/C# MVP]" wrote:
Lukas,

You could keep a list of the keys used, and then check the second letter
when you see that a key is used already. If it isn't used, then use that
letter, and so on, and so on.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Lukas Meusburger" <Lu**************@hotmail.com(undsoweiter)> wrote in
message news:17**********************************@microsof t.com...
i have a problem auto-assigning mnemonics when dynamicly generating menues.

in some cases, two memorie entries get the same mnemonic key assigned
because the words begin with the same letter. this means, that they are
more
or less useless

does anyone have an algorithm or some kind of code i can use to make sure
the mnemonic keys are unique when auto-assigning them

thank's!


Nov 17 '05 #3

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

Similar topics

0
1376
by: Fred | last post by:
Hi, I'm currently checking out what's available to add an auto-update feature à la Yahoo/MSN to our Windows applications written in VB. Those that I checked so far require generating a list...
11
2767
by: csomberg | last post by:
SQL 2000 I thought I would throw this out there for some feedback from others. I'd like to know if you feel using MS auto-increment field is a good solution these days or should one grow their...
5
2589
by: Psych971 | last post by:
Hi, I'm wondering how I can generate a postback using javascript on a page that does not have any controls with the auto-postback property set to true. I know I can just use the submit() function...
2
2126
by: bubblegirl | last post by:
Hi, I need help in getting this database to work well (user-friendly) by generating auto client ID. The ID is NOT the auto number that Access automatically create when there is no primary key. ...
1
1541
markmcgookin
by: markmcgookin | last post by:
Is it possible to add mnemonics to a menu defined using the java.awt? i.e. File Ctrl+F
1
1463
by: gauravtechie | last post by:
Hi all, I have a javascript that is reloading itself on every menu change, Now the problem is that the values of the product doesn`t reset itself on catalogue change, the code is <html>...
0
1512
by: Oleg Ogurok | last post by:
Hi there, I have a WPF combobox with two values "Male" and "Female". It seems by default the control supports mnemonics, e.g. if I press "M" on keyboard, it sets the current ComboBoxItem to...
4
1946
by: mike1reynolds | last post by:
I have a VirtualMode DataGridView that bogs down on using the mouse wheel to scroll and gets a backlog of messages such that it continues to scroll long after ceasing to turn the mouse wheel. This is...
3
2710
by: Iluvatar | last post by:
Hi, last week our project upgraded from vs.net 2005 to vs.net 2008. Our project still uses framework 2.0, because the deployment servers are not 3.x ready yet. Everything so far while migrating...
0
7356
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
7427
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...
1
7085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7512
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5069
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
449
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.