Print Page | Close Window

Problem with addition button in Report Control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=11422
Printed Date: 22 February 2024 at 12:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with addition button in Report Control
Posted By: __XTP__
Subject: Problem with addition button in Report Control
Date Posted: 13 July 2008 at 11:11am
Hi, can't addition button in My Report Control, I do:

OnCreate()
{
    .
    .
    .

    CXTPReportInplaceButton m_Btn(ID_BTN);
    CRect rect(50,50, 50, 50);

      XTP_REPORTRECORDITEM_ARGS pItemArgs(&m_wndView,m_wndView.GetRows()->GetAt(0),m_wndView.GetColumns()->GetAt(5));
 
    m_Btn.Create(&pItemArgs,rect);
    m_Btn.SetInsideCellButton(TRUE);
    m_Btn.ShowWindow(TRUE);
}

But button not display in control :( Why?????



Replies:
Posted By: jimmy
Date Posted: 14 July 2008 at 5:36am
Change m_Btn from local Var to Member Variable.

  Jimmy



Posted By: __XTP__
Date Posted: 14 July 2008 at 11:07am
Not working!!!!!



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