Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Creating Docking Pane with buttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Creating Docking Pane with buttons

 Post Reply Post Reply
Author
Message
Lucien View Drop Down
Newbie
Newbie
Avatar

Joined: 21 May 2004
Location: Canada
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lucien Quote  Post ReplyReply Direct Link To This Post Topic: Creating Docking Pane with buttons
    Posted: 27 May 2004 at 9:13am

I'm using Xtreme toolkit standard edition. I want to create manually a dockable pane with 4 buttons in it. What is the code I need to include these four buttons in the pane? I want to avoid purchasing the toolkit professionnal only for that purpose.

Thanks.

Back to Top
Lucien View Drop Down
Newbie
Newbie
Avatar

Joined: 21 May 2004
Location: Canada
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lucien Quote  Post ReplyReply Direct Link To This Post Posted: 01 June 2004 at 10:01am

To be more exact, I need to implement buttons in the CLIENT AREA using the standard edition.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 03 June 2004 at 12:39am
So where is the problem? What do you try and what don't work?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Lucien View Drop Down
Newbie
Newbie
Avatar

Joined: 21 May 2004
Location: Canada
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lucien Quote  Post ReplyReply Direct Link To This Post Posted: 03 June 2004 at 8:55am

Well, I didn't find no example in the standard edition that uses buttons in the client area in a dockable view.

My code for creating the dockable view

in mainFrm.h

CQuickAction m_wndQuickAction;

in mainFrm.cpp

m_wndQuickAction.Create(this, IDC_QUICK_ACTION, _T("Quick"), CSize(150, 150), CBRS_LEFT))

in quickAction.h

class CQuickAction : public CXTDockWindow

...

So after creating that dockable window, how do I create buttons inside that window using direct coding or using a resource dialog?

Back to Top
laughrain View Drop Down
Newbie
Newbie


Joined: 03 June 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote laughrain Quote  Post ReplyReply Direct Link To This Post Posted: 04 June 2004 at 12:17am
It is also my question. (with xtreme toolkit pro8.51)
Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post Posted: 04 June 2004 at 11:58am

Do you guys just mean creating CButton's dynamically? That doesn't seem like anything specific to codejock...
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2004 at 3:10am

CButton m_wndButton;

m_wndButton.Create(...)

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Lucien View Drop Down
Newbie
Newbie
Avatar

Joined: 21 May 2004
Location: Canada
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lucien Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2004 at 10:24am

So I added to my code the following lines after the example shown earlier:

in mainFrm.h:

CButton theButton;

in mainFrm.cpp:

theButton.Create(_T("allo"),WS_CHILD|WS_VISIBLE|BS_PUSHBUTTO N,CRect(5,5,50,50),&m_wndQuickAction,10);

And it works! Thanks for the help.

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.328 seconds.