Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Adding two controls on same row in TskPnl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adding two controls on same row in TskPnl

 Post Reply Post Reply
Author
Message
jigarmehtamscit View Drop Down
Groupie
Groupie
Avatar

Joined: 29 October 2005
Location: India
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote jigarmehtamscit Quote  Post ReplyReply Direct Link To This Post Topic: Adding two controls on same row in TskPnl
    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
Back to Top
Newm View Drop Down
Newbie
Newbie


Joined: 13 March 2006
Location: United Kingdom
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Newm Quote  Post ReplyReply Direct Link To This Post 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

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