Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Custom control inplace edit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Custom control inplace edit

 Post Reply Post Reply
Author
Message
apautrot View Drop Down
Groupie
Groupie
Avatar

Joined: 16 April 2009
Location: France
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote apautrot Quote  Post ReplyReply Direct Link To This Post Topic: Custom control inplace edit
    Posted: 30 August 2012 at 5:16am
Hi I'd like to have a custom item control, lets say a simple text that display an inplace edit button when it is focused, and only when focused. I can't find anything related to that. Samples are showing custom controls that have button that are always present. I'd like my inplace buttons being shown only when the control is focused. I can add buttons, and remove them as I want, but I can't find an entry point like "OnControlFocused", "OnControlLeaved". I tried to override OnBeginEdit / OnCancelEdit but the OnCancelEdit is not called if there isn't an inplace edit control. In my case, I don't want one. The field I have is not editable by hand, it is with inplace buttons.

Is there a simple and right way to accomplish that ? Is there a virtual method on CXTPReportControlItem that is called when the item is no more focused, when focus leave this control ?

Thank you.


Win 7 x64
VS 2008
CJ 15.13

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.