Print Page | Close Window

What happened to GetInplaceButton()?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=5976
Printed Date: 16 November 2024 at 6:15am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: What happened to GetInplaceButton()?
Posted By: ddlittle
Subject: What happened to GetInplaceButton()?
Date Posted: 03 January 2007 at 4:54pm
I just installed the latest Q4 build and tried to rebuild a project.  It gives me an error in this code:
 

if (!m_bReadOnly && (m_nFlags & (xtpGridItemHasComboButton | xtpGridItemHasExpandButton)))

{
GetInplaceButton().Create(this, GetItemRect());
}
 
The compiler says GetInplaceButton() is not found - and I can't find it in XTPPropertyGridItem.h, either.
 
Any ideas?
 
Thanks!
 
- David



Replies:
Posted By: mgampi
Date Posted: 03 January 2007 at 6:10pm
Hi David;
 
Since 10.4 the grid items have a CXTPPropertyGridInplaceButtons collection to provide more than one inplace button.
You can access the buttons collection and further on the buttons by using CXTPPropertyGridInplaceButtons* GetInplaceButtons() function of a CXTPPropertyGridItem.


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022


Posted By: ddlittle
Date Posted: 03 January 2007 at 9:43pm
I noticed that after my post, but I'm not sure which button in the collection is the one i'm interested in.  That code is in a custom masked edit class, and I though I might could get rid of it if that functionality is built-in now (I think I wrote it for version 8)...
 
Any ideas about which button is mine?
 
Thanks!
 
- David


Posted By: Oleg
Date Posted: 04 January 2007 at 2:21am
Hi,
Just remove this line. Buttons will be created automatically.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ddlittle
Date Posted: 04 January 2007 at 9:24am
OK - that was easy.
 
Thanks!
 
- David



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