![]() |
CXTResizeFormView resize problem |
Post Reply
|
| Author | |
Cedric Caron
Newbie
Joined: 29 July 2006 Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTResizeFormView resize problemPosted: 29 August 2006 at 8:07pm |
|
this code in CXTResizeFormView::OnSize prevent the form to properly resize if only one of the size is smaller then the original size // don't allow resize smaller than form view template's
// original size. if (cx >= m_totalLog.cx && cy >= m_totalLog.cy) { CXTResize::Size(); } if only cy is smaller but not cx the form is not resized and the controls "jump" to the corect position when cy reach the orifinal size
Any solution to fix this problem ?
Thanks foryour help
Cédric
|
|
![]() |
|
Cedric Caron
Newbie
Joined: 29 July 2006 Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 September 2006 at 8:58am |
|
Anybody with an idea on the problem ???
Thanks
Cédric
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 September 2006 at 11:41am |
|
If you don't need this code, just catch WM_SIZE and call base methods:
void CMyResizeFormView::OnSize(UINT nType, int cx, int cy)
{ CFormView::OnSize(nType, cx, cy); CXTResize::Size();
} |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Cedric Caron
Newbie
Joined: 29 July 2006 Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 September 2006 at 12:47pm |
|
This code is probably needed to limite the resize to the original size of the dialog and display scroll bars when the windows is smaler then the form
why not adding a size(x,y) function and add the folowing code in the form ?
void CMyResizeFormView::OnSize(UINT nType, int cx, int cy)
{ CFormView::OnSize(nType, cx, cy); cx = max(cx, m_totalLog.cx);
cy = max(cy, m_totalLog.cy);
CXTResize::Size(cx, cy); } |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 September 2006 at 4:35pm |
|
Hello,
I see problem, really looks not good. We will fix it for 10.3.1 release.
You can just remove scrolling by calling
SetScaleToFitSize(CSize(1, 1)); as we do in our samples.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |