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

SetShowInplaceButtonsAlways

 Post Reply Post Reply
Author
Message
larryp View Drop Down
Groupie
Groupie


Joined: 15 January 2005
Location: United States
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote larryp Quote  Post ReplyReply Direct Link To This Post Topic: SetShowInplaceButtonsAlways
    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
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2009 at 8:20pm
I think that this is how sample ReportItemControls works - check MFC Sample code
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post 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 [...])
 
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2009 at 7:26pm
See post - https://forum.codejock.com/forum_posts.asp?TID=14919 with result of this feature (ShowInplaceButtonsAlways) implementation
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.172 seconds.