Print Page | Close Window

Adding two controls on same row in TskPnl

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=3759
Printed Date: 10 November 2025 at 5:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Adding two controls on same row in TskPnl
Posted By: jigarmehtamscit
Subject: Adding two controls on same row in TskPnl
Date Posted: 10 March 2006 at 2:45pm
Hi,

I am using CXTPTaskPanel for my application. Now, I have some editboxes and Spin controls combination at couple of location in my design. I want to include those in task panel. So, how can I do that.. My design says, i should put editbox and immediate to it should be spin control. Spin control changes should be applied to editbox directly so, user should see both controls as the same control. I think that is enough for understanding my design. So, how to do that with task panel. My following code puts two controls but both on two different rows.. thats not at all acceptable. currently i am using following code..


    CXTPTaskPanelGroup* pGroup3DText = m_wndTaskPanel.AddGroup(IDS_WC_PP_GROUP_MARGINS);
   
    pGroup3DText->AddTextItem("Left");
    m_LeftMarginEdit.Initialize(this);
    m_LeftMarginEdit.SetParent(&m_wndTaskPanel);
    pGroup3DText->AddControlItem(m_LeftMarginEdit);
    m_LeftMarginSpin.SetParent(&m_wndTaskPanel);
    pGroup3DText->AddControlItem(m_LeftMarginSpin);



-------------
Regards,
Jigar Mehta



Replies:
Posted By: Newm
Date Posted: 20 March 2006 at 8:47am

have you tried placing them in a container?  i have had similar problems in vb before (although i haven’t tried it with the CXTPTaskPanel control) and putting the controls in a frame usually works out ok




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