473,396 Members | 2,009 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.

How do I approach this (want tips before buliding, a keypressing thing)?

I want to build a Function for users to be able to Choose some shortcut
combinations themselves.. for example, I provide the function they can
choose the combination of keys in some kind of userinteerface.

When clickign a little bit about this on keys I see that Having IF statments
with KeyCode and KeyData things I don't really understand how to Convert the
Value (I guess free text) the user chooses into something that will work in
an IF statment..

Any tips or thoughts on this?

/Lars Netzel
Nov 20 '05 #1
2 890
* "Lars Netzel" <[stop_spam]@host.topdomain> scripsit:
I want to build a Function for users to be able to Choose some shortcut
combinations themselves.. for example, I provide the function they can
choose the combination of keys in some kind of userinteerface.

When clickign a little bit about this on keys I see that Having IF statments
with KeyCode and KeyData things I don't really understand how to Convert the
Value (I guess free text) the user chooses into something that will work in
an IF statment..


Add a menu with a shortcut. Then hide the menu bar.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
You have answered the same way on another thread I think...:)

No, I mean... how do I Convert the way the user CHOOSES what combination he
wants.. into the IF check in the KeyPress or KeyDown .. Since the Menu do
not support ALT keys and I need to use that..

I need the User to Type in for example "ALT + A" in text field or
something.. and then use that information in an IF check somehow... But the
Check needs to be dynamic since the User might as well have been Typeing in
"ALT + Z" instead..

Not many seems to do this in here... but you see it it many of the bigger
applications so there has to be a good way of doing this

/Lars
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> skrev i meddelandet
news:2j*************@uni-berlin.de...
* "Lars Netzel" <[stop_spam]@host.topdomain> scripsit:
I want to build a Function for users to be able to Choose some shortcut
combinations themselves.. for example, I provide the function they can
choose the combination of keys in some kind of userinteerface.

When clickign a little bit about this on keys I see that Having IF statments with KeyCode and KeyData things I don't really understand how to Convert the Value (I guess free text) the user chooses into something that will work in an IF statment..


Add a menu with a shortcut. Then hide the menu bar.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #3

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

Similar topics

4
by: Scott Marquardt | last post by:
My SQL acumen stems from just a couple courses, and everything since from the trenches. Fun + angst over time. I'm needing some advice on joins. Though I understand the basics, I'm having...
2
by: Deano | last post by:
OK, I've been taking the detour from hell trying to sort this and after taking a walk I think I need a rethink. I have a report for a single employee that includes a subreport which lists...
2
by: alan | last post by:
Hi all, I have create a simple function and make a pure C dll. When I use this DLL from my main program, I found I cannot see this function's definition tips (yellow box). It works fine, but no...
1
by: Mr Gordonz | last post by:
Hi All, I am building a site that will be used by different types of users, and each type of user will do similar, but substantially different, things. My question is a general one: what is the...
4
by: Dave (DreamIsle) | last post by:
I can't figure out why my keypress script is not working. I used the following code: document.onkeypress = KeyCheck; function KeyCheck(e) { var KeyID = (window.event) ? event.keyCode :...
16
by: Dotnet | last post by:
I want to so the "right thing". But first, I have a confession to make. I've built a few ASP.NET sites now (Version 2.0), and they all work fine. However, I have (and here's the confession) used...
14
by: Rex | last post by:
Re: Looking for Tips/Writeup on overall approach to Exception Processing Hi All - I am fairly new to C# and am wondering how to best implement (overall) Exception Processing within my...
20
by: mike3 | last post by:
Hi. (Xposted to both comp.lang.c++ and comp.programming since I've got questions related to both C++ language and general programming) I've got the following C++ code. The first routine runs in...
0
by: Mogrin | last post by:
So I have this windows .net form app, and I have the following goals: -Needs to be 1 single file, the executable, in any directory the user decides to download it to. No installation folder, no...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...

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.