![]() |
Resizing a dialog in the panel |
Post Reply ![]() |
Author | |
rdhd ![]() Senior Member ![]() ![]() Joined: 13 August 2007 Location: United States Status: Offline Points: 871 |
![]() ![]() ![]() ![]() ![]() 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?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Guess you need call pItem->SetSize for this item.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
BastianPL ![]() Groupie ![]() ![]() Joined: 15 April 2006 Status: Offline Points: 69 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
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 |