Print Page | Close Window

Custom control inplace edit

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=20095
Printed Date: 19 May 2024 at 4:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Custom control inplace edit
Posted By: apautrot
Subject: Custom control inplace edit
Date 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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net