Print Page | Close Window

Creating Docking Pane with buttons

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=792
Printed Date: 18 October 2024 at 5:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Creating Docking Pane with buttons
Posted By: Lucien
Subject: Creating Docking Pane with buttons
Date 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.




Replies:
Posted By: Lucien
Date Posted: 01 June 2004 at 10:01am

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



Posted By: Oleg
Date 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


Posted By: Lucien
Date 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?



Posted By: laughrain
Date Posted: 04 June 2004 at 12:17am
It is also my question. (with xtreme toolkit pro8.51)


Posted By: Ark42
Date 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...


Posted By: Oleg
Date Posted: 08 June 2004 at 3:10am

CButton m_wndButton;

m_wndButton.Create(...)



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Lucien
Date 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.




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