Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Problem with addition button in Report Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with addition button in Report Control

 Post Reply Post Reply
Author
Message
__XTP__ View Drop Down
Newbie
Newbie


Joined: 13 July 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote __XTP__ Quote  Post ReplyReply Direct Link To This Post Topic: Problem with addition button in Report Control
    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?????
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 14 July 2008 at 5:36am
Change m_Btn from local Var to Member Variable.

  Jimmy

Back to Top
__XTP__ View Drop Down
Newbie
Newbie


Joined: 13 July 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote __XTP__ Quote  Post ReplyReply Direct Link To This Post Posted: 14 July 2008 at 11:07am
Not working!!!!!
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.141 seconds.