Print Page | Close Window

Resizing a dialog in the panel

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=12449
Printed Date: 28 April 2024 at 3:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Resizing a dialog in the panel
Posted By: rdhd
Subject: Resizing a dialog in the panel
Date Posted: 15 October 2008 at 6:08pm
I have a group item in a task panel where the item is a CDialog based object. When the task panel, which is in a docking pane, is resized vertically, I am trying to resize the dialog box that is in the panel. After I resize it I set the window pos of the task panel itself.
 
However, after we resize the dialog, the task panel resizes the dialog back to its original height.
 
I can see that when I add the dialog to the group that the height of the dialog is captured at that time and that is the size the panel keeps resetting after I change the dialog size.
 
How do I tell the task panel (group item or group) that the window in the group has been resized so that the CJ component or components recalculate the size of the item?



Replies:
Posted By: Oleg
Date Posted: 16 October 2008 at 5:12am
Hi,
 
Guess you need call pItem->SetSize for this item.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: BastianPL
Date Posted: 12 May 2011 at 3:48pm
Ok, but what if I want to have a horizontal or vertical scrollbar displayed when control is smaller that it's content ( in this case dialog ).

-------------
Bastian



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