Print Page | Close Window

Inplace button not visible in category

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=15733
Printed Date: 03 May 2024 at 11:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Inplace button not visible in category
Posted By: javg
Subject: Inplace button not visible in category
Date Posted: 27 November 2009 at 8:57am
Hi CJ Team,

I want to add a button to a category but after adding the button it is not displayed, here is the code:

                Category = this.axTaskProperty.AddCategory(this.customPropertiesText);
                PropertyGridInplaceButton Button = Category.AddInplaceButton(100);
                Button.Caption = "Add";

I've done this with items inside the category and it works fine as long as the item has readonly = false

I'm using version 10.4.2, can this be done with this version?



Replies:
Posted By: Aaron
Date Posted: 28 November 2009 at 2:14am
Hi,
 
This option has been added in V12.0 (for ActiveX)
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: javg
Date Posted: 03 December 2009 at 2:27am
Hi,

I've made some progress with inplace buttons (still using version 10.4.2 for the moment), but I have a problem with the inplace buttons event handler. The code:

   private void axTaskProperty_InplaceButtonDown(object sender, AxXtremePropertyGrid._DPropertyGridEvents_InplaceButtonDownEvent e)
        {
            MessageBox.Show("Hello World!\n" + e.GetType().ToString() + " " + e.GetHashCode().ToString() );
        }

for some reason when I push the button this function shows the messagebox twice, the event type is the same both times and the hash code too, I suppose the hash code is unique for each event so my guess is the event is being sent two times. Any idea why this is happening?

Thank You




Posted By: javg
Date Posted: 03 December 2009 at 3:14am
It was my fault I registered the handler function twice 



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