Print Page | Close Window

Resizable Dilaog With 'Tree Control & Tabs'

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=22538
Printed Date: 21 November 2024 at 7:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Resizable Dilaog With 'Tree Control & Tabs'
Posted By: Satyen
Subject: Resizable Dilaog With 'Tree Control & Tabs'
Date Posted: 17 February 2015 at 4:24am
Hello Members,

I want to have a fully resizable (i.e. dialog controls should automatically adjust their positions and size) dialog for my application. Currently my dialog is a standard MFC dialog derived from 'CDialog'. The dialog has a tree control on left and 3 tabs on the right. Please refer the image below.



The tabs are 'CPropertyPage' classes. I want the whole dialog to be resizable. This means the tree control should adjust width and height as the dialog boundary is altered and it should show scroll bars. The tabs (pages) and controls inside them (e.g. grid) should also resize accordingly.  The buttons at bottom should never get hidden. The dialog size should be restricted to min and max size. Until now I have just managed to show scroll bars on the dialog that allow me accessing hidden controls. 

My primary requirement is to automatically adjust (reposition) all controls on the dialog according to the dialog frame resize. Can this be achieved using the codejock classes for dialog and pages - CXTPPropertySheet and CXTPPropertyPage. Please redirect t me to a post that shows example of this type of implementation.



-------------
Thanks & Regards,
Satyenjit Bagal.
Software Development Engineer.
SIEMENS Automation and Drives.



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