Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTResizeFormView resize problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTResizeFormView resize problem

 Post Reply Post Reply
Author
Message
Cedric Caron View Drop Down
Newbie
Newbie


Joined: 29 July 2006
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cedric Caron Quote  Post ReplyReply Direct Link To This Post Topic: CXTResizeFormView resize problem
    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
Back to Top
Cedric Caron View Drop Down
Newbie
Newbie


Joined: 29 July 2006
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cedric Caron Quote  Post ReplyReply Direct Link To This Post Posted: 01 September 2006 at 8:58am
Anybody with an idea on the problem ???
 
Thanks
 
Cédric
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Cedric Caron View Drop Down
Newbie
Newbie


Joined: 29 July 2006
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cedric Caron Quote  Post ReplyReply Direct Link To This Post 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);
}
 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.047 seconds.