Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. "Shift+Delete" and "Ctrl+X"

"Shift+Delete" and "Ctrl+X"

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorialquestion
10 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 7987467
    wrote on last edited by
    #1

    we developed a c++ application which its GUI uses default toolbar buttons (cut, copy, paste). It's strange same executable running on some PCs when user uses mouse hovering on the cut button, the tooltip displays as Cut (Ctrl+X); on some other PCs the tooltip displays as Cut (Shift+Delete). Does anyone know the reason and how to fix it? Since Shift+Delete doesn't do real cut. Thanks

    L T 2 Replies Last reply
    0
    • U User 7987467

      we developed a c++ application which its GUI uses default toolbar buttons (cut, copy, paste). It's strange same executable running on some PCs when user uses mouse hovering on the cut button, the tooltip displays as Cut (Ctrl+X); on some other PCs the tooltip displays as Cut (Shift+Delete). Does anyone know the reason and how to fix it? Since Shift+Delete doesn't do real cut. Thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You developed it, so you need to look at the source code and find out why the menu or the tooltips are different.

      U 1 Reply Last reply
      0
      • L Lost User

        You developed it, so you need to look at the source code and find out why the menu or the tooltips are different.

        U Offline
        U Offline
        User 7987467
        wrote on last edited by
        #3

        As I said in the post the "cut, copy, paste" toolbar buttons are default ones, the tooltip for "Cut" is "Cut the selection and put it on the Clipboard\nCut" was not added by our application. Don't understand why this "Cut" button's tooltip displays differently on different PCs, some PCs show "Ctrl+X", some show "Shift+Delete" which is kind of misleading.

        L 1 Reply Last reply
        0
        • U User 7987467

          As I said in the post the "cut, copy, paste" toolbar buttons are default ones, the tooltip for "Cut" is "Cut the selection and put it on the Clipboard\nCut" was not added by our application. Don't understand why this "Cut" button's tooltip displays differently on different PCs, some PCs show "Ctrl+X", some show "Shift+Delete" which is kind of misleading.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          What do you mean by default buttons? They will still need to have associated tooltips which are set in the source code.

          U 1 Reply Last reply
          0
          • L Lost User

            What do you mean by default buttons? They will still need to have associated tooltips which are set in the source code.

            U Offline
            U Offline
            User 7987467
            wrote on last edited by
            #5

            The default toolbar buttons means when creating this MFC application using application wizard, there is default toolbar generated; we customized other toolbar buttons but leaving "cut, copy, paste" untouched. Thanks

            L 1 Reply Last reply
            0
            • U User 7987467

              The default toolbar buttons means when creating this MFC application using application wizard, there is default toolbar generated; we customized other toolbar buttons but leaving "cut, copy, paste" untouched. Thanks

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              They will still have tooltip text somewhere in the resource files.

              U 1 Reply Last reply
              0
              • L Lost User

                They will still have tooltip text somewhere in the resource files.

                U Offline
                U Offline
                User 7987467
                wrote on last edited by
                #7

                That's true. The problem is in the whole resource file there is no "Shift+Delete" string found. "Ctrl+X" is used for "cut" button. Why does it show "Shift+Delete" when mouse hovering over it on some PCs? Thanks!

                L 1 Reply Last reply
                0
                • U User 7987467

                  That's true. The problem is in the whole resource file there is no "Shift+Delete" string found. "Ctrl+X" is used for "cut" button. Why does it show "Shift+Delete" when mouse hovering over it on some PCs? Thanks!

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  Member 8021796 wrote:

                  Why does it show "Shift+Delete" when mouse hovering over it on some PCs?

                  At a guess it is sometimes pulling the resource from a library, but since I don't have access to your codebase it's impossible to be sure. Try to do some further debugging of your code on the systems where it is different.

                  1 Reply Last reply
                  0
                  • U User 7987467

                    we developed a c++ application which its GUI uses default toolbar buttons (cut, copy, paste). It's strange same executable running on some PCs when user uses mouse hovering on the cut button, the tooltip displays as Cut (Ctrl+X); on some other PCs the tooltip displays as Cut (Shift+Delete). Does anyone know the reason and how to fix it? Since Shift+Delete doesn't do real cut. Thanks

                    T Offline
                    T Offline
                    Theo Buys
                    wrote on last edited by
                    #9

                    Check your (rc) resouce file. Do you have a multi language resource in it? A resource that deal with any language must be set [Neutral].

                    U 1 Reply Last reply
                    0
                    • T Theo Buys

                      Check your (rc) resouce file. Do you have a multi language resource in it? A resource that deal with any language must be set [Neutral].

                      U Offline
                      U Offline
                      User 7987467
                      wrote on last edited by
                      #10

                      Thanks! I checked resource file, there is no multi language used. "LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US" is found in rc file.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups