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. CBCGPProp PushChar event not work

CBCGPProp PushChar event not work

Scheduled Pinned Locked Moved C / C++ / MFC
help
10 Posts 5 Posters 1 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.
  • M Offline
    M Offline
    MrKBA
    wrote on last edited by
    #1

    Hello all members, I have this problem : public CSelBCGProp : public CBCGPProp { ... public: virtual BOOL PushChar (UINT nChar); .. } I created a class CSelBCGProp that inherits from CBCGPProp I added the event PushChar that lets run a piece of code when the user types a character. (this may be known by all members ) But the problem is that this event does not fire, while the other events that are triggered!! have you an idea on this case please

    CPalliniC E 2 Replies Last reply
    0
    • M MrKBA

      Hello all members, I have this problem : public CSelBCGProp : public CBCGPProp { ... public: virtual BOOL PushChar (UINT nChar); .. } I created a class CSelBCGProp that inherits from CBCGPProp I added the event PushChar that lets run a piece of code when the user types a character. (this may be known by all members ) But the problem is that this event does not fire, while the other events that are triggered!! have you an idea on this case please

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      How we can guess the cause with the code you provided? :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      In testa che avete, signor di Ceprano?

      M T 2 Replies Last reply
      0
      • M MrKBA

        Hello all members, I have this problem : public CSelBCGProp : public CBCGPProp { ... public: virtual BOOL PushChar (UINT nChar); .. } I created a class CSelBCGProp that inherits from CBCGPProp I added the event PushChar that lets run a piece of code when the user types a character. (this may be known by all members ) But the problem is that this event does not fire, while the other events that are triggered!! have you an idea on this case please

        E Offline
        E Offline
        Eugen Podsypalnikov
        wrote on last edited by
        #3

        1.) Please post the class definition of CBCGPProp, 0.) if the event can be catched on its (CBCGPProp) level :)

        virtual void BeHappy() = 0;

        M 1 Reply Last reply
        0
        • E Eugen Podsypalnikov

          1.) Please post the class definition of CBCGPProp, 0.) if the event can be catched on its (CBCGPProp) level :)

          virtual void BeHappy() = 0;

          M Offline
          M Offline
          MrKBA
          wrote on last edited by
          #4

          The class CBCGPProp is a standard class (delivered with BCGTool) and it seems like this: class BCGCBPRODLLEXPORT CBCGPProp : public CObject { DECLARE_DYNAMIC(CBCGPProp) friend class CBCGPPropList; // Construction public: // Group constructor CBCGPProp(const CString& strGroupName, DWORD_PTR dwData = 0, BOOL bIsValueList = FALSE); // Simple property CBCGPProp(const CString& strName, const _variant_t& varValue, LPCTSTR lpszDescr = NULL, DWORD_PTR dwData = 0, LPCTSTR lpszEditMask = NULL, LPCTSTR lpszEditTemplate = NULL, LPCTSTR lpszValidChars = NULL); virtual ~CBCGPProp(); enum ClickArea { ClickExpandBox, ClickName, ClickValue, ClickDescription }; // Operations: public: int GetExpandedSubItems (BOOL bIncludeHidden = TRUE) const; BOOL AddSubItem (CBCGPProp* pProp); BOOL RemoveSubItem (CBCGPProp*& pProp, BOOL bDelete = TRUE); . . . public: virtual BOOL OnEndEdit (); virtual void OnClickButton (CPoint point); virtual BOOL OnClickValue (UINT uiMsg, CPoint point); virtual BOOL OnDblClick (CPoint point); virtual void OnSelectCombo (); virtual void OnCloseCombo(); virtual BOOL OnSetCursor () const; virtual BOOL PushChar (UINT nChar); ...} in my CSelBCGProp.cpp it seems like this : BOOL CSelBCGProp::PushChar (UINT nChar) { nChar; return true; } What i need is to know the character that the user enter it and make a treatment on it.

          E 1 Reply Last reply
          0
          • CPalliniC CPallini

            How we can guess the cause with the code you provided? :)

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
            [My articles]

            M Offline
            M Offline
            MrKBA
            wrote on last edited by
            #5

            The class CBCGPProp is a standard class (delivered with BCGTool) and it seems like this: class BCGCBPRODLLEXPORT CBCGPProp : public CObject { DECLARE_DYNAMIC(CBCGPProp) friend class CBCGPPropList; // Construction public: // Group constructor CBCGPProp(const CString& strGroupName, DWORD_PTR dwData = 0, BOOL bIsValueList = FALSE); // Simple property CBCGPProp(const CString& strName, const _variant_t& varValue, LPCTSTR lpszDescr = NULL, DWORD_PTR dwData = 0, LPCTSTR lpszEditMask = NULL, LPCTSTR lpszEditTemplate = NULL, LPCTSTR lpszValidChars = NULL); virtual ~CBCGPProp(); enum ClickArea { ClickExpandBox, ClickName, ClickValue, ClickDescription }; // Operations: public: int GetExpandedSubItems (BOOL bIncludeHidden = TRUE) const; BOOL AddSubItem (CBCGPProp* pProp); BOOL RemoveSubItem (CBCGPProp*& pProp, BOOL bDelete = TRUE); . . . public: virtual BOOL OnEndEdit (); virtual void OnClickButton (CPoint point); virtual BOOL OnClickValue (UINT uiMsg, CPoint point); virtual BOOL OnDblClick (CPoint point); virtual void OnSelectCombo (); virtual void OnCloseCombo(); virtual BOOL OnSetCursor () const; virtual BOOL PushChar (UINT nChar); ...} in my CSelBCGProp.cpp it seems like this : BOOL CSelBCGProp::PushChar (UINT nChar) { nChar; return true; } What i need is to know the character that the user enter it and make a treatment on it.

            1 Reply Last reply
            0
            • M MrKBA

              The class CBCGPProp is a standard class (delivered with BCGTool) and it seems like this: class BCGCBPRODLLEXPORT CBCGPProp : public CObject { DECLARE_DYNAMIC(CBCGPProp) friend class CBCGPPropList; // Construction public: // Group constructor CBCGPProp(const CString& strGroupName, DWORD_PTR dwData = 0, BOOL bIsValueList = FALSE); // Simple property CBCGPProp(const CString& strName, const _variant_t& varValue, LPCTSTR lpszDescr = NULL, DWORD_PTR dwData = 0, LPCTSTR lpszEditMask = NULL, LPCTSTR lpszEditTemplate = NULL, LPCTSTR lpszValidChars = NULL); virtual ~CBCGPProp(); enum ClickArea { ClickExpandBox, ClickName, ClickValue, ClickDescription }; // Operations: public: int GetExpandedSubItems (BOOL bIncludeHidden = TRUE) const; BOOL AddSubItem (CBCGPProp* pProp); BOOL RemoveSubItem (CBCGPProp*& pProp, BOOL bDelete = TRUE); . . . public: virtual BOOL OnEndEdit (); virtual void OnClickButton (CPoint point); virtual BOOL OnClickValue (UINT uiMsg, CPoint point); virtual BOOL OnDblClick (CPoint point); virtual void OnSelectCombo (); virtual void OnCloseCombo(); virtual BOOL OnSetCursor () const; virtual BOOL PushChar (UINT nChar); ...} in my CSelBCGProp.cpp it seems like this : BOOL CSelBCGProp::PushChar (UINT nChar) { nChar; return true; } What i need is to know the character that the user enter it and make a treatment on it.

              E Offline
              E Offline
              Eugen Podsypalnikov
              wrote on last edited by
              #6

              Please set a breakpoint in the body of **CBCGPProp**::PushChar(..) : can you get a stop there ? :)

              virtual void BeHappy() = 0;

              M 1 Reply Last reply
              0
              • CPalliniC CPallini

                How we can guess the cause with the code you provided? :)

                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                [My articles]

                T Offline
                T Offline
                tom groezer
                wrote on last edited by
                #7

                Mr palini your cutout is a fuse it seems. I was just going through the forum and saw that palini doesn ot answer quesitns but rather makes a joke of the people. this is a forum to discuss and not boast around. get out if you do not wish to help people out here.

                CPalliniC 1 Reply Last reply
                0
                • T tom groezer

                  Mr palini your cutout is a fuse it seems. I was just going through the forum and saw that palini doesn ot answer quesitns but rather makes a joke of the people. this is a forum to discuss and not boast around. get out if you do not wish to help people out here.

                  CPalliniC Offline
                  CPalliniC Offline
                  CPallini
                  wrote on last edited by
                  #8

                  tom groezer wrote:

                  Mr palini

                  is Pallini. Are you able to guess the error just examining the provided code? :)

                  If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                  This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                  [My articles]

                  In testa che avete, signor di Ceprano?

                  T 1 Reply Last reply
                  0
                  • E Eugen Podsypalnikov

                    Please set a breakpoint in the body of **CBCGPProp**::PushChar(..) : can you get a stop there ? :)

                    virtual void BeHappy() = 0;

                    M Offline
                    M Offline
                    MrKBA
                    wrote on last edited by
                    #9

                    Sorry for the delayed response, I can't access to it in debug mode :( But there is something make me confused that when i give properties of allowing edit the value false (not editable) this event (PushChar) is triggered !!!!!!!! :sigh:

                    1 Reply Last reply
                    0
                    • CPalliniC CPallini

                      tom groezer wrote:

                      Mr palini

                      is Pallini. Are you able to guess the error just examining the provided code? :)

                      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                      [My articles]

                      T Offline
                      T Offline
                      Tim Craig
                      wrote on last edited by
                      #10

                      CPallini wrote:

                      Are you able to guess the error just examining the provided code?

                      Nah, he's too busy not Googling the answer to his own problem. :sigh:

                      You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.

                      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