Thread: "Invisible" & sign.

  1. #16
    Registered User
    Join Date
    Mar 2010
    Location
    Denmark
    Posts
    233
    Indeed, as I said in the original post, I'd done that whilst testing, (and for display to some newbies), but it is necessary to remove the duplication before writing to the xml file.

  2. #17
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    Quote Originally Posted by Fossaw View Post
    I don't want to get drawn into a debate here. I will say that I have googled, and searched the online documentation here for a couple of days and the solution was not apparent. The product is being pushed as a beginner tool, and beginners are not good at searching for stuff like this. The product is also making great pains to show it's xml features, where the & symbol is frequently used, (indeed, how I came upon the problem), yet I cannot find it there either.

    We disagree, fair enough.
    True, but think it the other way. If false for mnemonics was the default choice (you have to have a default choice). Then again you would need to search for it. And beginners wouldn't know the term mnemonics which would make searching for it more difficult to achieve the desired operation.
    So these kind of decisions from MS part are not easy. That is why they change things with every new release and there are always complains.
    My personal preference would be to keep it simple for beginners, thus agreeing with you. And enable options to change default parameters, so advance users wouldn't set Mnemonics always true with each label created. But then you have the marketing question. If you set everything simple by default, the new user might not learn its many features and never use them. Now you are encouraged to look upon the many options available.
    So, as expected, I would say that MS has the right policy, not meaning that they do everything right. Even thought I would want a different policy.

    The same goes for other API. I was using QT, for example, and I spent a lot of time trying to figure out how to set the background color of a control exactly the way I want. What it did was to inherit it from a parent control. So I disabled that feature. And again didn't work. I had to change an application variable, sth like an enviromental variable, to make it work the way I want. Impossible to find without searching the internet.

  3. #18
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    Quote Originally Posted by C_ntua View Post
    True, but think it the other way. If false for mnemonics was the default choice (you have to have a default choice). Then again you would need to search for it. And beginners wouldn't know the term mnemonics which would make searching for it more difficult to achieve the desired operation.
    So these kind of decisions from MS part are not easy. That is why they change things with every new release and there are always complains.
    My personal preference would be to keep it simple for beginners, thus agreeing with you. And enable options to change default parameters, so advance users wouldn't set Mnemonics always true with each label created. But then you have the marketing question. If you set everything simple by default, the new user might not learn its many features and never use them. Now you are encouraged to look upon the many options available.
    Also, remember, this is a legacy feature. For the first versions of Windows, it WAS a very good idea to make everything use mnemonics by default, because the first versions were designed to be fully usable to users without a mouse -- which at the time was rare to see in the personal computing world.

    Even today, I'd say for most form elements it's desirable to use mnemonics, because people who will use your program regularly will often find the keyboard to be much faster than the mouse.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

  4. #19
    Registered User
    Join Date
    May 2009
    Posts
    49
    Test to see if its got 7 characters minus the extra &:

    Code:
    if (lblMessage.Text.Replace("&&", "&").Length == 7)
    {
    // code if true goes here
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sign ' is the same as \' ?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 11-23-2007, 07:32 AM
  2. My own itoa()
    By maxorator in forum C++ Programming
    Replies: 18
    Last Post: 10-15-2006, 11:49 AM
  3. Handle on MSN Messenger's Sign In "button"?
    By jmd15 in forum Windows Programming
    Replies: 3
    Last Post: 07-16-2005, 09:28 PM
  4. How to detect change in sign?
    By bugsmashers in forum C++ Programming
    Replies: 16
    Last Post: 02-20-2005, 07:27 PM
  5. Sign Up!: The Third Round, both contests
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 54
    Last Post: 07-20-2002, 05:46 PM