Print Page | Close Window

SetShowInplaceButtonsAlways

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=13765
Printed Date: 29 September 2024 at 3:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SetShowInplaceButtonsAlways
Posted By: larryp
Subject: SetShowInplaceButtonsAlways
Date Posted: 23 March 2009 at 5:52pm
The property grid has a method  "SetShowInplaceButtonsAlways".  Is there a way to always show the buttons in the report control?  I want the combobox button to always show.
 
--Larry



Replies:
Posted By: mdoubson
Date Posted: 24 March 2009 at 8:20pm
I think that this is how sample ReportItemControls works - check MFC Sample code

-------------
Mark Doubson, Ph.D.


Posted By: mdoubson
Date Posted: 25 March 2009 at 10:18am
Add triangle image into your image list
use simple extra code while you adding items to new record (say image # 10)
e.g.

CXTPReportRecord* pRecord = wndReport.AddRecord(new CTaskRecord(.....

CXTPReportRecordItem* pItem = pRecord->GetItem(COLUMN_STATUS);

pItem->SetIconIndex(10);
pItem->SetAlignment(xtpColumnIconRight);
 
Now you will always see combobox-like arrow in your non-active cell
You can do similar mimic for other in-place buttons using related images *like [...])
 
See static app https://forum.codejock.com/uploads/DemoVersion/ReportSampleSatic.rar - https://forum.codejock.com/uploads/DemoVersion/ReportSampleSatic.rar  (open Task!)


-------------
Mark Doubson, Ph.D.


Posted By: mdoubson
Date Posted: 06 August 2009 at 7:26pm
See post - https://forum.codejock.com/forum_posts.asp?TID=14919 - https://forum.codejock.com/forum_posts.asp?TID=14919  with result of this feature (ShowInplaceButtonsAlways) implementation

-------------
Mark Doubson, Ph.D.



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