What happened to GetInplaceButton()? |
Post Reply |
Author | |
ddlittle
Senior Member Joined: 19 February 2004 Location: United States Status: Offline Points: 132 |
Post Options
Thanks(0)
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 |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
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 |
|
ddlittle
Senior Member Joined: 19 February 2004 Location: United States Status: Offline Points: 132 |
Post Options
Thanks(0)
|
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Just remove this line. Buttons will be created automatically.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
ddlittle
Senior Member Joined: 19 February 2004 Location: United States Status: Offline Points: 132 |
Post Options
Thanks(0)
|
OK - that was easy.
Thanks!
- David
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |