Print Page | Close Window

CXTResizeFormView resize problem

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=4918
Printed Date: 11 November 2025 at 2:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTResizeFormView resize problem
Posted By: Cedric Caron
Subject: CXTResizeFormView resize problem
Date Posted: 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



Replies:
Posted By: Cedric Caron
Date Posted: 01 September 2006 at 8:58am
Anybody with an idea on the problem ???
 
Thanks
 
Cédric


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


Posted By: Cedric Caron
Date 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);
}
 


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



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