![]() |
CComboBox::LimitText(..) in CXTPControlComboBox? |
Post Reply
|
| Author | |
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Topic: CComboBox::LimitText(..) in CXTPControlComboBox?Posted: 16 May 2007 at 9:27am |
|
Hai What is the equivalent for CComboBox::LimitText(..) in CXTPControlComboBox? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 May 2007 at 8:42am |
|
Hi,
you can override SetRect method and call
GetEditCtrl()->LimitText();
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 May 2007 at 6:51am |
|
But handle to the window is giving problem
|
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 June 2007 at 4:27am |
|
Hi,
Do you have samples for that?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 June 2007 at 4:51am |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 June 2007 at 2:55am |
|
Hi,
That example is not suitable for CXTPControlComboBox.Can you please give me the exact sample for CXTPControlComboBox with LimitText(..).
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 June 2007 at 3:19am |
|
Hi,
All you need is replace CXTPControlEdit to CXTPControlComboBox:
class CMyControlComboBox: public CXTPControlComboBox
{ DECLARE_XTP_CONTROL(CMyControlComboBox) void SetRect(CRect rcControl);
}; IMPLEMENT_XTP_CONTROL(CMyControlComboBox, CXTPControlComboBox)
void CMyControlComboBox::SetRect(CRect rcControl)
{ CXTPControlComboBox::SetRect(rcControl); if (m_pEdit->GetSafeHwnd()) { m_pEdit->SetLimitText(3); } }
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 June 2007 at 3:36am |
|
Hi Oleg,
It works. Many Thanks.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |